Skip to content

Commit 8d5c16d

Browse files
committed
make: add new target checklibm
1 parent 310ff31 commit 8d5c16d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ $(api.OBJS):CFLAGS+=-pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700
119119

120120
all run: $(B)/REPORT
121121
grep FAIL $< || echo PASS
122+
# Always return 0
123+
124+
# Error when libm not passed tests
125+
checklibm: $(B)/REPORT
126+
@$(if $(shell grep FAIL $<), echo FAIL && exit 1, echo PASS)
127+
122128
clean:
123129
rm -f $(OBJS) $(BINS) $(LIBS) $(B)/common/libtest.a $(B)/common/runtest.exe $(B)/common/options.h $(B)/*/*.err
124130
cleanall: clean
@@ -151,4 +157,3 @@ $(B)/%.exe: $(B)/%.o
151157
$(RUN_TEST) $< >$@ || true
152158

153159
.PHONY: all run clean cleanall
154-

0 commit comments

Comments
 (0)