projects
/
p2p-kernel-protocol.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
module: fixed receiving size
[p2p-kernel-protocol.git]
/
test
/
test.sh
diff --git
a/test/test.sh
b/test/test.sh
index
90a5458
..
5808baf
100755
(executable)
--- a/
test/test.sh
+++ b/
test/test.sh
@@
-6,10
+6,10
@@
CLIENT=client/client
SERVER=server/server
FILE=/root/Dropbox/school/p2pkp/test/client/test_file
IP="127.0.0.1"
SERVER=server/server
FILE=/root/Dropbox/school/p2pkp/test/client/test_file
IP="127.0.0.1"
+WAIT_TIME=2
LISTENERS_PORTS=(
60000
LISTENERS_PORTS=(
60000
- 60001
)
)
@@
-36,10
+36,14
@@
sleep 1
$CLIENT $FILE $ARGUMENTS
$CLIENT $FILE $ARGUMENTS
+sleep $WAIT_TIME
# kill netcat
for pid in $pids; do
# kill netcat
for pid in $pids; do
-
wait
$pid &> /dev/null
+
kill -9
$pid &> /dev/null
done
done
+#for pid in $pids; do
+# wait $pid &> /dev/null
+#done
# remove module
rmmod $MODULE_NAME
# remove module
rmmod $MODULE_NAME