mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 18:11:49 +00:00
Run FairMQ tests with both ZeroMQ and nanomsg
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
transport="zeromq"
|
||||
|
||||
if [ "$1" = "nanomsg" ]; then
|
||||
transport="nanomsg"
|
||||
fi
|
||||
|
||||
trap 'kill -TERM $PUSH_PID; kill -TERM $PULL_PID; wait $PUSH_PID; wait $PULL_PID;' TERM
|
||||
@CMAKE_BINARY_DIR@/bin/test-fairmq-push &
|
||||
@CMAKE_BINARY_DIR@/bin/test-fairmq-push $transport &
|
||||
PUSH_PID=$!
|
||||
@CMAKE_BINARY_DIR@/bin/test-fairmq-pull &
|
||||
@CMAKE_BINARY_DIR@/bin/test-fairmq-pull $transport &
|
||||
PULL_PID=$!
|
||||
wait $PUSH_PID
|
||||
wait $PULL_PID
|
||||
|
Reference in New Issue
Block a user