summaryrefslogtreecommitdiff
path: root/tests/autotest-report.pl
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-06-02 19:27:05 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-06-02 19:27:05 +0000
commit366c6d8241c77f0b23f33027e7f45c77f78c00f6 (patch)
tree80413c628abab229b36148795bac4264f65d5acf /tests/autotest-report.pl
parent95dd352ecac49b2daf909dda1a8a93f9075fa44c (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/autotest-report.pl')
-rw-r--r--tests/autotest-report.pl13
1 files changed, 12 insertions, 1 deletions
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