From 8042121d74906eacec7add2ddc85270e1db3ca88 Mon Sep 17 00:00:00 2001 From: grischka Date: Sun, 10 Feb 2013 00:38:40 +0100 Subject: tcc -vv/--print-search-dirs: print more info tests/Makefile: - print-search-dirs when 'hello' fails - split off hello-run win32/include/_mingw.h: - fix for compatibility with mingw headers (While our headers in win32 are from mingw-64 and don't have the problem) tiny_libmaker: - don't use "dangerous" mktemp --- tests/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tests/Makefile') diff --git a/tests/Makefile b/tests/Makefile index 0e6fc46..6e0f728 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -8,7 +8,8 @@ VPATH = $(top_srcdir)/tests # what tests to run TESTS = \ - hello \ + hello-exe \ + hello-run \ libtest \ test3 \ moretests @@ -26,7 +27,7 @@ ifdef CONFIG_WIN32 TESTS := $(filter-out test3,$(TESTS)) endif ifeq ($(TARGETOS),Darwin) - TESTS := $(filter-out hello test3 btest,$(TESTS)) + TESTS := $(filter-out hello-exe test3 btest,$(TESTS)) endif ifdef DISABLE_STATIC @@ -57,9 +58,12 @@ endif all test : $(TESTS) -hello: ../examples/ex1.c +hello-exe: ../examples/ex1.c + @echo ------------ $@ ------------ + $(TCC) $< -o hello$(EXESUF) || ($(TOP)/tcc -vv; exit 1) && ./hello$(EXESUF) + +hello-run: ../examples/ex1.c @echo ------------ $@ ------------ - $(TCC) $< -o $@$(EXESUF) && ./$@$(EXESUF) $(TCC) -run $< libtest: libtcc_test$(EXESUF) $(LIBTCC1) @@ -192,3 +196,4 @@ clean: $(MAKE) -C tests2 $@ rm -vf *~ *.o *.a *.bin *.i *.ref *.out *.out? *.out?b *.gcc *.exe \ hello libtcc_test tcctest[1234] ex? tcc_g tcclib.h + -- cgit v1.3.1