mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Tests for MQ examples
This commit is contained in:
committed by
Mohammad Al-Turany
parent
984eed1a89
commit
319bdc91a1
23
examples/MQ/8-multipart/testMQEx8.sh.in
Executable file
23
examples/MQ/8-multipart/testMQEx8.sh.in
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
ex8config="@CMAKE_BINARY_DIR@/bin/config/ex8-multipart.json"
|
||||
|
||||
# setup a trap to kill everything if the test fails/timeouts
|
||||
trap 'kill -TERM $SAMPLER_PID; kill -TERM $SINK_PID; wait $SAMPLER_PID; wait $SINK_PID;' TERM
|
||||
|
||||
SAMPLER="ex8-sampler"
|
||||
SAMPLER+=" --id sampler1"
|
||||
SAMPLER+=" --max-iterations 1"
|
||||
SAMPLER+=" --control static --log-color false"
|
||||
SAMPLER+=" --mq-config $ex8config"
|
||||
@CMAKE_BINARY_DIR@/bin/examples/MQ/8-multipart/$SAMPLER &
|
||||
SAMPLER_PID=$!
|
||||
|
||||
SINK="ex8-sink"
|
||||
SINK+=" --id sink1"
|
||||
SINK+=" --control static --log-color false"
|
||||
SINK+=" --mq-config $ex8config"
|
||||
@CMAKE_BINARY_DIR@/bin/examples/MQ/8-multipart/$SINK &
|
||||
SINK_PID=$!
|
||||
|
||||
wait $SAMPLER_PID
|
||||
wait $SINK_PID
|
Reference in New Issue
Block a user