makefile:
- add all - add test
This commit is contained in:
parent
f0a13e2add
commit
89cc7a3338
1 changed files with 20 additions and 0 deletions
20
Makefile
20
Makefile
|
@ -6,6 +6,26 @@ TEST_TARGETS = tests/test-llama-grammar tests/test-grammar-parser tests/test-dou
|
||||||
|
|
||||||
default: $(BUILD_TARGETS)
|
default: $(BUILD_TARGETS)
|
||||||
|
|
||||||
|
test:
|
||||||
|
@echo "Running tests..."
|
||||||
|
@for test_target in $(TEST_TARGETS); do \
|
||||||
|
if [ "$$test_target" = "tests/test-tokenizer-0-llama" ]; then \
|
||||||
|
# ./$$test_target $(CURDIR)/../models/ggml-vocab-llama.gguf; \
|
||||||
|
continue; \
|
||||||
|
elif [ "$$test_target" = "tests/test-tokenizer-0-falcon" ]; then \
|
||||||
|
# ./$$test_target $(CURDIR)/../models/ggml-vocab-llama.gguf; \
|
||||||
|
continue; \
|
||||||
|
elif [ "$$test_target" = "tests/test-tokenizer-1" ]; then \
|
||||||
|
# ./$$test_target $(CURDIR)/../models/ggml-vocab-llama.gguf; \
|
||||||
|
continue; \
|
||||||
|
else \
|
||||||
|
./$$test_target; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
@echo "All tests have been run."
|
||||||
|
|
||||||
|
all: $(BUILD_TARGETS) $(TEST_TARGETS)
|
||||||
|
|
||||||
ifndef UNAME_S
|
ifndef UNAME_S
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue