diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-06-02 19:27:05 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-06-02 19:27:05 +0000 |
commit | 366c6d8241c77f0b23f33027e7f45c77f78c00f6 (patch) | |
tree | 80413c628abab229b36148795bac4264f65d5acf /tests | |
parent | 95dd352ecac49b2daf909dda1a8a93f9075fa44c (diff) |
tests: Add Subversion revision info to build report
git-svn-id: http://pugixml.googlecode.com/svn/trunk@500 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r-- | tests/autotest-local.pl | 4 | ||||
-rw-r--r-- | tests/autotest-report.pl | 13 |
2 files changed, 16 insertions, 1 deletions
diff --git a/tests/autotest-local.pl b/tests/autotest-local.pl index 10a3f8e..680fcf6 100644 --- a/tests/autotest-local.pl +++ b/tests/autotest-local.pl @@ -39,6 +39,10 @@ if ($fast) print "### autotest begin " . scalar localtime() . "\n";
+# print SVN revision info
+print "### autotest revision $1\n" if (`svn info` =~ /Revision:\s+(\d+)/);
+
+# build all configurations
%results = ();
foreach $toolset (@toolsets)
diff --git a/tests/autotest-report.pl b/tests/autotest-report.pl index 47fed38..c318b93 100644 --- a/tests/autotest-report.pl +++ b/tests/autotest-report.pl @@ -87,6 +87,17 @@ while (<>) $defines{$_} = 1 foreach (split /,/, $defineset);
&insertindex(\%configurations, $fullconf);
}
+ elsif (/^### autotest revision (\d+)/)
+ {
+ if (defined $revision && $revision != $1)
+ {
+ print STDERR "Autotest build report contains several revisions: $revision, $1\n";
+ }
+ else
+ {
+ $revision = $1;
+ }
+ }
}
# make arrays of toolsets and configurations
@@ -168,6 +179,6 @@ $date = localtime; print <<END;
</table><br>
-Generated on $date
+Generated on $date from Subversion r$revision
</body></html>
END
|