# This test will create a sender and a receiver socket and check that sending 10 messages works
# The test is done in mock mode, and in normal mode with sockets running in separate threads.


add_executable(test_pzmq_push_pull main.cpp)
target_link_libraries(test_pzmq_push_pull phoenix_zmq phoenix_socket phoenix_data_stream phoenix_check_stream ${ZMQ_LIBRARY} pthread)

add_test(NAME TestPZMQPushPull
	COMMAND ${CHECK_OUTPUT_FILE} ${CMAKE_CURRENT_BINARY_DIR}/test_pzmq_push_pull
	WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})


