blob: 5aeef98048b0df04df94531a790be611edfb438b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
include ./tests.mk
LLVM ?= 0
CROSS_COMPILE :=
COMPILER != [ "$(LLVM)" != "0" ] \
&& echo clang --target="$(CROSS_COMPILE)" \
|| echo $(CROSS_COMPILE)gcc
CFLAGS := -Wall -Wextra -O0 -g
INCLUDE_FLAGS := -I include
COMPILE_TEST := $(COMPILER) $(CFLAGS) $(INCLUDE_FLAGS)
.PHONY: check
check: $(TESTS)
@echo "Running bytecode tests..."
@set -e; for test in $(TESTS); do \
echo "Testing: $$test"; \
./$$test; \
done
@echo "Running jit tests..."
@set -e; for test in $(TESTS); do \
echo "Testing: $$test"; \
./$$test 1; \
done
@echo "Success!"
|