mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 01:51:45 +00:00
Run FairMQ tests with both ZeroMQ and nanomsg
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
#!/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 &
|
||||
@CMAKE_BINARY_DIR@/bin/test-fairmq-pub $transport &
|
||||
PUB_PID=$!
|
||||
@CMAKE_BINARY_DIR@/bin/test-fairmq-sub &
|
||||
@CMAKE_BINARY_DIR@/bin/test-fairmq-sub $transport &
|
||||
SUB1_PID=$!
|
||||
@CMAKE_BINARY_DIR@/bin/test-fairmq-sub &
|
||||
@CMAKE_BINARY_DIR@/bin/test-fairmq-sub $transport &
|
||||
SUB2_PID=$!
|
||||
wait $PUB_PID
|
||||
wait $SUB1_PID
|
||||
|
Reference in New Issue
Block a user