Files
erlang/bin/ecapnp_test
2013-09-26 21:34:26 +02:00

15 lines
327 B
Bash
Executable File

#!/bin/bash
# The tmpfile hack is to avoid using stdin from erlang
# as that is seriously bugged on windows
case $1 in
decode*)
tmpfile=`mktemp ecapnp_test.XXXXXXXXXX`
cat > $tmpfile && ${0%/*}/run_test $tmpfile $*
ret=$?
rm $tmpfile
exit $ret;;
*) ${0%/*}/run_test $* ;;
esac