Skip to content

Commit

Permalink
Updated convey test framework, and self tests for it.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Aug 18, 2017
1 parent 48efd65 commit 7f8d3a8
Showing 4 changed files with 397 additions and 281 deletions.
10 changes: 10 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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})
Loading

0 comments on commit 7f8d3a8

Please sign in to comment.