Added some more serious tests.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4479 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2011-07-20 01:35:57 +00:00
parent c3c6fb87be
commit fcd51a8439
6 changed files with 809 additions and 2 deletions

View file

@ -0,0 +1,20 @@
#/bin/sh
# Script to Test the udp_server code.
EXEC=./stacks_tou
DATAFILE=../../lib/libretroshare.a
TMPOUTPUT=tmpoutput$$
EXPECTEDPERIOD=10
$EXEC 127.0.0.1 4401 127.0.0.1 4032 < $DATAFILE > $TMPOUTPUT
if diff -s $DATAFILE $TMPOUTPUT
then
echo "SUCCESS"
else
echo "FAILURE to accurately transfer DATA"
fi
rm $TMPOUTPUT