1 Star 0 Fork 0

fabsnail / dog-tunnel

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
test.sh 462 Bytes
Copy Edit Web IDE Raw Blame History
#!/bin/bash
# first run server,make client,and reg a,then run this bash to test
declare -i i=0
declare -i maxN=30
while [ $i -lt $maxN ]
do
declare -i j=$i+10000
./dtunnel -link a -local :$j -pipen 4 -v > test_$j.log 2>&1 &
i=$i+1
done
#maybe longer
sleep 5
declare -i n=`grep "service start success" test*.log|wc -l`
if [ $n -eq $maxN ]
then
echo "test ok"
else
cat test*.log
fi
ps aux|grep "link a"|grep -v grep|awk '{print $2}'|xargs kill
rm test*.log

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/fabsnail/dog-tunnel.git
git@gitee.com:fabsnail/dog-tunnel.git
fabsnail
dog-tunnel
dog-tunnel
master

Search

152606 8668e384 1899542 133635 2cd7d36e 1899542