Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit f159cac

Browse files
committed
fix CI tests
TODO: the installed intro program is not found while test installed version
1 parent e51378d commit f159cac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ endif()
1212

1313
# ---- Dependencies ----
1414

15-
find_package(Catch2 REQUIRED)
15+
find_package(Catch2 CONFIG REQUIRED)
1616

1717
include(Catch)
1818

@@ -21,13 +21,13 @@ target_link_libraries(catch_main PUBLIC Catch2::Catch2)
2121
target_link_libraries(catch_main PRIVATE myproject::project_options)
2222

2323
# Provide a simple smoke test to make sure that the CLI works and can display a --help message
24-
add_test(NAME cli.has_help COMMAND myproject::intro --help)
24+
add_test(NAME cli.has_help COMMAND intro --help)
2525

2626
# Provide a test to verify that the version being reported from the application
2727
# matches the version given to CMake. This will be important once you package
2828
# your program. Real world shows that this is the kind of simple mistake that is easy
2929
# to make, but also easy to test for.
30-
add_test(NAME cli.version_matches COMMAND myproject::intro --version)
30+
add_test(NAME cli.version_matches COMMAND intro --version)
3131
set_tests_properties(cli.version_matches PROPERTIES PASS_REGULAR_EXPRESSION "${PROJECT_VERSION}")
3232

3333
add_executable(tests tests.cpp)

0 commit comments

Comments
 (0)