Compress large logs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-01-23 19:31:28 +00:00
parent 4767e01a4e
commit 5d6c438d2f

View File

@ -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;