This CMake module provides functions to interface gtest with ctest.
See also
qi_create_test(name [SRC <src> ...]
[DEPENDS <depends> ...]
[TIMEOUT <timeout>]
[WORKING_DIRECTORY <working_directory>]
[NIGHTLY]
[PERF]
[ARGUMENTS <arguments> ...]
[ENVIRONMENT <environment> ...]
[<remaining args> ...]
)
Arguments: |
|
---|
Create a new test that can be run by qibuild test
qi_create_test_helper()
Add a test helper Create a binary that will not be run as a test, but rather used by an other test.
The helper can be installed along the proper tests using qibuild install --with-tests
qi_add_test()
This can be used for instance to create several tests with one target:
qi_create_test_helper(test_foo test_foo.cpp)
qi_add_test(test_foo_one test_foo ARGUMENTS --one)
qi_add_test(test_foo_two test_foo ARGUMENTS --two)
qi_create_gtest()
Same as qi_create_test, excepts it adds a dependency to the gtest libraries
qi_create_perf_test()
Shortcut for qi_create_test(... PERF)