don't write the test REPORT to stdout only a summary
authorSzabolcs Nagy <nsz@port70.net>
Sun, 5 Jan 2020 15:44:55 +0000 (15:44 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sun, 5 Jan 2020 16:00:28 +0000 (16:00 +0000)
src/REPORT has too much clutter now.

Makefile

index e786499..86b6ff5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -117,14 +117,14 @@ api/main.OBJS:=$(api.OBJS)
 $(api.OBJS):$(B)/common/options.h
 $(api.OBJS):CFLAGS+=-pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700
 
-all:$(B)/REPORT
-run:$(B)/REPORT
+all run: $(B)/REPORT
+       grep FAIL $< || echo PASS
 clean:
        rm -f $(OBJS) $(BINS) $(LIBS) $(B)/common/libtest.a $(B)/common/runtest.exe $(B)/common/options.h $(B)/*/*.err
 cleanall: clean
        rm -f $(B)/REPORT $(B)/*/REPORT
 $(B)/REPORT:
-       cat $^ |tee $@
+       cat $^ >$@
 
 $(B)/%.o:: src/%.c
        $(CC) $(CFLAGS) $($*.CFLAGS) -c -o $@ $< 2>$@.err || echo BUILDERROR $@; cat $@.err