summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
authorCarlos Maniero <carlosmaniero@gmail.com>2023-04-18 09:41:29 -0300
committerJohnny Richard <johnny@johnnyrichard.com>2023-04-18 17:20:26 +0200
commit3433ac8bd34f302cec30f7d2faeb00a9c77e5ef8 (patch)
treeaa67fa84b578b72ea6b08eed7615089029fbc20e /test/Makefile
parent841bc101123be63f0fc9810e7cca7127da7d3e3a (diff)
tests: Include lexer's number tokenizer tests
Signed-off-by: Carlos Maniero <carlosmaniero@gmail.com> Reviewed-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index 7a37dfe..51ece02 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -6,7 +6,9 @@ EXEC_TESTS := $(patsubst %_test, ./%_test, $(TESTS))
.PHONY: all
all: munit.o $(TESTS)
- $(EXEC_TESTS)
+ @for file in $(EXEC_TESTS); do \
+ ./"$$file"; \
+ done
.PHONY: clean
clean:
@@ -14,3 +16,6 @@ clean:
string_view_test: munit.o string_view_test.o ../build/string_view.o
$(CC) $? $(CFLAGS) -o $@
+
+lexer_test: munit.o lexer_test.o ../build/lexer.o ../build/string_view.o
+ $(CC) $? $(CFLAGS) -o $@