[llvm-commits] [test-suite] r142362 - in /test-suite/trunk: TEST.dbgopt.Makefile TEST.dbgopt.report

Devang Patel dpatel at apple.com
Tue Oct 18 10:03:46 PDT 2011


Author: dpatel
Date: Tue Oct 18 12:03:46 2011
New Revision: 142362

URL: http://llvm.org/viewvc/llvm-project?rev=142362&view=rev
Log:
Add report description for dbgopt.

Added:
    test-suite/trunk/TEST.dbgopt.report
Modified:
    test-suite/trunk/TEST.dbgopt.Makefile

Modified: test-suite/trunk/TEST.dbgopt.Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/TEST.dbgopt.Makefile?rev=142362&r1=142361&r2=142362&view=diff
==============================================================================
--- test-suite/trunk/TEST.dbgopt.Makefile (original)
+++ test-suite/trunk/TEST.dbgopt.Makefile Tue Oct 18 12:03:46 2011
@@ -22,10 +22,15 @@
 	  -S ${PROJ_SRC_DIR}/$*.c -o Output/$*.first.s
 	-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os \
 	  -fno-verbose-asm -S ${PROJ_SRC_DIR}/$*.c -o Output/$*.second.s
+	echo "---------------------------------------------------------------" \
+	   > Output/$*.dbgopt.report.txt; \
+	echo ">>> ========= '$*' Program" >> Output/$*.dbgopt.report.txt; \
+	echo "---------------------------------------------------------------\n"\
+	   >> Output/$*.dbgopt.report.txt; 
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
-	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
+	 echo "TEST: PASS" >> Output/$*.dbgopt.report.txt; \
 	else \
-	 echo "--------- TEST-FAIL: $*" > Output/$*.dbgopt.report.txt; \
+	 echo "TEST: FAIL" >> Output/$*.dbgopt.report.txt; \
 	fi
 
 Output/%.s: %.cpp Output/.dir $(INCLUDES)
@@ -34,10 +39,15 @@
 	  -S ${PROJ_SRC_DIR}/$*.cpp -o Output/$*.first.s
 	-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
 	  -fno-verbose-asm ${PROJ_SRC_DIR}/$*.cpp -o Output/$*.second.s
+	echo "---------------------------------------------------------------" \
+	   > Output/$*.dbgopt.report.txt; \
+	echo ">>> ========= '$*' Program" >> Output/$*.dbgopt.report.txt; \
+	echo "---------------------------------------------------------------\n"\
+	   >> Output/$*.dbgopt.report.txt; 
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
-	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
+	 echo "TEST: PASS" >> Output/$*.dbgopt.report.txt; \
 	else \
-	 echo "--------- TEST-FAIL: $*" > Output/$*.dbgopt.report.txt; \
+	 echo "TEST: FAIL" >> Output/$*.dbgopt.report.txt; \
 	fi
 
 Output/%.s: %.cc Output/.dir $(INCLUDES)
@@ -46,10 +56,15 @@
 	  -S ${PROJ_SRC_DIR}/$*.cc -o Output/$*.first.s
 	-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
 	  -fno-verbose-asm ${PROJ_SRC_DIR}/$*.cc -o Output/$*.second.s
+	echo "---------------------------------------------------------------" \
+	   > Output/$*.dbgopt.report.txt; \
+	echo ">>> ========= '$*' Program" >> Output/$*.dbgopt.report.txt; \
+	echo "---------------------------------------------------------------\n"\
+	   >> Output/$*.dbgopt.report.txt; 
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
-	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
+	 echo "TEST: PASS" >> Output/$*.dbgopt.report.txt; \
 	else \
-	 echo "--------- TEST-FAIL: $*" > Output/$*.dbgopt.report.txt; \
+	 echo "TEST: FAIL" >> Output/$*.dbgopt.report.txt; \
 	fi
 
 Output/%.s: %.m Output/.dir $(INCLUDES)
@@ -58,10 +73,15 @@
 	  -S ${PROJ_SRC_DIR}/$*.m -o Output/$*.first.s
 	-$(LLVMCC) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
 	  -fno-verbose-asm ${PROJ_SRC_DIR}/$*.m -o Output/$*.second.s
+	echo "---------------------------------------------------------------" \
+	   > Output/$*.dbgopt.report.txt; \
+	echo ">>> ========= '$*' Program" >> Output/$*.dbgopt.report.txt; \
+	echo "---------------------------------------------------------------\n"\
+	   >> Output/$*.dbgopt.report.txt; 
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
-	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
+	 echo "TEST: PASS" >> Output/$*.dbgopt.report.txt; \
 	else \
-	 echo "--------- TEST-FAIL: $*" > Output/$*.dbgopt.report.txt; \
+	 echo "TEST: FAIL" >> Output/$*.dbgopt.report.txt; \
 	fi
 
 Output/%.s: %.mm Output/.dir $(INCLUDES)
@@ -70,10 +90,15 @@
 	  -S ${PROJ_SRC_DIR}/$*.mm -o Output/$*.first.s
 	-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
 	  -fno-verbose-asm ${PROJ_SRC_DIR}/$*.mm -o Output/$*.second.s
+	echo "---------------------------------------------------------------" \
+	   > Output/$*.dbgopt.report.txt; \
+	echo ">>> ========= '$*' Program" >> Output/$*.dbgopt.report.txt; \
+	echo "---------------------------------------------------------------\n"\
+	   >> Output/$*.dbgopt.report.txt; 
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
-	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
+	 echo "TEST: PASS" >> Output/$*.dbgopt.report.txt; \
 	else \
-	 echo "--------- TEST-FAIL: $*" > Output/$*.dbgopt.report.txt; \
+	 echo "TEST: FAIL" >> Output/$*.dbgopt.report.txt; \
 	fi
 
 Asms    := $(sort $(addsuffix .s, $(notdir $(basename $(Source)))))

Added: test-suite/trunk/TEST.dbgopt.report
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/TEST.dbgopt.report?rev=142362&view=auto
==============================================================================
--- test-suite/trunk/TEST.dbgopt.report (added)
+++ test-suite/trunk/TEST.dbgopt.report Tue Oct 18 12:03:46 2011
@@ -0,0 +1,16 @@
+##=== TEST.dbgopt.report - Report description for dbgopt -------*- perl -*-===##
+#
+# This file defines a report to be generated for TEST=dbgopt tests.
+#
+##===----------------------------------------------------------------------===##
+
+
+# These are the columns for the report.  The first entry is the header for the
+# column, the second is the regex to use to match the value.  Empty list create
+# separators, and closures may be put in for custom processing.
+(
+# Name
+ ["Program"  , '\'([^\']+)\' Program'],
+ [],
+ ["Result"  , 'TEST: (PASS|FAIL)']
+);





More information about the llvm-commits mailing list