2023-03-22 18:29:06 +01:00
|
|
|
function(llama_add_test source)
|
|
|
|
get_filename_component(TEST_TARGET ${source} NAME_WE)
|
|
|
|
add_executable(${TEST_TARGET} ${source})
|
2023-03-25 19:26:40 +01:00
|
|
|
target_link_libraries(${TEST_TARGET} PRIVATE llama)
|
2023-03-22 18:29:06 +01:00
|
|
|
add_test(NAME ${TEST_TARGET} COMMAND $<TARGET_FILE:${TEST_TARGET}> ${ARGN})
|
|
|
|
endfunction()
|
|
|
|
|
2023-03-28 18:48:20 +02:00
|
|
|
# llama_add_test(test-double-float.c) # SLOW
|
2023-04-22 11:10:39 +02:00
|
|
|
llama_add_test(test-quantize-fns.cpp)
|
|
|
|
llama_add_test(test-quantize-perf.cpp)
|
2023-03-22 18:29:06 +01:00
|
|
|
llama_add_test(test-tokenizer-0.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../models/ggml-vocab.bin)
|