summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/autotest-local.pl4
-rw-r--r--tests/autotest-report.pl13
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