aboutsummaryrefslogtreecommitdiff
path: root/tests2/Makefile
diff options
context:
space:
mode:
authorMilutin Jovanović <jovanovic.milutin@gmail.com>2012-06-27 13:04:27 -0400
committerMilutin Jovanović <jovanovic.milutin@gmail.com>2012-06-27 14:48:08 -0400
commitd54e24cc0ea0f669f99711bd96af5139059904da (patch)
tree2b666f5ba9e7aae1d001f944727978c215680a04 /tests2/Makefile
parent240064c03bbc4264ff972f4dbd2d0e2f6d4222c7 (diff)
downloadtinycc-d54e24cc0ea0f669f99711bd96af5139059904da.tar.gz
tinycc-d54e24cc0ea0f669f99711bd96af5139059904da.tar.bz2
tests: Minor adjustments selecting which tests are run on each platform.
The intent is for 'make test' to pass cleanly on each platform, and thus easier spotting of regressions. Linux is best supported by most tests running and passing. Mac OSX passes mosts tests that do not make/link with binary files, due to lack of mach-o file support. !!! I have very limited knowledge of Windows platform, and cannot comment why all tests(1) fail. I have posted to newsgroup asking for someone to test Windows platform.
Diffstat (limited to 'tests2/Makefile')
-rw-r--r--tests2/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests2/Makefile b/tests2/Makefile
index cc13cde..b57028b 100644
--- a/tests2/Makefile
+++ b/tests2/Makefile
@@ -67,9 +67,18 @@ TESTS= 00_assignment.test \
# 34_array_assignment.test \ # array assignment is not in C standard
# 46_grep.test \ # does not compile even with gcc
+# some tests do not pass on all platforms, remove them for now
+ifeq ($(TARGETOS),Darwin)
+ TESTS := $(filter-out 40_stdio.test,$(TESTS))
+endif
+ifdef CONFIG_WIN32
+ TESTS := $(filter-out 24_math_library.test,$(TESTS))
+ TESTS := $(filter-out 28_strings.test,$(TESTS))
+endif
+
%.test: %.expect %.c
@echo Test: $*...
- -@if [ "x`echo $* | grep args`" != "x" ]; \
+ @if [ "x`echo $* | grep args`" != "x" ]; \
then \
../tcc -B.. $(TCCFLAGS) -run $*.c - arg1 arg2 arg3 arg4 2>&1 >$*.output; \
else \
@@ -78,7 +87,6 @@ TESTS= 00_assignment.test \
@if diff -bu $*.expect $*.output ; \
then \
rm -f $*.output \
- : \
else \
echo "ERROR: test $*"; \
fi