llvm.org GIT mirror llvm / be19787
DeHTMLify the email so that it only gets sent out if something changes. Add printouts about failed building and testing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9253 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 10 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
225225 `grep '^gmake: \*\*\*.*Stop.' $Prefix-Build-Log.txt | wc -l`+0) {
226226 $BuildError = "

Build error: compilation " .

227227 "aborted";
228 print "BUILD ERROR\n";
228229 }
229230
230231 #
251252 # Emit the warnings file, so we can diff...
252253 WriteFile "$WebDir/$DATE-Warnings.txt", $WarningsFile . "\n";
253254 my ($WarningsAdded, $WarningsRemoved) = DiffFiles "-Warnings.txt";
254 $WarningsAdded = AddPreTag $WarningsAdded;
255 $WarningsRemoved = AddPreTag $WarningsRemoved;
256255
257256 # Output something to stdout if something has changed
258257 print "ADDED WARNINGS:\n$WarningsAdded\n\n" if (length $WarningsAdded);
259258 print "REMOVED WARNINGS:\n$WarningsRemoved\n\n" if (length $WarningsRemoved);
260259
260 $WarningsAdded = AddPreTag $WarningsAdded;
261 $WarningsRemoved = AddPreTag $WarningsRemoved;
261262
262263 #
263264 # Get some statistics about CVS commits over the current day...
331332 if (`grep '^gmake[^:]: .*Error' $Prefix-$SubDir-ProgramTest.txt | wc -l` + 0){
332333 $TestError = 1;
333334 $ProgramsTable = "

Error running tests!

";
335 print "ERROR TESTING\n";
334336 } elsif (`grep '^gmake[^:]: .*No rule to make target' $Prefix-$SubDir-ProgramTest.txt | wc -l` + 0) {
335337 $TestError = 1;
336338 $ProgramsTable =
337339 "

Makefile error running tests!

";
340 print "ERROR TESTING\n";
338341 } else {
339342 $TestError = 0;
340343 $ProgramsTable = ReadFile "report.nightly.html";
394397 $TestsRemoved = "$TestsRemoved$Test\n" if (!exists $NewTests{$Test});
395398 }
396399
400 print "TESTS ADDED: \n$TestsAdded\n\n" if (length $TestsAdded);
401 print "TESTS REMOVED:\n$TestsRemoved\n\n" if (length $TestsRemoved);
402 print "TESTS FIXED: \n$TestsFixed\n\n" if (length $TestsFixed);
403 print "TESTS BROKEN: \n$TestsBroken\n\n" if (length $TestsBroken);
404
397405 $TestsAdded = AddPreTag $TestsAdded;
398406 $TestsRemoved = AddPreTag $TestsRemoved;
399407 $TestsFixed = AddPreTag $TestsFixed;
400408 $TestsBroken = AddPreTag $TestsBroken;
401409 }
402
403 print "TESTS ADDED: \n$TestsAdded\n\n" if (length $TestsAdded);
404 print "TESTS REMOVED:\n$TestsRemoved\n\n" if (length $TestsRemoved);
405 print "TESTS FIXED: \n$TestsFixed\n\n" if (length $TestsFixed);
406 print "TESTS BROKEN: \n$TestsBroken\n\n" if (length $TestsBroken);
407410
408411
409412 # If we built the tree successfully, runs of the Olden suite with