diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-10-19 13:20:50 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-10-19 13:20:50 +0000 |
commit | 96aab414701203ede877aeac1d4a1875f63022ed (patch) | |
tree | 2063850adf6da524ba14d929f432e1786a73fc65 /utils | |
parent | f41928152aad569778c5fd8066da19eaae636fee (diff) | |
download | external_llvm-96aab414701203ede877aeac1d4a1875f63022ed.zip external_llvm-96aab414701203ede877aeac1d4a1875f63022ed.tar.gz external_llvm-96aab414701203ede877aeac1d4a1875f63022ed.tar.bz2 |
NNT: Don't hard code -l3.0 argument to make, this is very server dependent. Users who care can use -compileflags for this.
Also, fix make clean call and a few other tweaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/NewNightlyTest.pl | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl index affc826..726955c 100755 --- a/utils/NewNightlyTest.pl +++ b/utils/NewNightlyTest.pl @@ -159,7 +159,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { if (/^-notest$/) { $NOTEST = 1; next; } if (/^-norunningtests$/) { next; } # Backward compatibility, ignored. if (/^-parallel-jobs$/) { $PARALLELJOBS = "$ARGV[0]"; shift; next;} - if (/^-parallel$/) { $MAKEOPTS = "$MAKEOPTS -j$PARALLELJOBS -l3.0"; next; } + if (/^-parallel$/) { $MAKEOPTS = "$MAKEOPTS -j$PARALLELJOBS"; next; } if (/^-with-clang$/) { $WITHCLANG = 1; next; } if (/^-release$/) { $MAKEOPTS = "$MAKEOPTS ENABLE_OPTIMIZED=1 ". "OPTIMIZE_OPTION=-O2"; $BUILDTYPE="release"; next;} @@ -360,7 +360,7 @@ sub ChangeDir { # directory, logical name if ( $VERBOSE ) { print "Changing To: $name ($dir)\n"; } $result = chdir($dir); if (!$result) { - print "ERROR!!! Cannot change directory to: $name ($dir) because $!"; + print "ERROR!!! Cannot change directory to: $name ($dir) because $!\n"; return false; } return true; @@ -534,7 +534,7 @@ sub BuildLLVM { RunLoggedCommand("(time -p $NICE ./configure $CONFIGUREARGS $EXTRAFLAGS) ", $ConfigureLog, "CONFIGURE"); # Build the entire tree, capturing the output into $BuildLog - RunAppendingLoggedCommand("($NICE $MAKECMD clean)", $BuildLog, "BUILD CLEAN"); + RunAppendingLoggedCommand("($NICE $MAKECMD $MAKEOPTS clean)", $BuildLog, "BUILD CLEAN"); RunAppendingLoggedCommand("(time -p $NICE $MAKECMD $MAKEOPTS)", $BuildLog, "BUILD"); if (`grep '^$MAKECMD\[^:]*: .*Error' $BuildLog | wc -l` + 0 || @@ -549,6 +549,7 @@ sub BuildLLVM { sub RunDejaGNUTests { # Run the feature and regression tests, results are put into testrun.sum and # the full log in testrun.log. + system "rm -f test/testrun.log test/testrun.sum"; RunLoggedCommand("(time -p $MAKECMD $MAKEOPTS check)", $DejagnuLog, "DEJAGNU"); # Copy the testrun.log and testrun.sum to our webdir. @@ -686,6 +687,9 @@ if (!$NOTEST && !$BuildError) { $endtime = `date "+20%y-%m-%d %H:%M:%S"`; +# The last bit of logic is to remove the build and web dirs, after sending data +# to the server. + ############################################################## # # Accumulate the information to send to the server. @@ -722,8 +726,6 @@ if ($LLVMGCCPATH ne "") { (split '\n', $llvmgcc_version_long)[1] =~ /Target: (.+)/; my $targetTriple = $1; -if ( $VERBOSE ) { print "SEND THE DATA VIA THE POST REQUEST\n"; } - # Logs. my $ConfigureLogData = ReadFile $ConfigureLog; my $BuildLogData = ReadFile $BuildLog; @@ -760,6 +762,8 @@ $DejagnuWallTime = GetRegex "^real ([0-9.]+)", $DejagnuLogData; $DejagnuTime = "0.0" unless $DejagnuTime; $DejagnuWallTime = "0.0" unless $DejagnuWallTime; +if ( $VERBOSE ) { print "SEND THE DATA VIA THE POST REQUEST\n"; } + my %hash_of_data = ( 'machine_data' => $machine_data, 'build_data' => $ConfigureLogData . $BuildLogData, @@ -773,35 +777,37 @@ my %hash_of_data = ( 'configtime_cpu'=> $ConfigTime, 'buildtime_wall' => $BuildWallTime, 'buildtime_cpu' => $BuildTime, - 'warnings' => "", - 'cvsusercommitlist' => "", - 'cvsuserupdatelist' => "", - 'cvsaddedfiles' => "", - 'cvsmodifiedfiles' => "", - 'cvsremovedfiles' => "", - 'lines_of_code' => "", - 'cvs_file_count' => 0, - 'cvs_dir_count' => 0, 'buildstatus' => $BuildStatus, 'singlesource_programstable' => $SingleSourceProgramsTable, 'multisource_programstable' => $MultiSourceProgramsTable, 'externalsource_programstable' => $ExternalProgramsTable, 'llcbeta_options' => $llcbeta_options, - 'warnings_removed' => "", - 'warnings_added' => "", 'passing_tests' => $passes, 'expfail_tests' => $xfails, 'unexpfail_tests' => $fails, 'all_tests' => $all_tests, - 'new_tests' => "", - 'removed_tests' => "", 'dejagnutests_results' => $DejagnuTestResults, 'dejagnutests_log' => $DejagnuLogData, 'starttime' => $starttime, 'endtime' => $endtime, + 'target_triple' => $targetTriple, + + # Unused, but left around for backwards compatability. + 'warnings' => "", + 'cvsusercommitlist' => "", + 'cvsuserupdatelist' => "", + 'cvsaddedfiles' => "", + 'cvsmodifiedfiles' => "", + 'cvsremovedfiles' => "", + 'lines_of_code' => "", + 'cvs_file_count' => 0, + 'cvs_dir_count' => 0, + 'warnings_removed' => "", + 'warnings_added' => "", + 'new_tests' => "", + 'removed_tests' => "", 'o_file_sizes' => "", - 'a_file_sizes' => "", - 'target_triple' => $targetTriple + 'a_file_sizes' => "" ); if ($SUBMIT || !($SUBMITAUX eq "")) { |