aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorgrischka <grischka>2013-02-10 00:38:40 +0100
committergrischka <grischka>2013-02-10 00:38:40 +0100
commit8042121d74906eacec7add2ddc85270e1db3ca88 (patch)
treea2f40b84332e8209ad91a0a0005444f1d61c96c5 /tests
parentd6d7686b608c4b7cd88877b30579ca2346e5d284 (diff)
downloadtinycc-8042121d74906eacec7add2ddc85270e1db3ca88.tar.gz
tinycc-8042121d74906eacec7add2ddc85270e1db3ca88.tar.bz2
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
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile13
1 files changed, 9 insertions, 4 deletions
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
+