aboutsummaryrefslogtreecommitdiff
path: root/tests/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/makefile')
-rw-r--r--tests/makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/makefile b/tests/makefile
index 21f68dd..4a0afc9 100644
--- a/tests/makefile
+++ b/tests/makefile
@@ -1,32 +1,31 @@
include ./tests.mk
LLVM ?= 0
-CROSS_COMPILE :=
+CROSS_COMPILE :=
COMPILER != [ "$(LLVM)" != "0" ] \
&& echo clang --target="$(CROSS_COMPILE)" \
|| echo $(CROSS_COMPILE)gcc
CFLAGS := -Wall -Wextra -O0 -g
INCLUDE_FLAGS := -I include
-COMPILE_JIT_TEST := $(COMPILER) $(CFLAGS) $(INCLUDE_FLAGS)
-COMPILE_BCODE_TEST := $(COMPILER) $(CFLAGS) $(INCLUDE_FLAGS) -DFORCE_BCODE=1
+COMPILE_TEST := $(COMPILER) $(CFLAGS) $(INCLUDE_FLAGS)
.PHONY: check
-check: check-bcode check-jit
+check: $(TESTS) check-bcode check-jit
echo "Success!"
.PHONY: check-bcode
-check-bcode: $(BCODE_TESTS)
+check-bcode: $(TESTS)
@echo "Running bytecode tests..."
- @set -e; for test in $(BCODE_TESTS); do \
+ @set -e; for test in $(TESTS); do \
echo "Testing: $$test"; \
./$$test; \
done
.PHONY: check-jit
-check-jit: $(JIT_TESTS)
+check-jit: $(TESTS)
@echo "Running jit tests..."
- @set -e; for test in $(JIT_TESTS); do \
+ @set -e; for test in $(TESTS); do \
echo "Testing: $$test"; \
- ./$$test; \
+ ./$$test 1; \
done