implement an integration test suite

This commit is contained in:
2026-08-08 04:29:38 +03:00
parent 9b01bcce2d
commit ecce4c8170
2 changed files with 180 additions and 0 deletions
+11
View File
@@ -5,3 +5,14 @@ set(CMAKE_CXX_STANDARD 17)
add_executable(ccolors main.cpp)
# Phase 1: black-box integration test suite.
enable_testing()
find_package(Python3 COMPONENTS Interpreter)
if(Python3_Interpreter_FOUND)
add_test(
NAME ccolors_integration
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_runner.py
$<TARGET_FILE:ccolors>
)
endif()