mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
19 lines
450 B
Bash
Executable File
19 lines
450 B
Bash
Executable File
#!/bin/bash
|
|
|
|
transport="zeromq"
|
|
|
|
if [ "$1" = "nanomsg" ]; then
|
|
transport="nanomsg"
|
|
fi
|
|
|
|
trap 'kill -TERM $PUB_PID; kill -TERM $SUB1_PID; kill -TERM $SUB2_PID; wait $PUB_PID; wait $SUB1_PID; wait $SUB2_PID;' TERM
|
|
@CMAKE_BINARY_DIR@/bin/test-fairmq-pub $transport &
|
|
PUB_PID=$!
|
|
@CMAKE_BINARY_DIR@/bin/test-fairmq-sub $transport &
|
|
SUB1_PID=$!
|
|
@CMAKE_BINARY_DIR@/bin/test-fairmq-sub $transport &
|
|
SUB2_PID=$!
|
|
wait $PUB_PID
|
|
wait $SUB1_PID
|
|
wait $SUB2_PID
|