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

bug fix

parent 32c7c30b
No related branches found
No related tags found
No related merge requests found
Pipeline #724 failed with stage
in 23 seconds
...@@ -18,6 +18,7 @@ tests = [ ...@@ -18,6 +18,7 @@ tests = [
('./do.bash ddns-wuhan', 'DDNS WuHan'), ('./do.bash ddns-wuhan', 'DDNS WuHan'),
('./do.bash ddns-us', 'DDNS USA'), ('./do.bash ddns-us', 'DDNS USA'),
('./do.bash dl', 'Download Site'), ('./do.bash dl', 'Download Site'),
('./do.bash shortlink', 'Short Link'),
] ]
test_interval = 20 * 60 # 20min test_interval = 20 * 60 # 20min
......
#!/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 | ddns-us | dl | all" && exit 1 [[ $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 | ddns-us | dl | shortlink | all" && exit 1
function confirm_alive () { function confirm_alive () {
local host="$1" local host="$1"
...@@ -115,6 +115,9 @@ function do_test () { ...@@ -115,6 +115,9 @@ function do_test () {
dl ) dl )
curl -s -L https://dl.recolic.net/ | grep 'Home page is not provided for this download site' || return $? curl -s -L https://dl.recolic.net/ | grep 'Home page is not provided for this download site' || return $?
;; ;;
shortlink )
curl -s 'https://recolic.net/go/index.php' --data 'target=https%3A%2F%2Fwww.google.com&name=google&super=' | grep Success || return $?
;;
esac esac
...@@ -137,6 +140,7 @@ if [[ "$1" = all ]]; then ...@@ -137,6 +140,7 @@ if [[ "$1" = all ]]; then
do_test push-httpdb-agent && do_test push-httpdb-agent &&
do_test ddns-wuhan && do_test ddns-wuhan &&
do_test ddns-us && do_test ddns-us &&
do_test shortlink &&
do_test dl do_test dl
exit $? exit $?
fi fi
......
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