aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
blob: 6a4170f803248990ad8a11a2bb8426c96e318625 (plain)
1
2
3
4
5
6
7
8
9
function(llama_add_test source)
    get_filename_component(TEST_TARGET ${source} NAME_WE)
    add_executable(${TEST_TARGET} ${source})
    target_link_libraries(${TEST_TARGET} PRIVATE llama ggml utils)
    add_test(NAME ${TEST_TARGET} COMMAND $<TARGET_FILE:${TEST_TARGET}> ${ARGN})
endfunction()

llama_add_test(test-quantize.c)
llama_add_test(test-tokenizer-0.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../models/ggml-vocab.bin)