Implement the first real test of gpt4all-chat (#3116)

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel
2024-10-20 11:38:04 -04:00
committed by GitHub
parent 9cafd38dcf
commit 7f5f0869e7
14 changed files with 157 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ if(APPLE)
endif()
endif()
find_package(Python3 QUIET COMPONENTS Interpreter)
find_package(Python3 3.12 QUIET COMPONENTS Interpreter)
option(GPT4ALL_TEST "Build the tests" ${Python3_FOUND})
option(GPT4ALL_LOCALHOST "Build installer for localhost repo" OFF)
@@ -101,7 +101,7 @@ if (GPT4ALL_TEST)
add_subdirectory(tests)
# The 'check' target makes sure the tests and their dependencies are up-to-date before running them
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS chat gpt4all_tests)
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure DEPENDS chat gpt4all_tests)
endif()
set(CHAT_EXE_RESOURCES)