From ea45f46f883c6192319f200290c55544db7b53e1 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Tue, 5 May 2020 13:47:42 -0400 Subject: improved testing --- test-all.sh | 2 ++ test-build.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test-all.sh b/test-all.sh index 03e26fb..f6c755e 100755 --- a/test-all.sh +++ b/test-all.sh @@ -1,3 +1,5 @@ #!/bin/sh ./test-build.sh || exit 1 tests/test.sh || exit 1 +./build.sh release || exit 1 +tests/test.sh || exit 1 diff --git a/test-build.sh b/test-build.sh index 45a44f7..dc78734 100755 --- a/test-build.sh +++ b/test-build.sh @@ -1,5 +1,5 @@ #!/bin/sh -echo "tcc -Wall main.c -o toc" && tcc -Wall main.c -o toc || exit 1 # test without any compiler flags +echo "tcc -DCOMPILE_TIME_FOREIGN_FN_SUPPORT=0 -Wall main.c -o toc" && tcc -DCOMPILE_TIME_FOREIGN_FN_SUPPORT=0 -Wall main.c -o toc || exit 1 # test without compile time foreign fn support for CC in tcc gcc clang g++ ; do CC="$CC" CFLAGS='-Werror' ./build.sh || exit 1 CC="$CC" CFLAGS='-Werror' ./build.sh release || exit 1 -- cgit v1.2.3