[llvm-commits] [test-suite] r72334 - /test-suite/trunk/TEST.nightly.Makefile

Nick Lewycky nicholas at mxc.ca
Sat May 23 12:25:46 PDT 2009


Author: nicholas
Date: Sat May 23 14:25:46 2009
New Revision: 72334

URL: http://llvm.org/viewvc/llvm-project?rev=72334&view=rev
Log:
Look at the last "Total Execution Time" line for the execution time.

There are multiple categories each with their own "total execution time" which
is just the subtotal for that category. It so happens that the last line is the
"Pass execution timing report" which includes everything we're measuring.

Modified:
    test-suite/trunk/TEST.nightly.Makefile

Modified: test-suite/trunk/TEST.nightly.Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/TEST.nightly.Makefile?rev=72334&r1=72333&r2=72334&view=diff

==============================================================================
--- test-suite/trunk/TEST.nightly.Makefile (original)
+++ test-suite/trunk/TEST.nightly.Makefile Sat May 23 14:25:46 2009
@@ -44,7 +44,7 @@
 	@-if test -f Output/$*.linked.bc.info; then \
 	  echo "TEST-PASS: compile $(RELDIR)/$*" >> $@;\
 	  printf "TEST-RESULT-compile: " >> $@;\
-	  grep "Total Execution Time" Output/$*.linked.bc.info >> $@;\
+	  grep "Total Execution Time" Output/$*.linked.bc.info | tail -n 1 >> $@;\
 	  echo >> $@;\
 	  printf "TEST-RESULT-compile: " >> $@;\
 	  wc -c $< >> $@;\
@@ -69,7 +69,7 @@
 	  echo "TEST-PASS: llc $(RELDIR)/$*" >> $@;\
 	  $(LLC) $< $(LLCFLAGS) -o /dev/null -f $(TIMEOPT) >> $@ 2>&1; \
 	  printf "TEST-RESULT-llc: " >> $@;\
-	  grep "Total Execution Time" $@.info >> $@;\
+	  grep "Total Execution Time" $@.info | tail -n 1 >> $@;\
 	  printf "TEST-RESULT-llc-time: " >> $@;\
 	  grep "^program" Output/$*.out-llc.time >> $@;\
 	  echo >> $@;\
@@ -86,7 +86,7 @@
 	  echo "TEST-PASS: llc-beta $(RELDIR)/$*" >> $@;\
 	  $(LLC) $< $(LLCFLAGS) $(LLCBETAOPTION) -o /dev/null -f $(TIMEOPT) >> $@ 2>&1; \
 	  printf "TEST-RESULT-llc-beta: " >> $@;\
-	  grep "Total Execution Time" $@.info >> $@;\
+	  grep "Total Execution Time" $@.info | tail -n 1 >> $@;\
 	  printf "TEST-RESULT-llc-beta-time: " >> $@;\
 	  grep "^program" Output/$*.out-llc-beta.time >> $@;\
 	  echo >> $@;\
@@ -103,7 +103,7 @@
 	  echo "TEST-PASS: opt-beta $(RELDIR)/$*" >> $@;\
 	  $(LLC) $< $(LLCFLAGS) -o /dev/null -f $(TIMEOPT) >> $@ 2>&1; \
 	  printf "TEST-RESULT-opt-beta: " >> $@;\
-	  grep "Total Execution Time" $@.info >> $@;\
+	  grep "Total Execution Time" $@.info | tail -n 1 >> $@;\
 	  printf "TEST-RESULT-opt-beta-time: " >> $@;\
 	  grep "^program" Output/$*.out-opt-beta.time >> $@;\
 	  echo >> $@;\
@@ -136,7 +136,7 @@
 	  grep "^program" Output/$*.out-jit.time >> $@;\
 	  echo >> $@;\
 	  printf "TEST-RESULT-jit-comptime: " >> $@;\
-	  grep "Total Execution Time" Output/$*.out-jit.info >> $@;\
+	  grep "Total Execution Time" Output/$*.out-jit.info | tail -n 1 >> $@;\
 	  echo >> $@;\
 	else  \
 	  echo "TEST-FAIL: jit $(RELDIR)/$*" >> $@;\





More information about the llvm-commits mailing list