Add initial unit tests

- Add µnit source and header files
- Add test target to the build system
- Implement a thorough lexer test suite
- Implement a minimal AST test suite
This commit is contained in:
omicron committed 2025-04-05 01:37:04 +02:00
1 parent 3fead8017b
commit 27099c9899
8 files changed
+3543

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
.PHONY: test
BUILD_DIR=build/test/
TARGET=oas-tests
SOURCES = $(filter-out src/main.c, $(shell find src/ tests/ -type f -name '*.c'))
-include make/base.mk
test: $(BUILD_DIR)$(TARGET)
$(BUILD_DIR)$(TARGET)