mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
27 lines
754 B
Bash
Executable File
27 lines
754 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ex1config="@CMAKE_BINARY_DIR@/bin/config/ex1-sampler-sink.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="ex1-sampler"
|
|
SAMPLER+=" --id sampler1"
|
|
SAMPLER+=" --control static --log-color false"
|
|
SAMPLER+=" --max-iterations 1"
|
|
SAMPLER+=" --mq-config $ex1config"
|
|
@CMAKE_BINARY_DIR@/bin/examples/MQ/1-sampler-sink/$SAMPLER &
|
|
SAMPLER_PID=$!
|
|
|
|
SINK="ex1-sink"
|
|
SINK+=" --id sink1"
|
|
SINK+=" --control static --log-color false"
|
|
SINK+=" --max-iterations 1"
|
|
SINK+=" --mq-config $ex1config"
|
|
@CMAKE_BINARY_DIR@/bin/examples/MQ/1-sampler-sink/$SINK &
|
|
SINK_PID=$!
|
|
|
|
# wait for sampler and sink to finish
|
|
wait $SAMPLER_PID
|
|
wait $SINK_PID
|