From f84473da64e3203a9725a848b19b6dcc3ead761f Mon Sep 17 00:00:00 2001 From: Pierrick HYMBERT Date: Wed, 10 Apr 2024 22:18:45 +0200 Subject: [PATCH] ggml-debug: tests add the main label --- examples/ggml-debug/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/ggml-debug/CMakeLists.txt b/examples/ggml-debug/CMakeLists.txt index 211583663..70e13d63c 100644 --- a/examples/ggml-debug/CMakeLists.txt +++ b/examples/ggml-debug/CMakeLists.txt @@ -4,8 +4,9 @@ install(TARGETS ${TARGET} RUNTIME) target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT}) target_compile_features(${TARGET} PRIVATE cxx_std_11) -# define tests -enable_testing() +if (NOT DEFINED LLAMA_TEST_LABEL) + set(LLAMA_TEST_LABEL "main") +endif() set(TEST_TARGET test-ggml-debug) add_test(NAME ${TEST_TARGET} COMMAND ggml-debug --hf-repo ggml-org/models --hf-file tinyllamas/stories260K.gguf --model stories260K.gguf --prompt hello --seed 42)