mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Added two flags (-submit-server and -submit-script) which allow the user to specify where the test results are submitted too. If these are not specified they default to the LLVM.org server.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8312657fc3
commit
0e9402fad4
@ -61,6 +61,14 @@ use Socket;
|
|||||||
# -noexternals Do not run the external tests (for cases where povray
|
# -noexternals Do not run the external tests (for cases where povray
|
||||||
# or SPEC are not installed)
|
# or SPEC are not installed)
|
||||||
# -with-externals Specify a directory where the external tests are located.
|
# -with-externals Specify a directory where the external tests are located.
|
||||||
|
# -submit-server Specifies a server to submit the test results too. If this
|
||||||
|
# option is not specified it defaults to
|
||||||
|
# llvm.org. This is basically just the address of the
|
||||||
|
# webserver
|
||||||
|
# -submit-script Specifies which script to call on the submit server. If
|
||||||
|
# this option is not specified it defaults to
|
||||||
|
# /nightlytest/NightlyTestAccept.cgi. This is basically
|
||||||
|
# everything after the www.yourserver.org.
|
||||||
#
|
#
|
||||||
# CVSROOT is the CVS repository from which the tree will be checked out,
|
# CVSROOT is the CVS repository from which the tree will be checked out,
|
||||||
# specified either in the full :method:user@host:/dir syntax, or
|
# specified either in the full :method:user@host:/dir syntax, or
|
||||||
@ -111,6 +119,8 @@ $nickname="";
|
|||||||
$NOTEST=0;
|
$NOTEST=0;
|
||||||
$NORUNNINGTESTS=0;
|
$NORUNNINGTESTS=0;
|
||||||
$MAKECMD="make";
|
$MAKECMD="make";
|
||||||
|
$SUBMITSERVER = "llvm.org";
|
||||||
|
$SUBMITSCRIPT = "/nightlytest/NightlyTestAccept.cgi";
|
||||||
|
|
||||||
while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
|
while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
|
||||||
shift;
|
shift;
|
||||||
@ -142,6 +152,12 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
|
|||||||
if (/^-with-externals$/) {
|
if (/^-with-externals$/) {
|
||||||
$CONFIGUREARGS .= " --with-externals=$ARGV[0]"; shift; next;
|
$CONFIGUREARGS .= " --with-externals=$ARGV[0]"; shift; next;
|
||||||
}
|
}
|
||||||
|
if (/^-submit-server/) {
|
||||||
|
$SUBMITSERVER = "$ARGV[0]"; shift; next;
|
||||||
|
}
|
||||||
|
if (/^-submit-script/) {
|
||||||
|
$SUBMITSCRIPT = "$ARGV[0]"; shift; next;
|
||||||
|
}
|
||||||
if (/^-nickname$/) { $nickname = "$ARGV[0]"; shift; next; }
|
if (/^-nickname$/) { $nickname = "$ARGV[0]"; shift; next; }
|
||||||
if (/^-gccpath/) { $CONFIGUREARGS .=
|
if (/^-gccpath/) { $CONFIGUREARGS .=
|
||||||
" CC=$ARGV[0]/gcc CXX=$ARGV[0]/g++";
|
" CC=$ARGV[0]/gcc CXX=$ARGV[0]/g++";
|
||||||
@ -996,9 +1012,6 @@ my $all_tests = ReadFile "$Prefix-Tests.txt";
|
|||||||
|
|
||||||
if ( $VERBOSE ) { print "SEND THE DATA VIA THE POST REQUEST\n"; }
|
if ( $VERBOSE ) { print "SEND THE DATA VIA THE POST REQUEST\n"; }
|
||||||
|
|
||||||
|
|
||||||
my $host = "llvm.org";
|
|
||||||
my $file = "/nightlytest/NightlyTestAccept.cgi";
|
|
||||||
my %hash_of_data = ('machine_data' => $machine_data,
|
my %hash_of_data = ('machine_data' => $machine_data,
|
||||||
'build_data' => $build_data,
|
'build_data' => $build_data,
|
||||||
'gcc_version' => $gcc_version,
|
'gcc_version' => $gcc_version,
|
||||||
@ -1049,7 +1062,7 @@ if($TESTING){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
my $response = SendData $host,$file,\%hash_of_data;
|
my $response = SendData $SUBMITSERVER,$SUBMITSCRIPT,\%hash_of_data;
|
||||||
if( $VERBOSE) { print "============================\n$response"; }
|
if( $VERBOSE) { print "============================\n$response"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user