[test-suite] r243400 - Add CC_Hash to simple report, containing a hash of the binary.
Kristof Beyls
kristof.beyls at arm.com
Tue Jul 28 02:57:40 PDT 2015
Author: kbeyls
Date: Tue Jul 28 04:57:39 2015
New Revision: 243400
URL: http://llvm.org/viewvc/llvm-project?rev=243400&view=rev
Log:
Add CC_Hash to simple report, containing a hash of the binary.
Modified:
test-suite/trunk/Makefile.programs
test-suite/trunk/TEST.simple.Makefile
test-suite/trunk/TEST.simple.report
Modified: test-suite/trunk/Makefile.programs
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Makefile.programs?rev=243400&r1=243399&r2=243400&view=diff
==============================================================================
--- test-suite/trunk/Makefile.programs (original)
+++ test-suite/trunk/Makefile.programs Tue Jul 28 04:57:39 2015
@@ -545,6 +545,12 @@ ifdef PROGRAM_OUTPUT_FILTER
$(PROGRAM_OUTPUT_FILTER) $@
endif
+$(PROGRAMS_TO_TEST:%=Output/%.simple-hash): \
+Output/%.simple-hash: Output/%.simple
+ cp $< $@; \
+ strip --remove-section=.comment --remove-section='.note*' $@; \
+ $(PROGDIR)/HashProgramOutput.sh $@
+
$(PROGRAMS_TO_TEST:%=Output/%.out-lli): \
Output/%.out-lli: Output/%.llvm.bc $(LLI)
$(RUNSAFELY) $(STDIN_FILENAME) $@ $(LLI) -info-output-file=$(CURDIR)/$@.info $(STATS) $(LLI_OPTS) $< $(RUN_OPTIONS)
Modified: test-suite/trunk/TEST.simple.Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/TEST.simple.Makefile?rev=243400&r1=243399&r2=243400&view=diff
==============================================================================
--- test-suite/trunk/TEST.simple.Makefile (original)
+++ test-suite/trunk/TEST.simple.Makefile Tue Jul 28 04:57:39 2015
@@ -19,11 +19,12 @@ REPORTS_SUFFIX := $(addsuffix .report.tx
# -grep "^program" Output/$*.simple.compile.time >> $@
$(PROGRAMS_TO_TEST:%=Output/%.simple.compile.report.txt): \
-Output/%.simple.compile.report.txt: Output/%.out-simple
+Output/%.simple.compile.report.txt: Output/%.out-simple Output/%.simple-hash
@echo > $@
@-if test -f Output/$*.simple; then \
echo "TEST-PASS: compile $(RELDIR)/$*" >> $@; \
echo "TEST-RESULT-compile-success: pass" >> $@;\
+ echo "TEST-RESULT-compile-hash: `cat Output/$*.simple-hash`" >> $@;\
else \
echo "TEST-FAIL: compile $(RELDIR)/$*" >> $@; \
fi
Modified: test-suite/trunk/TEST.simple.report
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/TEST.simple.report?rev=243400&r1=243399&r2=243400&view=diff
==============================================================================
--- test-suite/trunk/TEST.simple.report (original)
+++ test-suite/trunk/TEST.simple.report Tue Jul 28 04:57:39 2015
@@ -26,6 +26,7 @@ sub FormatTime {
["CC" , 'TEST-RESULT-compile-success: (pass|fail|xfail)'],
["CC_Time" , 'TEST-RESULT-compile-time: user\s*([.0-9m:]+)', \&FormatTime],
["CC_Real_Time", 'TEST-RESULT-compile-real-time: real\s*([.0-9m:]+)', \&FormatTime],
+ ["CC_Hash", 'TEST-RESULT-compile-hash: (.*)'],
["Exec" , 'TEST-RESULT-exec-success: (pass|fail|xfail)'],
["Exec_Time", 'TEST-RESULT-exec-time: user\s*([.0-9m:]+)', \&FormatTime],
["Exec_Real_Time", 'TEST-RESULT-exec-real-time: real\s*([.0-9m:]+)', \&FormatTime],
More information about the llvm-commits
mailing list