diff options
Diffstat (limited to 'tests/CMakeLists.txt')
| -rw-r--r-- | tests/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7dd74d8a..357ea402 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -35,6 +35,16 @@ if (NNG_TESTS) add_definitions (-pthread) endif() + # convey tests -- verify the test framework works! + add_executable(convey_test convey_test.c convey.c) + if (CMAKE_THREAD_LIBS_INIT) + target_link_libraries (convey_test "${CMAKE_THREAD_LIBS_INIT}") + endif() + add_test (NAME convey_test COMMAND convey_test + -v -d -p ENV_TEST=ON -p ANOTHERNAME -p AGAIN=yes extra) + set_tests_properties( convey_test PROPERTIES TIMEOUT 2) + list (APPEND all_tests convey_test) + set (TEST_PORT 12100) macro (add_nng_test NAME TIMEOUT) list (APPEND all_tests ${NAME}) |
