When socat is not installed, the testrunner would fail instead of
exiting without testing as planned.
This also adds `set -x` to the testrunner for future error diagnosis.
#!/usr/bin/env bash
-
+set -x
new_api=0
mode=$1
}
function start_unix() {
- if [ ! -x $socat ]; then
- echo "Cannot find socat - cannot test (non-fatal)"
+ if [ -z "$socat" -o ! -x "$socat" ]; then
+ echo "Cannot find socat - skipping test (non-fatal)"
exit 0
fi
stop_zeromq
;;
*)
- echo "Usage: $0 test_remotebackend_(pipe|http|post|json)"
+ echo "Usage: $0 test_remotebackend_(pipe|unix|http|post|json|zeromq)"
exit 1
;;
esac