Add make testspp.all/testspp.20
like we have already make tests2.XX.
This commit is contained in:
parent
7ad2cf8d68
commit
3e6515b64f
5
Makefile
5
Makefile
|
@ -349,6 +349,9 @@ test:
|
||||||
tests2.%:
|
tests2.%:
|
||||||
$(MAKE) -C tests/tests2 $@
|
$(MAKE) -C tests/tests2 $@
|
||||||
|
|
||||||
|
testspp.%:
|
||||||
|
$(MAKE) -C tests/pp $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f tcc$(EXESUF) tcc_p$(EXESUF) *-tcc$(EXESUF) tcc.pod
|
rm -f tcc$(EXESUF) tcc_p$(EXESUF) *-tcc$(EXESUF) tcc.pod
|
||||||
rm -f *~ *.o *.a *.so* *.out *.log lib*.def *.exe *.dll a.out tags TAGS
|
rm -f *~ *.o *.a *.so* *.out *.log lib*.def *.exe *.dll a.out tags TAGS
|
||||||
|
@ -394,6 +397,8 @@ help:
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "make tests2.all / make tests2.37 / make tests2.37+"
|
@echo "make tests2.all / make tests2.37 / make tests2.37+"
|
||||||
@echo " run all/single test(s) from tests2, optionally update .expect"
|
@echo " run all/single test(s) from tests2, optionally update .expect"
|
||||||
|
@echo "make testspp.all / make testspp.17"
|
||||||
|
@echo " run all/single test(s) from tests/pp"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Other supported make targets:"
|
@echo "Other supported make targets:"
|
||||||
@echo " install install-strip tags ETAGS tar clean distclean help"
|
@echo " install install-strip tags ETAGS tar clean distclean help"
|
||||||
|
|
|
@ -10,7 +10,7 @@ VPATH = $(SRC)
|
||||||
files = $(patsubst %.$1,%.test,$(notdir $(wildcard $(SRC)/*.$1)))
|
files = $(patsubst %.$1,%.test,$(notdir $(wildcard $(SRC)/*.$1)))
|
||||||
TESTS = $(call files,c) $(call files,S)
|
TESTS = $(call files,c) $(call files,S)
|
||||||
|
|
||||||
all test : $(sort $(TESTS))
|
all test testspp.all: $(sort $(TESTS))
|
||||||
|
|
||||||
DIFF_OPTS = -Nu -b -B
|
DIFF_OPTS = -Nu -b -B
|
||||||
|
|
||||||
|
@ -29,6 +29,8 @@ FILTER = 2>&1 | sed 's,$(SRC)/,,g'
|
||||||
diff $(DIFF_OPTS) $(SRC)/$*.expect $*.output \
|
diff $(DIFF_OPTS) $(SRC)/$*.expect $*.output \
|
||||||
&& rm -f $*.output
|
&& rm -f $*.output
|
||||||
|
|
||||||
|
testspp.%: %.test ;
|
||||||
|
|
||||||
# automatically generate .expect files with gcc:
|
# automatically generate .expect files with gcc:
|
||||||
%.expect: # %.c
|
%.expect: # %.c
|
||||||
gcc -E -P $*.[cS] >$*.expect 2>&1
|
gcc -E -P $*.[cS] >$*.expect 2>&1
|
||||||
|
|
Loading…
Reference in New Issue