[llvm-commits] [llvm] r49788 - /llvm/branches/ggreif/parallelized-test/lib/llvm.exp

Gabor Greif ggreif at gmail.com
Wed Apr 16 07:25:34 PDT 2008


Author: ggreif
Date: Wed Apr 16 09:25:33 2008
New Revision: 49788

URL: http://llvm.org/viewvc/llvm-project?rev=49788&view=rev
Log:
speed up running tests by
leaving .testresults file empty
and using some stupid tricks to
recover the "PASS: xxx" line
into the summary.
this reorders the passed tests to the end,
so the VERBOSE option restores the in-order,
but slow behaviour.

Modified:
    llvm/branches/ggreif/parallelized-test/lib/llvm.exp

Modified: llvm/branches/ggreif/parallelized-test/lib/llvm.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/parallelized-test/lib/llvm.exp?rev=49788&r1=49787&r2=49788&view=diff

==============================================================================
--- llvm/branches/ggreif/parallelized-test/lib/llvm.exp (original)
+++ llvm/branches/ggreif/parallelized-test/lib/llvm.exp Wed Apr 16 09:25:33 2008
@@ -131,7 +131,11 @@
   puts $makeFileId "\t   echo source \$(LLVM_SRC_ROOT)/test/lib/llvm.exp; \\"
   puts $makeFileId "\t   echo proc fail { msg } { puts '\"FAIL: \$\$msg\"' '; exit 1' }; \\"
   puts $makeFileId "\t   echo proc xfail { msg } { puts '\"XFAIL: \$\$msg\"' }; \\"
-  puts $makeFileId "\t   echo proc pass { msg } { puts '\"PASS: \$\$msg\"' }; \\"
+  if $verbose>0 {
+    puts $makeFileId "\t   echo proc pass { msg } { puts '\"PASS: \$\$msg\"' }; \\"
+  } else {
+    puts $makeFileId "\t   echo proc pass { msg } { }; \\"
+  }
   puts $makeFileId "\t   echo proc xpass { msg } { puts '\"XPASS: \$\$msg\"' '; exit 1' }; \\"
   if $verbose>=2 {
     puts $makeFileId "\t   echo proc verbose { msg level } { puts stderr '\"\$\$msg\"' }; \\"
@@ -153,7 +157,10 @@
 
   puts $makeFileId ""
   puts $makeFileId "Test.makefile.out: \$(TESTS)"
-  puts $makeFileId "\t@ cat \$(TESTS) > \$@"
+  puts $makeFileId "\t@ cat \$(TESTS) /dev/null  > \$@"
+  if $verbose<1 {
+    puts $makeFileId "\t@ wc \$(TESTS) /dev/null | grep -E ' +0 +0 +0 ' | grep -v ' total\$\$' | grep -v ' /dev/null\$\$' | sed -e 's| *0 *0 *0 |PASS: \$(SUBDIR)\\/|1' -e 's|.testresults\$\$||1' >> \$@"
+  }
   puts $makeFileId ""
 
   close $makeFileId





More information about the llvm-commits mailing list