13 lines
203 B
Bash
13 lines
203 B
Bash
|
set -e
|
||
|
|
||
|
#./testrunner
|
||
|
./tcptest &
|
||
|
tcpout=$(echo "hello" | nc localhost 18632)
|
||
|
echo "tcpout: $tcpout"
|
||
|
if [ "$tcpout" != "TEST SEND" ]; then
|
||
|
echo "Error: \"$tcpout\" != \"TEST SEND\""
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
exit 0
|