[llvm-commits] CVS: llvm/utils/NewNightlyTest.pl
Patrick Jenkins
pjenkins at apple.com
Mon Aug 21 13:46:11 PDT 2006
Changes in directory llvm/utils:
NewNightlyTest.pl updated: 1.55 -> 1.56
---
Log message:
The new nightly tester should stop outputing a message stating the
testresults directory is not present unless the script is run as verbose.
---
Diffs of the changes: (+24 -22)
NewNightlyTest.pl | 46 ++++++++++++++++++++++++----------------------
1 files changed, 24 insertions(+), 22 deletions(-)
Index: llvm/utils/NewNightlyTest.pl
diff -u llvm/utils/NewNightlyTest.pl:1.55 llvm/utils/NewNightlyTest.pl:1.56
--- llvm/utils/NewNightlyTest.pl:1.55 Fri Aug 18 13:00:21 2006
+++ llvm/utils/NewNightlyTest.pl Mon Aug 21 15:45:57 2006
@@ -227,7 +227,9 @@
my $DejagnuTestsLog = "$Prefix-DejagnuTests-Log.txt";
if (! -d $WebDir) {
mkdir $WebDir, 0777;
- warn "$WebDir did not exist; creating it.\n";
+ if($VERBOSE){
+ warn "$WebDir did not exist; creating it.\n";
+ }
}
if ($VERBOSE) {
@@ -941,28 +943,28 @@
@BUILD_DATA = ReadFile "$BuildLog";
$build_data = join("\n", @BUILD_DATA);
-my @DEJAGNU_LOG;
-my @DEJAGNU_SUM;
-my $dejagnutests_log;
-my $dejagnutests_sum;
- at DEJAGNU_LOG = ReadFile "$DejagnuLog";
- at DEJAGNU_SUM = ReadFile "$DejagnuSum";
-$dejagnutests_log = join("\n", @DEJAGNU_LOG);
-$dejagnutests_sum = join("\n", @DEJAGNU_SUM);
-
-my @DEJAGNULOG_FULL;
-my $dejagnulog_full;
- at DEJAGNULOG_FULL = ReadFile "$DejagnuTestsLog";
-$dejagnulog_full = join("\n", @DEJAGNULOG_FULL);
-
-my $gcc_version_long="";
-if ($GCCPATH ne "") {
- $gcc_version_long = `$GCCPATH/gcc --version`;
-} else {
- $gcc_version_long = `gcc --version`;
+my (@DEJAGNU_LOG, @DEJAGNU_SUM, @DEJAGNULOG_FULL, @GCC_VERSION);
+my ($dejagnutests_log ,$dejagnutests_sum, $dejagnulog_full) = "";
+my ($gcc_version, $gcc_version_long) = "";
+
+if(!$BuildError){
+ @DEJAGNU_LOG = ReadFile "$DejagnuLog";
+ @DEJAGNU_SUM = ReadFile "$DejagnuSum";
+ $dejagnutests_log = join("\n", @DEJAGNU_LOG);
+ $dejagnutests_sum = join("\n", @DEJAGNU_SUM);
+
+ @DEJAGNULOG_FULL = ReadFile "$DejagnuTestsLog";
+ $dejagnulog_full = join("\n", @DEJAGNULOG_FULL);
+
+ $gcc_version_long="";
+ if ($GCCPATH ne "") {
+ $gcc_version_long = `$GCCPATH/gcc --version`;
+ } else {
+ $gcc_version_long = `gcc --version`;
+ }
+ @GCC_VERSION = split '\n', $gcc_version_long;
+ $gcc_version = $GCC_VERSION[0];
}
- at GCC_VERSION = split '\n', $gcc_version_long;
-my $gcc_version = $GCC_VERSION[0];
##############################################################
#
More information about the llvm-commits
mailing list