aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-23 19:31:28 +0000
committerChris Lattner <sabre@nondot.org>2003-01-23 19:31:28 +0000
commit5d6c438d2fdb1ed44bc23dbbdd3a42eb26135556 (patch)
treef5a754007f0ed5969612e53069d1800c0ac687a2 /utils
parent4767e01a4ef59a2b6872fe0850dbd3de945c1448 (diff)
downloadexternal_llvm-5d6c438d2fdb1ed44bc23dbbdd3a42eb26135556.zip
external_llvm-5d6c438d2fdb1ed44bc23dbbdd3a42eb26135556.tar.gz
external_llvm-5d6c438d2fdb1ed44bc23dbbdd3a42eb26135556.tar.bz2
Compress large logs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/NightlyTest.pl11
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/NightlyTest.pl b/utils/NightlyTest.pl
index 4d67f9d..6fff537 100755
--- a/utils/NightlyTest.pl
+++ b/utils/NightlyTest.pl
@@ -268,8 +268,12 @@ my $RemovedFilesList = AddPreTag join "\n", keys %RemovedFiles;
chdir "test/Programs" or die "Could not change into programs testdir!";
# Run the programs tests... creating a report.nightly.html file
-system "gmake $MAKEOPTS report.nightly.html TEST=nightly "
- . "> $Prefix-ProgramTest.txt 2>&1" if (!$NOTEST);
+if (!$NOTEST) {
+ system "gmake $MAKEOPTS report.nightly.html TEST=nightly "
+ . "> $Prefix-ProgramTest.txt 2>&1";
+} else {
+ system "gunzip $Prefix-ProgramTest.txt.gz";
+}
my $ProgramsTable = ReadFile "report.nightly.html";
@@ -279,6 +283,9 @@ my $ProgramsTable = ReadFile "report.nightly.html";
system "grep -E 'TEST-(PASS|FAIL)' < $Prefix-ProgramTest.txt "
. "| sort --key=3 > $Prefix-Tests.txt";
+# Compress the test output
+system "gzip $Prefix-ProgramTest.txt";
+
my ($RTestsAdded, $RTestsRemoved) = DiffFiles "-Tests.txt";
my @RawTestsAddedArray = split '\n', $RTestsAdded;