summaryrefslogtreecommitdiffstats
path: root/llvm/utils/NewNightlyTest.pl
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-10 07:28:08 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-10 07:28:08 +0000
commitf7c52a1d52f2fbb04f37d21496ed775469430ce8 (patch)
treeea10722ea25d9738ba32f0c72aeab34a07642dd3 /llvm/utils/NewNightlyTest.pl
parent75d04819a6545508bfbdbf0edd2ce5a369d7c864 (diff)
downloadbcm5719-llvm-f7c52a1d52f2fbb04f37d21496ed775469430ce8.tar.gz
bcm5719-llvm-f7c52a1d52f2fbb04f37d21496ed775469430ce8.zip
Add nosubmit option to control what is sent back to the results server.
Patch by Joachim Durchholz. Thanks! llvm-svn: 48139
Diffstat (limited to 'llvm/utils/NewNightlyTest.pl')
-rwxr-xr-xllvm/utils/NewNightlyTest.pl13
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/utils/NewNightlyTest.pl b/llvm/utils/NewNightlyTest.pl
index a77c6d6f500..0dbacda4a7d 100755
--- a/llvm/utils/NewNightlyTest.pl
+++ b/llvm/utils/NewNightlyTest.pl
@@ -74,6 +74,7 @@ use Socket;
# this option is not specified it defaults to
# /nightlytest/NightlyTestAccept.php. This is basically
# everything after the www.yourserver.org.
+# -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,
# specified either in the full :method:user@host:/dir syntax, or
@@ -126,6 +127,7 @@ $NORUNNINGTESTS=0;
$MAKECMD="make";
$SUBMITSERVER = "llvm.org";
$SUBMITSCRIPT = "/nightlytest/NightlyTestAccept.php";
+$SUBMIT = 1;
while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
shift;
@@ -164,6 +166,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
shift; next; }
if (/^-submit-server/) { $SUBMITSERVER = "$ARGV[0]"; shift; next; }
if (/^-submit-script/) { $SUBMITSCRIPT = "$ARGV[0]"; shift; next; }
+ if (/^-nosubmit$/) { $SUBMIT = 0; next; }
if (/^-nickname$/) { $nickname = "$ARGV[0]"; shift; next; }
if (/^-gccpath/) { $CONFIGUREARGS .=
" CC=$ARGV[0]/gcc CXX=$ARGV[0]/g++";
@@ -1135,16 +1138,14 @@ my %hash_of_data = (
'target_triple' => $targetTriple
);
-$TESTING = 0;
-
-if ($TESTING) {
+if ($SUBMIT) {
+ my $response = SendData $SUBMITSERVER,$SUBMITSCRIPT,\%hash_of_data;
+ if( $VERBOSE) { print "============================\n$response"; }
+} else {
print "============================\n";
foreach $x(keys %hash_of_data){
print "$x => $hash_of_data{$x}\n";
}
-} else {
- my $response = SendData $SUBMITSERVER,$SUBMITSCRIPT,\%hash_of_data;
- if( $VERBOSE) { print "============================\n$response"; }
}
##############################################################
OpenPOWER on IntegriCloud