Commit 7fbc2e46 authored by Andreas Schmidt's avatar Andreas Schmidt

Rename concurrencytest.

parent 0ac2c449
#!/usr/bin/env bash
which valgrind
check() {
#echo "CHECK $1 $2"
if [ "$1" -ne 0 ]; then
echo >&2 "$2"
exit $1
fi
}
to="timeout -s INT 30 "
valgrind="valgrind --tool=helgrind --error-exitcode=1"
$to $valgrind ./receiver -p 5000 -r 127 -o receiver.csv &
$to $valgrind ./sender -t 127.0.0.1 -p 5000 -r 127 -o sender.csv
check "$?" "sender failed"
wait
check "$?" "receiver failed"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment