Run FairMQ tests with both ZeroMQ and nanomsg

This commit is contained in:
Alexey Rybalchenko
2016-05-31 10:19:32 +02:00
parent eb306a2c0d
commit 7062a3d280
11 changed files with 120 additions and 34 deletions

View File

@@ -1,11 +1,17 @@
#!/bin/bash
transport="zeromq"
if [ "$1" = "nanomsg" ]; then
transport="nanomsg"
fi
trap 'kill -TERM $REQ1_PID; kill -TERM $REQ2_PID; kill -TERM $REP_PID; wait $REQ1_PID; wait $REQ2_PID; wait $REP_PID;' TERM
@CMAKE_BINARY_DIR@/bin/test-fairmq-req &
@CMAKE_BINARY_DIR@/bin/test-fairmq-req $transport &
REQ1_PID=$!
@CMAKE_BINARY_DIR@/bin/test-fairmq-req &
@CMAKE_BINARY_DIR@/bin/test-fairmq-req $transport &
REQ2_PID=$!
@CMAKE_BINARY_DIR@/bin/test-fairmq-rep &
@CMAKE_BINARY_DIR@/bin/test-fairmq-rep $transport &
REP_PID=$!
wait $REQ1_PID
wait $REQ2_PID