mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
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.
13 lines
339 B
Bash
Executable File
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
|