mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-07 23:44:41 +00:00
Add -submit-aux option to NewNightlyTest.pl
- If given, the argument will be run using system with the path to the sent data. Useful for testing nightlytest server replacements. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72070 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1180c7899c
commit
cd3f9991a0
@ -75,6 +75,9 @@ use Socket;
|
|||||||
# this option is not specified it defaults to
|
# this option is not specified it defaults to
|
||||||
# /nightlytest/NightlyTestAccept.php. This is basically
|
# /nightlytest/NightlyTestAccept.php. This is basically
|
||||||
# everything after the www.yourserver.org.
|
# everything after the www.yourserver.org.
|
||||||
|
# -submit-aux If specified, an auxiliary script to run in addition to the
|
||||||
|
# normal submit script. The script will be passed the path to
|
||||||
|
# the "sentdata.txt" file as its sole argument.
|
||||||
# -nosubmit Do not report the test results back to a submit server.
|
# -nosubmit Do not report the test results back to a submit server.
|
||||||
#
|
#
|
||||||
# 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,
|
||||||
@ -128,6 +131,7 @@ $NORUNNINGTESTS=0;
|
|||||||
$MAKECMD="make";
|
$MAKECMD="make";
|
||||||
$SUBMITSERVER = "llvm.org";
|
$SUBMITSERVER = "llvm.org";
|
||||||
$SUBMITSCRIPT = "/nightlytest/NightlyTestAccept.php";
|
$SUBMITSCRIPT = "/nightlytest/NightlyTestAccept.php";
|
||||||
|
$SUBMITAUX="";
|
||||||
$SUBMIT = 1;
|
$SUBMIT = 1;
|
||||||
|
|
||||||
while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
|
while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
|
||||||
@ -168,6 +172,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
|
|||||||
shift; next; }
|
shift; next; }
|
||||||
if (/^-submit-server/) { $SUBMITSERVER = "$ARGV[0]"; shift; next; }
|
if (/^-submit-server/) { $SUBMITSERVER = "$ARGV[0]"; shift; next; }
|
||||||
if (/^-submit-script/) { $SUBMITSCRIPT = "$ARGV[0]"; shift; next; }
|
if (/^-submit-script/) { $SUBMITSCRIPT = "$ARGV[0]"; shift; next; }
|
||||||
|
if (/^-submit-aux/) { $SUBMITAUX = "$ARGV[0]"; shift; next; }
|
||||||
if (/^-nosubmit$/) { $SUBMIT = 0; next; }
|
if (/^-nosubmit$/) { $SUBMIT = 0; next; }
|
||||||
if (/^-nickname$/) { $nickname = "$ARGV[0]"; shift; next; }
|
if (/^-nickname$/) { $nickname = "$ARGV[0]"; shift; next; }
|
||||||
if (/^-gccpath/) { $CONFIGUREARGS .=
|
if (/^-gccpath/) { $CONFIGUREARGS .=
|
||||||
@ -477,6 +482,9 @@ sub SendData{
|
|||||||
}
|
}
|
||||||
WriteFile "$Prefix-sentdata.txt", $sentdata;
|
WriteFile "$Prefix-sentdata.txt", $sentdata;
|
||||||
|
|
||||||
|
if (!($SUBMITAUX eq "")) {
|
||||||
|
system "$SUBMITAUX \"$Prefix-sentdata.txt\"";
|
||||||
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user