X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=test%2Ftest.sh;h=90a54589b219bfbd15ce3f34620f693f352865e5;hb=ffc95a7b6a0262d74247e8fac336896c7529fd63;hp=d36d0fef333d2fe4bf629472edaa6c4c9152e1ee;hpb=bea87028d855a62771324f4458696165c566b997;p=p2p-kernel-protocol.git diff --git a/test/test.sh b/test/test.sh index d36d0fe..90a5458 100755 --- a/test/test.sh +++ b/test/test.sh @@ -4,6 +4,7 @@ MODULE_NAME=af_p2pkp MODULE_DIR=../module CLIENT=client/client SERVER=server/server +FILE=/root/Dropbox/school/p2pkp/test/client/test_file IP="127.0.0.1" LISTENERS_PORTS=( @@ -15,6 +16,8 @@ LISTENERS_PORTS=( #use nc.traditional echo 2 | update-alternatives --config nc &> /dev/null +[ -e $FILE ] || exit + #increase tests debugging set -x @@ -31,7 +34,7 @@ done # wait for netcat to start listening sleep 1 -$CLIENT $ARGUMENTS +$CLIENT $FILE $ARGUMENTS # kill netcat for pid in $pids; do