All checks were successful
CMake / build (push) Successful in 47s
Moved source files to src/ and headers to include/. Updated CMakeLists.txt and include paths accordingly. Added and updated test files in tests/. Included generated CMake cache and compiler ID files.
18 lines
427 B
CMake
18 lines
427 B
CMake
add_executable(passwdgen_test passwdgen_test.cpp)
|
|
|
|
# Link against the library that contains the functions we want to test
|
|
target_link_libraries(passwdgen_test passwdgen_lib)
|
|
|
|
# Register the test with CTest
|
|
add_test(
|
|
NAME passwdgen_tests
|
|
COMMAND passwdgen_test
|
|
)
|
|
|
|
# Define what it means for the test to pass
|
|
set_tests_properties(passwdgen_tests
|
|
PROPERTIES PASS_REGULAR_EXPRESSION "All tests passed!"
|
|
)
|
|
|
|
|