test: update

This commit is contained in:
fatedier
2017-03-10 00:52:32 +08:00
parent 307b74cc13
commit f83a2a73ab
12 changed files with 53 additions and 115 deletions

14
tests/clean_test.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
pid=`ps aux|grep './../bin/frps -c ./conf/auto_test_frps.ini'|grep -v grep|awk {'print $2'}`
if [ -n "${pid}" ]; then
kill ${pid}
fi
pid=`ps aux|grep './../bin/frpc -c ./conf/auto_test_frpc.ini'|grep -v grep|awk {'print $2'}`
if [ -n "${pid}" ]; then
kill ${pid}
fi
rm -f ./frps.log
rm -f ./frpc.log