* build ci: run make test
* makefile:
- add all
- add test
* enable tests/test-tokenizer-0-llama
* fix path to model
* remove gcc-8 from macos build test
* Update Makefile
* Update Makefile
run: |
CC=gcc-8 make
+ - name: Test
+ id: make_test
+ run: |
+ CC=gcc-8 make tests
+ make test
+
ubuntu-latest-cmake:
runs-on: ubuntu-latest
run: |
make
+ - name: Test
+ id: make_test
+ run: |
+ make tests
+ make test
+
macOS-latest-cmake:
runs-on: macos-latest
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; \
+ elif [ "$$test_target" = "tests/test-tokenizer-0-falcon" ]; then \
+ continue; \
+ elif [ "$$test_target" = "tests/test-tokenizer-1" ]; then \
+ continue; \
+ else \
+ ./$$test_target; \
+ fi; \
+ done
+ @echo "All tests have been run."
+
+all: $(BUILD_TARGETS) $(TEST_TARGETS)
+
ifndef UNAME_S
UNAME_S := $(shell uname -s)
endif