2025-09-05 11:43:46 +00:00
|
|
|
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!"
|
|
|
|
|
)
|
|
|
|
|
|
2026-03-06 16:15:21 +00:00
|
|
|
|