Commit d88c8e3c authored by Dafydd Harries's avatar Dafydd Harries
Browse files

add UDP echo test script

darcs-hash:20070111183708-c9803-2b2622de843b15c1570a319b6c9b83926e325f44.gz
parent 5559353a
......@@ -11,3 +11,8 @@ udp_client_LDADD = libudp.a $(GLIB_LIBS)
udp_echo_server_LDADD = libudp.a $(GLIB_LIBS)
test-echo.sh::
chmod +x $@
TESTS = test-echo.sh
#!/bin/sh
./udp-echo-server &
server_pid=$!
output=`echo foo | ./udp-client`
kill $server_pid
test "$output" = foo || exit 1
exit 0
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