diff options
Diffstat (limited to 'tests/pp/Makefile')
| -rw-r--r-- | tests/pp/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/pp/Makefile b/tests/pp/Makefile index 4a77035..0b96caa 100644 --- a/tests/pp/Makefile +++ b/tests/pp/Makefile @@ -15,15 +15,18 @@ all test : $(sort $(TESTS)) DIFF_OPTS = -Nu -b -B -I "^\#" +# Filter source directory in warnings/errors (out-of-tree builds) +FILTER = 2>&1 | sed 's,$(SRC)/,,g' + %.test: %.c %.expect @echo PPTest $* ... - -@$(TCC) -E -P $< >$*.output 2>&1 ; \ + -@$(TCC) -E -P $< $(FILTER) >$*.output 2>&1 ; \ diff $(DIFF_OPTS) $(SRC)/$*.expect $*.output \ && rm -f $*.output %.test: %.S %.expect @echo PPTest $* ... - -@$(TCC) -E -P $< >$*.output 2>&1 ; \ + -@$(TCC) -E -P $< $(FILTER) >$*.output 2>&1 ; \ diff $(DIFF_OPTS) $(SRC)/$*.expect $*.output \ && rm -f $*.output |
