tests: Use Git instead of Subversion in autotest
This commit is contained in:
parent
8e95f0d889
commit
617f302808
@ -65,8 +65,8 @@ if ($fast)
|
|||||||
|
|
||||||
print "### autotest begin " . scalar localtime() . "\n";
|
print "### autotest begin " . scalar localtime() . "\n";
|
||||||
|
|
||||||
# print SVN revision info
|
# print Git revision info
|
||||||
print "### autotest revision $1\n" if (`svn info` =~ /Revision:\s+(\d+)/);
|
print "### autotest revision $1\n" if (`git rev-parse HEAD` =~ /(.+)/);
|
||||||
|
|
||||||
# get CPU info
|
# get CPU info
|
||||||
$cpucount = &getcpucount();
|
$cpucount = &getcpucount();
|
||||||
|
|||||||
@ -32,6 +32,6 @@ exit unless $client;
|
|||||||
|
|
||||||
select $client;
|
select $client;
|
||||||
|
|
||||||
&execprint('svn up') == 0 || die "error updating from repo\n";
|
&execprint('git pull') == 0 || die "error updating from repo\n";
|
||||||
&execprint('perl tests/autotest-local.pl') == 0 || die "error launching tests\n";
|
&execprint('perl tests/autotest-local.pl') == 0 || die "error launching tests\n";
|
||||||
system($exitcmd);
|
system($exitcmd);
|
||||||
|
|||||||
@ -128,7 +128,7 @@ while (<>)
|
|||||||
$defines{$_} = 1 foreach (split /,/, $defineset);
|
$defines{$_} = 1 foreach (split /,/, $defineset);
|
||||||
&insertindex(\%configurations, $fullconf);
|
&insertindex(\%configurations, $fullconf);
|
||||||
}
|
}
|
||||||
elsif (/^### autotest revision (\d+)/)
|
elsif (/^### autotest revision (.+)/)
|
||||||
{
|
{
|
||||||
if (defined $revision && $revision != $1)
|
if (defined $revision && $revision != $1)
|
||||||
{
|
{
|
||||||
@ -224,6 +224,6 @@ $date = localtime;
|
|||||||
|
|
||||||
print <<END;
|
print <<END;
|
||||||
</table><br>
|
</table><br>
|
||||||
Generated on $date from Subversion r$revision
|
Generated on $date from Git $revision
|
||||||
</body></html>
|
</body></html>
|
||||||
END
|
END
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user