Skip to content

Commit

Permalink
Merge pull request #119 from xaptum/zanebeckwith/tool-test-flag
Browse files Browse the repository at this point in the history
test: Only run "tool_test" if BUILD_TOOL=ON.
  • Loading branch information
zanebeckwith committed Jan 28, 2020
2 parents 4b9835c + 0fce316 commit 0850612
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/CMakeLists.txt
Expand Up @@ -46,11 +46,13 @@ add_test_case("wrapper_sanity-test.c" "")
add_test_case("integration_test.c" "1;2;3;4")
add_test_case("certificate_test.c" "")

add_test(NAME "tool_test"
COMMAND ${CMAKE_CURRENT_LIST_DIR}/tool-test.sh
${CMAKE_BINARY_DIR}/tool
${PROJECT_SOURCE_DIR}/data/client
${CURRENT_TEST_BINARY_DIR}
)
if(BUILD_TOOL)
add_test(NAME "tool_test"
COMMAND ${CMAKE_CURRENT_LIST_DIR}/tool-test.sh
${CMAKE_BINARY_DIR}/tool
${PROJECT_SOURCE_DIR}/data/client
${CURRENT_TEST_BINARY_DIR}
)
endif()

add_subdirectory(cpp)

0 comments on commit 0850612

Please sign in to comment.