projects
/
p2p-kernel-protocol.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sendfile: added server implementation
[p2p-kernel-protocol.git]
/
test
/
test.sh
diff --git
a/test/test.sh
b/test/test.sh
index
d36d0fe
..
90a5458
100755
(executable)
--- 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
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=(
IP="127.0.0.1"
LISTENERS_PORTS=(
@@
-15,6
+16,8
@@
LISTENERS_PORTS=(
#use nc.traditional
echo 2 | update-alternatives --config nc &> /dev/null
#use nc.traditional
echo 2 | update-alternatives --config nc &> /dev/null
+[ -e $FILE ] || exit
+
#increase tests debugging
set -x
#increase tests debugging
set -x
@@
-31,7
+34,7
@@
done
# wait for netcat to start listening
sleep 1
# wait for netcat to start listening
sleep 1
-$CLIENT $ARGUMENTS
+$CLIENT $
FILE $
ARGUMENTS
# kill netcat
for pid in $pids; do
# kill netcat
for pid in $pids; do