mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 12:02:29 -04:00

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6033 b45a01b8-16f6-495d-af2f-9b41ad6348cc
20 lines
316 B
Bash
Executable file
20 lines
316 B
Bash
Executable file
#!/bin/sh
|
|
# Script to Test the udp_server code.
|
|
|
|
EXEC=./stacks_tou
|
|
DATAFILE=./stacks_tou
|
|
|
|
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
|
|
|