diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff7238aba..757960d80 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -223,7 +223,7 @@ jobs: id: cmake_test run: | cd build - ctest -L main --verbose --timeout 900 + ctest --verbose --timeout 900 - name: Test llama2c conversion id: llama2c_test diff --git a/examples/ggml-debug/CMakeLists.txt b/examples/ggml-debug/CMakeLists.txt index 36987d0c7..2e14049ce 100644 --- a/examples/ggml-debug/CMakeLists.txt +++ b/examples/ggml-debug/CMakeLists.txt @@ -3,3 +3,8 @@ add_executable(${TARGET} ggml-debug.cpp) 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() + +add_test(NAME test-ggml-debug COMMAND ggml-debug --hf-repo ggml-org/models --hf-file tinyllamas/stories260K.gguf --model stories260K.gguf --prompt hello --seed 42) \ No newline at end of file