aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-06-10 09:08:28 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-14 08:27:03 +0200
commit3999ed4fba0a0cf7c4b9ae941d387682839640e6 (patch)
treefd6be5db659201962c2df0f5b8f4c591eb4a5791 /Makefile
parentfbdc3ae0cc650f7f7e9a2e81e63c3731651b8271 (diff)
downloadffwd-3999ed4fba0a0cf7c4b9ae941d387682839640e6.tar.gz
ffwd-3999ed4fba0a0cf7c4b9ae941d387682839640e6.zip
tests: add server encoder unit tests via EMBED_SERVER_TEST include
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7dd1c9b..05a0088 100644
--- a/Makefile
+++ b/Makefile
@@ -171,6 +171,12 @@ test:
tests/test_bf16_model.c embed.c qwen_safetensors.c $(KERNEL_SRCS) \
-lm -lpthread
./tests/test_bf16_model
+ $(CC) -Wall -Wextra -O2 $(TEST_BLAS_CFLAGS) $(CJSON_CFLAGS) -I. -Ideps/ae \
+ -o tests/test_server tests/test_server.c embed.c embed_distributed.c \
+ qwen_tokenizer.c qwen_safetensors.c $(KERNEL_SRCS) \
+ deps/ae/ae.c deps/ae/anet.c deps/ae/monotonic.c \
+ -lm -lpthread $(TEST_BLAS_LDFLAGS) $(CJSON_LDFLAGS)
+ ./tests/test_server
bench-tokenizer:
$(CC) -Wall -Wextra -O3 -march=native -I. -o bench/bench_tokenizer \
@@ -245,4 +251,5 @@ clean:
rm -f $(OBJS) embed_mlx.o embed_cuda.o embed_cli.o embed_server.o \
$(TARGET) $(SERVER_TARGET) $(LIB) libpplxembed.dylib libpplxembed.so \
tests/test_kernels_generic tests/test_kernels_blas \
- tests/test_safetensors tests/test_bf16_model bench/bench_tokenizer
+ tests/test_safetensors tests/test_bf16_model tests/test_server \
+ bench/bench_tokenizer