diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-18 14:38:06 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-18 14:38:06 -0700 |
| commit | 7f8d3a898169eabb1f515e3206c762812ea4b475 (patch) | |
| tree | 69d954916bde385877adca03e4a9bfc0b0cfc315 /tests/CMakeLists.txt | |
| parent | 48efd6574592536c7a399a98590d3ee38b4451f6 (diff) | |
| download | nng-7f8d3a898169eabb1f515e3206c762812ea4b475.tar.gz nng-7f8d3a898169eabb1f515e3206c762812ea4b475.tar.bz2 nng-7f8d3a898169eabb1f515e3206c762812ea4b475.zip | |
Updated convey test framework, and self tests for it.
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}) |
