[llvm-commits] [test-suite] r124493 - in /test-suite/trunk: Makefile.programs TEST.dbgopt.Makefile

Devang Patel dpatel at apple.com
Fri Jan 28 10:24:07 PST 2011


Author: dpatel
Date: Fri Jan 28 12:24:07 2011
New Revision: 124493

URL: http://llvm.org/viewvc/llvm-project?rev=124493&view=rev
Log:
Add support to generate simple report for TEST=dbgopt.

Modified:
    test-suite/trunk/Makefile.programs
    test-suite/trunk/TEST.dbgopt.Makefile

Modified: test-suite/trunk/Makefile.programs
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Makefile.programs?rev=124493&r1=124492&r2=124493&view=diff
==============================================================================
--- test-suite/trunk/Makefile.programs (original)
+++ test-suite/trunk/Makefile.programs Fri Jan 28 12:24:07 2011
@@ -972,6 +972,24 @@
 
 report.tex: report.$(TEST).tex
 	@cat $<
+
+report.$(TEST).txtonly: report.$(TEST).raw.out $(TestReport)
+	@cat report.$(TEST).raw.out
+
+report.dbgopt.header:
+	@echo "***************************************************************"
+	@echo " Test failures in this report indicates that code generation"
+	@echo " for the test case is influenced by presense of debugging"
+	@echo " information."
+	@echo " "
+	@echo " Run following commands to investigate failures."
+	@echo " prompt> llvm-gcc -g -fdebug-disable-debug-info-print -Os -S foo.c -o foo.first.s"
+	@echo " prompt> llvm-gcc -Os -S foo.c -o foo.second.s"
+	@echo " prompt> diff foo.first.s foo.second.s"
+	@echo "***************************************************************"
+
+report.dbgopt: report.dbgopt.header report.$(TEST).txtonly
+
 endif
 
 clean::

Modified: test-suite/trunk/TEST.dbgopt.Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/TEST.dbgopt.Makefile?rev=124493&r1=124492&r2=124493&view=diff
==============================================================================
--- test-suite/trunk/TEST.dbgopt.Makefile (original)
+++ test-suite/trunk/TEST.dbgopt.Makefile Fri Jan 28 12:24:07 2011
@@ -19,45 +19,45 @@
 	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os -fdebug-disable-debug-info-print -S ${PROJ_SRC_DIR}/$*.c -o Output/$*.first.s
 	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S ${PROJ_SRC_DIR}/$*.c -o Output/$*.second.s
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
-	 echo "--------- TEST-PASS: $*"; \
+	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
 	else \
-	 echo "--------- TEST-FAIL: $*"; \
+	 echo "--------- TEST-FAIL: $*" > Output/$*.dbgopt.report.txt; \
 	fi
 
 Output/%.s: %.cpp Output/.dir $(INCLUDES)
 	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os -fdebug-disable-debug-info-print -S ${PROJ_SRC_DIR}/$*.cpp -o Output/$*.first.s
 	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S ${PROJ_SRC_DIR}/$*.cpp -o Output/$*.second.s
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
-	 echo "--------- TEST-PASS: $*"; \
+	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
 	else \
-	 echo "--------- TEST-FAIL: $*"; \
+	 echo "--------- TEST-FAIL: $*" > Output/$*.dbgopt.report.txt; \
 	fi
 
 Output/%.s: %.cc Output/.dir $(INCLUDES)
 	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os -fdebug-disable-debug-info-print -S ${PROJ_SRC_DIR}/$*.cc -o Output/$*.first.s
 	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S ${PROJ_SRC_DIR}/$*.cc -o Output/$*.second.s
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
-	 echo "--------- TEST-PASS: $*"; \
+	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
 	else \
-	 echo "--------- TEST-FAIL: $*"; \
+	 echo "--------- TEST-FAIL: $*" > Output/$*.dbgopt.report.txt; \
 	fi
 
 Output/%.s: %.m Output/.dir $(INCLUDES)
 	-$(LLVMGCC) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os -fdebug-disable-debug-info-print -S ${PROJ_SRC_DIR}/$*.m -o Output/$*.first.s
 	-$(LLVMGCC) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S ${PROJ_SRC_DIR}/$*.m -o Output/$*.second.s
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
-	 echo "--------- TEST-PASS: $*"; \
+	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
 	else \
-	 echo "--------- TEST-FAIL: $*"; \
+	 echo "--------- TEST-FAIL: $*" > Output/$*.dbgopt.report.txt; \
 	fi
 
 Output/%.s: %.mm Output/.dir $(INCLUDES)
 	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os -fdebug-disable-debug-info-print -S ${PROJ_SRC_DIR}/$*.mm -o Output/$*.first.s
 	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S ${PROJ_SRC_DIR}/$*.mm -o Output/$*.second.s
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
-	 echo "--------- TEST-PASS: $*"; \
+	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
 	else \
-	 echo "--------- TEST-FAIL: $*"; \
+	 echo "--------- TEST-FAIL: $*" > Output/$*.dbgopt.report.txt; \
 	fi
 
 Asms    := $(sort $(addsuffix .s, $(notdir $(basename $(Source)))))





More information about the llvm-commits mailing list