Skip to content

Commit

Permalink
From allpassed: return 0 if all tests passed, 1 otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
rocso committed Apr 5, 2016
1 parent 70e0c9f commit 7b1fffc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/GNUmakefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ CP = cp -f
MV = mv -f
RM = rm -f
CAT = cat
GREP = grep
WC = wc
MKDIR = mkdir
ECHO = echo
TOUCH = $(ECHO) Passed >
Expand Down Expand Up @@ -195,11 +197,13 @@ all-asm: $(ASM)

allpassed: $(HDR) $(LIB) $(DLL) $(QAPC) $(TESTS:%=%.pass)
@ $(ECHO) "ALL TESTS COMPLETED. Check the logfile: $(LOGFILE)"
@ $(ECHO) "FAILURES: $$( grep FAILED $(LOGFILE) | wc -l ) " ; grep FAILED $(LOGFILE)
@ $(ECHO) "FAILURES: $$( $(GREP) FAILED $(LOGFILE) | $(WC) -l ) "
@ ! $(GREP) FAILED $(LOGFILE)

all-bench: $(HDR) $(LIB) $(DLL) $(QAPC) $(XXLIBS) $(BENCHRESULTS)
@ $(ECHO) "ALL BENCH TESTS COMPLETED. Check the logfile: $(LOGFILE)"
@ $(ECHO) "FAILURES: $$( grep FAILED $(LOGFILE) | wc -l ) " ; grep FAILED $(LOGFILE)
@ $(ECHO) "FAILURES: $$( $(GREP) FAILED $(LOGFILE) | $(WC) -l ) "
@ ! $(GREP) FAILED $(LOGFILE)

cancel9.exe: XLIBS = -lws2_32

Expand Down

0 comments on commit 7b1fffc

Please sign in to comment.