Skip to content

Commit

Permalink
NightlyTest: Include the individual program report header in the .rep…
Browse files Browse the repository at this point in the history
…ort.txt files.

llvm-svn: 91033
  • Loading branch information
ddunbar committed Dec 10, 2009
1 parent 426e538 commit b4a9c15
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 24 deletions.
9 changes: 5 additions & 4 deletions TEST.aa.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ AA_OUTPUTS := $(addsuffix .txt, $(AA_IMPLS))
# Overall tests: just run subordinate tests
$(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
Output/%.$(TEST).report.txt: $(addprefix Output/%.aa., $(AA_OUTPUTS))
-$(LDIS) < Output/$*.lib.bc | grep ^declare > $@
$(VERB) $(RM) -f $@
@echo "---------------------------------------------------------------" >> $@
@echo ">>> ========= '$(RELDIR)/$*' Program" >> $@
@echo "---------------------------------------------------------------" >> $@
-$(LDIS) < Output/$*.lib.bc | grep ^declare >> $@
@-for output in $(addprefix Output/$*.aa., $(AA_OUTPUTS)); do \
echo -n "$$output:" >> $@; \
grep Summary $$output >> $@; \
Expand All @@ -50,9 +54,6 @@ Output/%.$(TEST).report.txt: $(addprefix Output/%.aa., $(AA_OUTPUTS))

$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
test.$(TEST).%: Output/%.$(TEST).report.txt
@echo "---------------------------------------------------------------"
@echo ">>> ========= '$*' Program"
@echo "---------------------------------------------------------------"
@cat $<

# Define REPORT_DEPENDENCIES so that the report is regenerated if analyze or
Expand Down
9 changes: 5 additions & 4 deletions TEST.beta-compare.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ Output/%.$(TEST).llc-beta-info.txt: Output/%.llvm.bc $(LLC)

$(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
Output/%.$(TEST).report.txt: Output/%.$(TEST).llc-info.txt Output/%.$(TEST).llc-beta-info.txt
-@printf "LLC: " > $@
$(VERB) $(RM) -f $@
@echo "---------------------------------------------------------------" >> $@
@echo ">>> ========= '$(RELDIR)/$*' Program" >> $@
@echo "---------------------------------------------------------------" >> $@
-@printf "LLC: " >> $@
-grep 'Number of machine instrs printed' Output/$*.$(TEST).llc-info.txt >> $@
-@printf "LLCBETA: " >> $@
-grep 'Number of machine instrs printed' Output/$*.$(TEST).llc-beta-info.txt >> $@

$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
test.$(TEST).%: Output/%.$(TEST).report.txt
@echo "---------------------------------------------------------------"
@echo ">>> ========= '$(RELDIR)/$*' Program"
@echo "---------------------------------------------------------------"
@cat $<

# Define REPORT_DEPENDENCIES so that the report is regenerated if llc changes
Expand Down
9 changes: 5 additions & 4 deletions TEST.jit.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ RELDIR := $(subst $(PROGDIR),,$(CURDIR))

$(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
Output/%.$(TEST).report.txt: Output/%.llvm.bc $(LLI)
$(VERB) $(RM) -f $@
@echo "---------------------------------------------------------------" >> $@
@echo ">>> ========= '$(RELDIR)/$*' Program" >> $@
@echo "---------------------------------------------------------------" >> $@
-(time -p $(LLI) $(JIT_OPTS) $< $(RUN_OPTIONS) > /dev/null \
< $(STDIN_FILENAME)) > $@ 2>&1
< $(STDIN_FILENAME)) >> $@ 2>&1

$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
test.$(TEST).%: Output/%.$(TEST).report.txt
@echo "---------------------------------------------------------------"
@echo ">>> ========= '$(RELDIR)/$*' Program"
@echo "---------------------------------------------------------------"
@cat $<

# Define REPORT_DEPENDENCIES so that the report is regenerated if lli changes
Expand Down
9 changes: 5 additions & 4 deletions TEST.libcalls.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ RELDIR := $(subst $(PROGDIR),,$(CURDIR))

$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
test.$(TEST).%: Output/%.$(TEST).report.txt
@echo "---------------------------------------------------------------"
@echo ">>> ========= '$(RELDIR)/$*' Program"
@echo "---------------------------------------------------------------"
@cat $<

$(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
Output/%.$(TEST).report.txt: Output/%.linked.rbc $(LOPT) \
$(VERB) $(RM) -f $@
@echo "---------------------------------------------------------------" >> $@
@echo ">>> ========= '$(RELDIR)/$*' Program" >> $@
@echo "---------------------------------------------------------------" >> $@
$(PROJ_SRC_ROOT)/TEST.libcalls.Makefile
@-$(LOPT) -simplify-libcalls -stats -debug-only=simplify-libcalls \
-time-passes -disable-output $< 2>$@
-time-passes -disable-output $< 2>>$@
summary:
@$(MAKE) TEST=libcalls | egrep '======|simplify-libcalls -'

Expand Down
9 changes: 5 additions & 4 deletions TEST.llc.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ RELDIR := $(subst $(PROGDIR),,$(CURDIR))

$(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
Output/%.$(TEST).report.txt: Output/%.llvm.bc $(LLC)
-(time -p $(LLC) $(LLC_OPTS) $<) > $@ 2>&1
$(VERB) $(RM) -f $@
@echo "---------------------------------------------------------------" >> $@
@echo ">>> ========= '$(RELDIR)/$*' Program" >> $@
@echo "---------------------------------------------------------------" >> $@
-(time -p $(LLC) $(LLC_OPTS) $<) >> $@ 2>&1

$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
test.$(TEST).%: Output/%.$(TEST).report.txt
@echo "---------------------------------------------------------------"
@echo ">>> ========= '$(RELDIR)/$*' Program"
@echo "---------------------------------------------------------------"
@cat $<

# Define REPORT_DEPENDENCIES so that the report is regenerated if llc changes
Expand Down
9 changes: 5 additions & 4 deletions TEST.nightly.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,14 @@ Output/%.nightly.jit.report.txt: Output/%.exe-jit
# Overall tests: just run subordinate tests
$(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
Output/%.$(TEST).report.txt: $(addprefix Output/%.nightly., $(REPORTS_SUFFIX))
-cat $(addprefix Output/$*.nightly., $(REPORTS_SUFFIX)) > $@
$(VERB) $(RM) -f $@
@echo "---------------------------------------------------------------" >> $@
@echo ">>> ========= '$(RELDIR)/$*' Program" >> $@
@echo "---------------------------------------------------------------" >> $@
-cat $(addprefix Output/$*.nightly., $(REPORTS_SUFFIX)) >> $@



$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
test.$(TEST).%: Output/%.$(TEST).report.txt
@echo "---------------------------------------------------------------"
@echo ">>> ========= '$(RELDIR)/$*' Program"
@echo "---------------------------------------------------------------"
@-cat $<

0 comments on commit b4a9c15

Please sign in to comment.