FairMQ/fairmq/test/test-fairmq-req-rep.sh.in
Alexey Rybalchenko c42b6ca4ae Include device ID in the zeromq socket identity.
For request sockets in ZeroMQ the socket identity must be unique, otherwise multiple clients will be rejected.
Update the tests to test this use case.
2016-03-03 13:10:56 +01:00

13 lines
339 B
Bash
Executable File

#!/bin/bash
trap 'kill -TERM $REQ1_PID; kill -TERM $REQ2_PID; kill -TERM $REP_PID; wait $REQ1_PID; wait $REQ2_PID; wait $REP_PID;' TERM
@CMAKE_BINARY_DIR@/bin/test-fairmq-req &
REQ1_PID=$!
@CMAKE_BINARY_DIR@/bin/test-fairmq-req &
REQ2_PID=$!
@CMAKE_BINARY_DIR@/bin/test-fairmq-rep &
REP_PID=$!
wait $REQ1_PID
wait $REQ2_PID
wait $REP_PID