Skip to content
Snippets Groups Projects
Verified Commit 8a197259 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

update

parent a7884e2c
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
tests = [ tests = [
('./do.bash rproxy', 'Reverse Proxy'), ('./do.bash rproxy', 'Reverse Proxy'),
('./do.bash drive', 'Drive'), ('./do.bash drive', 'Drive'),
('./do.bash ss-tw', 'ShadowSocks taiwan'), ('./do.bash ssr-tw', 'ShadowSocksR taiwan'),
('./do.bash ssr-hk', 'ShadowSocksR HongKong'),
('./do.bash frp-hk', 'FRPS HongKong'),
('./do.bash ss-us1', 'ShadowSocks US-1'), ('./do.bash ss-us1', 'ShadowSocks US-1'),
('./do.bash ss-us5', 'ShadowSocks US-5'), ('./do.bash ss-us5', 'ShadowSocks US-5'),
('./do.bash ss-us6', 'ShadowSocks US-6'), ('./do.bash ss-us6', 'ShadowSocks US-6'),
......
#!/bin/bash #!/bin/bash
[[ $1 == '' ]] && echo -e 'Usage: '"$0 <operation> ...\n operation := rproxy | drive | ss-tw | ss-us1 | ss-us5 | ss-us6 | ovpn-tw | www | mail | tm | git | zhixiang | mc | push-httpdb-agent | ddns-wuhan | rocket | dl | shortlink | all" && exit 1 [[ $1 == '' ]] && echo -e 'Usage: '"$0 <operation> ...\n operation := rproxy | drive | ssr-tw | ssr-hk | frp-hk | ss-us1 | ss-us5 | ss-us6 | ovpn-tw | www | mail | tm | git | zhixiang | mc | push-httpdb-agent | ddns-wuhan | rocket | dl | shortlink | all" && exit 1
function confirm_alive () { function confirm_alive () {
local host="$1" local host="$1"
...@@ -39,11 +39,16 @@ function do_test () { ...@@ -39,11 +39,16 @@ function do_test () {
;; ;;
drive ) drive )
confirm_alive drive.recolic.net && confirm_alive drive.recolic.net &&
curl -s https://drive.recolic.net/index.php/login | grep 'submit-wrapper' || return $? curl -s https://drive.recolic.net:444/index.php/login | grep 'submit-wrapper' || return $?
;; ;;
ss-tw ) ssr-tw )
confirm_alive nohsts.tw1.recolic.org && test_tcp base.tw1.recolic.net 465 || return $?
test_ss base.tw1.recolic.net || return $? ;;
ssr-hk )
test_tcp base.hk1.recolic.net 467 || return $?
;;
frp-hk )
test_tcp base.hk1.recolic.net 30999 || return $?
;; ;;
ss-us1 ) ss-us1 )
test_ss base.us1.recolic.net || return $? test_ss base.us1.recolic.net || return $?
...@@ -140,7 +145,7 @@ function do_test () { ...@@ -140,7 +145,7 @@ function do_test () {
;; ;;
rocket ) rocket )
confirm_alive rocket.recolic.net && confirm_alive rocket.recolic.net &&
curl -s https://rocket.recolic.net/api/info | grep 'success":true' || return $? curl -s https://rocket.recolic.net:444/api/info | grep 'success":true' || return $?
;; ;;
esac esac
} }
...@@ -153,7 +158,9 @@ function do_test_twice () { ...@@ -153,7 +158,9 @@ function do_test_twice () {
if [[ "$1" = all ]]; then if [[ "$1" = all ]]; then
do_test_twice rproxy && do_test_twice rproxy &&
do_test_twice drive && do_test_twice drive &&
do_test_twice ss-tw && do_test_twice ssr-tw &&
do_test_twice ssr-hk &&
do_test_twice frp-hk &&
do_test_twice ss-us1 && do_test_twice ss-us1 &&
do_test_twice ss-us5 && do_test_twice ss-us5 &&
do_test_twice ss-us6 && do_test_twice ss-us6 &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment