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,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