1
0
mirror of synced 2024-11-26 06:46:06 +03:00

Update tests

This commit is contained in:
hwdsl2 2021-09-14 23:53:56 -05:00
parent 86aaaf1283
commit 7a7f7e9999
2 changed files with 108 additions and 96 deletions

View File

@ -32,64 +32,70 @@ jobs:
sudo apt-get -yqq update sudo apt-get -yqq update
sudo apt-get -yqq install wget curl sudo apt-get -yqq install wget curl
wget_c="wget -t 3 -T 30 -nv -O" wg="wget -t 3 -T 30 -nv -O"
gh_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master" gh="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master"
gi="https://git.io"
$wget_c vpnsetup.sh https://git.io/vpnsetup $wg vpnsetup.sh "$gi/vpnsetup"
$wget_c vpnsetup_centos.sh https://git.io/vpnsetup-centos $wg vpnsetup_centos.sh "$gi/vpnsetup-centos"
$wget_c vpnsetup_amzn.sh https://git.io/vpnsetup-amzn $wg vpnsetup_amzn.sh "$gi/vpnsetup-amzn"
$wget_c vpnsetup_ubuntu.sh https://git.io/vpnsetup-ubuntu $wg vpnsetup_ubuntu.sh "$gi/vpnsetup-ubuntu"
$wget_c vpnsetup_alpine.sh https://git.io/vpnsetup-alpine $wg vpnsetup_alpine.sh "$gi/vpnsetup-alpine"
$wget_c quickstart.sh https://git.io/vpnquickstart $wg quickstart.sh "$gi/vpnquickstart"
$wget_c ikev2setup.sh https://git.io/ikev2setup $wg ikev2setup.sh "$gi/ikev2setup"
$wget_c vpnupgrade.sh https://git.io/vpnupgrade $wg vpnupgrade.sh "$gi/vpnupgrade"
$wget_c vpnupgrade_centos.sh https://git.io/vpnupgrade-centos $wg vpnupgrade_centos.sh "$gi/vpnupgrade-centos"
$wget_c vpnupgrade_amzn.sh https://git.io/vpnupgrade-amzn $wg vpnupgrade_amzn.sh "$gi/vpnupgrade-amzn"
$wget_c vpnupgrade_ubuntu.sh https://git.io/vpnupgrade-ubuntu $wg vpnupgrade_ubuntu.sh "$gi/vpnupgrade-ubuntu"
$wget_c vpnupgrade_alpine.sh https://git.io/vpnupgrade-alpine $wg vpnupgrade_alpine.sh "$gi/vpnupgrade-alpine"
$wg vpnuninstall.sh "$gi/vpnuninstall"
$wget_c vpnsetup2.sh "$gh_url/vpnsetup.sh" $wg vpnsetup2.sh "$gh/vpnsetup.sh"
$wget_c vpnsetup_centos2.sh "$gh_url/vpnsetup_centos.sh" $wg vpnsetup_centos2.sh "$gh/vpnsetup_centos.sh"
$wget_c vpnsetup_amzn2.sh "$gh_url/vpnsetup_amzn.sh" $wg vpnsetup_amzn2.sh "$gh/vpnsetup_amzn.sh"
$wget_c vpnsetup_ubuntu2.sh "$gh_url/vpnsetup_ubuntu.sh" $wg vpnsetup_ubuntu2.sh "$gh/vpnsetup_ubuntu.sh"
$wget_c vpnsetup_alpine2.sh "$gh_url/vpnsetup_alpine.sh" $wg vpnsetup_alpine2.sh "$gh/vpnsetup_alpine.sh"
$wget_c quickstart2.sh "$gh_url/extras/quickstart.sh" $wg quickstart2.sh "$gh/extras/quickstart.sh"
$wget_c ikev2setup2.sh "$gh_url/extras/ikev2setup.sh" $wg ikev2setup2.sh "$gh/extras/ikev2setup.sh"
$wget_c vpnupgrade2.sh "$gh_url/extras/vpnupgrade.sh" $wg vpnupgrade2.sh "$gh/extras/vpnupgrade.sh"
$wget_c vpnupgrade_centos2.sh "$gh_url/extras/vpnupgrade_centos.sh" $wg vpnupgrade_centos2.sh "$gh/extras/vpnupgrade_centos.sh"
$wget_c vpnupgrade_amzn2.sh "$gh_url/extras/vpnupgrade_amzn.sh" $wg vpnupgrade_amzn2.sh "$gh/extras/vpnupgrade_amzn.sh"
$wget_c vpnupgrade_ubuntu2.sh "$gh_url/extras/vpnupgrade_ubuntu.sh" $wg vpnupgrade_ubuntu2.sh "$gh/extras/vpnupgrade_ubuntu.sh"
$wget_c vpnupgrade_alpine2.sh "$gh_url/extras/vpnupgrade_alpine.sh" $wg vpnupgrade_alpine2.sh "$gh/extras/vpnupgrade_alpine.sh"
$wg vpnuninstall2.sh "$gh/extras/vpnuninstall.sh"
curl -fsSI https://bit.ly/addvpnuser | grep -q 'add_vpn_user.sh' diff vpnsetup.sh ../vpnsetup.sh
curl -fsSI https://bit.ly/delvpnuser | grep -q 'del_vpn_user.sh' diff vpnsetup_centos.sh ../vpnsetup_centos.sh
curl -fsSI https://bit.ly/updatevpnusers | grep -q 'update_vpn_users.sh' diff vpnsetup_amzn.sh ../vpnsetup_amzn.sh
diff vpnsetup_ubuntu.sh ../vpnsetup_ubuntu.sh
diff vpnsetup.sh ../vpnsetup.sh diff vpnsetup_alpine.sh ../vpnsetup_alpine.sh
diff vpnsetup_centos.sh ../vpnsetup_centos.sh diff quickstart.sh ../extras/quickstart.sh
diff vpnsetup_amzn.sh ../vpnsetup_amzn.sh diff ikev2setup.sh ../extras/ikev2setup.sh
diff vpnsetup_ubuntu.sh ../vpnsetup_ubuntu.sh diff vpnupgrade.sh ../extras/vpnupgrade.sh
diff vpnsetup_alpine.sh ../vpnsetup_alpine.sh
diff quickstart.sh ../extras/quickstart.sh
diff ikev2setup.sh ../extras/ikev2setup.sh
diff vpnupgrade.sh ../extras/vpnupgrade.sh
diff vpnupgrade_centos.sh ../extras/vpnupgrade_centos.sh diff vpnupgrade_centos.sh ../extras/vpnupgrade_centos.sh
diff vpnupgrade_amzn.sh ../extras/vpnupgrade_amzn.sh diff vpnupgrade_amzn.sh ../extras/vpnupgrade_amzn.sh
diff vpnupgrade_ubuntu.sh ../extras/vpnupgrade_ubuntu.sh diff vpnupgrade_ubuntu.sh ../extras/vpnupgrade_ubuntu.sh
diff vpnupgrade_alpine.sh ../extras/vpnupgrade_alpine.sh diff vpnupgrade_alpine.sh ../extras/vpnupgrade_alpine.sh
diff vpnuninstall.sh ../extras/vpnuninstall.sh
diff vpnsetup2.sh ../vpnsetup.sh diff vpnsetup2.sh ../vpnsetup.sh
diff vpnsetup_centos2.sh ../vpnsetup_centos.sh diff vpnsetup_centos2.sh ../vpnsetup_centos.sh
diff vpnsetup_amzn2.sh ../vpnsetup_amzn.sh diff vpnsetup_amzn2.sh ../vpnsetup_amzn.sh
diff vpnsetup_ubuntu2.sh ../vpnsetup_ubuntu.sh diff vpnsetup_ubuntu2.sh ../vpnsetup_ubuntu.sh
diff vpnsetup_alpine2.sh ../vpnsetup_alpine.sh diff vpnsetup_alpine2.sh ../vpnsetup_alpine.sh
diff quickstart2.sh ../extras/quickstart.sh diff quickstart2.sh ../extras/quickstart.sh
diff ikev2setup2.sh ../extras/ikev2setup.sh diff ikev2setup2.sh ../extras/ikev2setup.sh
diff vpnupgrade2.sh ../extras/vpnupgrade.sh diff vpnupgrade2.sh ../extras/vpnupgrade.sh
diff vpnupgrade_centos2.sh ../extras/vpnupgrade_centos.sh diff vpnupgrade_centos2.sh ../extras/vpnupgrade_centos.sh
diff vpnupgrade_amzn2.sh ../extras/vpnupgrade_amzn.sh diff vpnupgrade_amzn2.sh ../extras/vpnupgrade_amzn.sh
diff vpnupgrade_ubuntu2.sh ../extras/vpnupgrade_ubuntu.sh diff vpnupgrade_ubuntu2.sh ../extras/vpnupgrade_ubuntu.sh
diff vpnupgrade_alpine2.sh ../extras/vpnupgrade_alpine.sh diff vpnupgrade_alpine2.sh ../extras/vpnupgrade_alpine.sh
diff vpnuninstall2.sh ../extras/vpnuninstall.sh
bl="https://bit.ly"
curl -fsSI "$bl/addvpnuser" | grep -q 'add_vpn_user.sh'
curl -fsSI "$bl/delvpnuser" | grep -q 'del_vpn_user.sh'
curl -fsSI "$bl/updatevpnusers" | grep -q 'update_vpn_users.sh'
test_set_1: test_set_1:
needs: check_urls needs: check_urls

View File

@ -61,64 +61,70 @@ jobs:
sudo apt-get -yqq update sudo apt-get -yqq update
sudo apt-get -yqq install wget curl sudo apt-get -yqq install wget curl
wget_c="wget -t 3 -T 30 -nv -O" wg="wget -t 3 -T 30 -nv -O"
gh_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master" gh="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master"
gi="https://git.io"
$wget_c vpnsetup.sh https://git.io/vpnsetup $wg vpnsetup.sh "$gi/vpnsetup"
$wget_c vpnsetup_centos.sh https://git.io/vpnsetup-centos $wg vpnsetup_centos.sh "$gi/vpnsetup-centos"
$wget_c vpnsetup_amzn.sh https://git.io/vpnsetup-amzn $wg vpnsetup_amzn.sh "$gi/vpnsetup-amzn"
$wget_c vpnsetup_ubuntu.sh https://git.io/vpnsetup-ubuntu $wg vpnsetup_ubuntu.sh "$gi/vpnsetup-ubuntu"
$wget_c vpnsetup_alpine.sh https://git.io/vpnsetup-alpine $wg vpnsetup_alpine.sh "$gi/vpnsetup-alpine"
$wget_c quickstart.sh https://git.io/vpnquickstart $wg quickstart.sh "$gi/vpnquickstart"
$wget_c ikev2setup.sh https://git.io/ikev2setup $wg ikev2setup.sh "$gi/ikev2setup"
$wget_c vpnupgrade.sh https://git.io/vpnupgrade $wg vpnupgrade.sh "$gi/vpnupgrade"
$wget_c vpnupgrade_centos.sh https://git.io/vpnupgrade-centos $wg vpnupgrade_centos.sh "$gi/vpnupgrade-centos"
$wget_c vpnupgrade_amzn.sh https://git.io/vpnupgrade-amzn $wg vpnupgrade_amzn.sh "$gi/vpnupgrade-amzn"
$wget_c vpnupgrade_ubuntu.sh https://git.io/vpnupgrade-ubuntu $wg vpnupgrade_ubuntu.sh "$gi/vpnupgrade-ubuntu"
$wget_c vpnupgrade_alpine.sh https://git.io/vpnupgrade-alpine $wg vpnupgrade_alpine.sh "$gi/vpnupgrade-alpine"
$wg vpnuninstall.sh "$gi/vpnuninstall"
$wget_c vpnsetup2.sh "$gh_url/vpnsetup.sh" $wg vpnsetup2.sh "$gh/vpnsetup.sh"
$wget_c vpnsetup_centos2.sh "$gh_url/vpnsetup_centos.sh" $wg vpnsetup_centos2.sh "$gh/vpnsetup_centos.sh"
$wget_c vpnsetup_amzn2.sh "$gh_url/vpnsetup_amzn.sh" $wg vpnsetup_amzn2.sh "$gh/vpnsetup_amzn.sh"
$wget_c vpnsetup_ubuntu2.sh "$gh_url/vpnsetup_ubuntu.sh" $wg vpnsetup_ubuntu2.sh "$gh/vpnsetup_ubuntu.sh"
$wget_c vpnsetup_alpine2.sh "$gh_url/vpnsetup_alpine.sh" $wg vpnsetup_alpine2.sh "$gh/vpnsetup_alpine.sh"
$wget_c quickstart2.sh "$gh_url/extras/quickstart.sh" $wg quickstart2.sh "$gh/extras/quickstart.sh"
$wget_c ikev2setup2.sh "$gh_url/extras/ikev2setup.sh" $wg ikev2setup2.sh "$gh/extras/ikev2setup.sh"
$wget_c vpnupgrade2.sh "$gh_url/extras/vpnupgrade.sh" $wg vpnupgrade2.sh "$gh/extras/vpnupgrade.sh"
$wget_c vpnupgrade_centos2.sh "$gh_url/extras/vpnupgrade_centos.sh" $wg vpnupgrade_centos2.sh "$gh/extras/vpnupgrade_centos.sh"
$wget_c vpnupgrade_amzn2.sh "$gh_url/extras/vpnupgrade_amzn.sh" $wg vpnupgrade_amzn2.sh "$gh/extras/vpnupgrade_amzn.sh"
$wget_c vpnupgrade_ubuntu2.sh "$gh_url/extras/vpnupgrade_ubuntu.sh" $wg vpnupgrade_ubuntu2.sh "$gh/extras/vpnupgrade_ubuntu.sh"
$wget_c vpnupgrade_alpine2.sh "$gh_url/extras/vpnupgrade_alpine.sh" $wg vpnupgrade_alpine2.sh "$gh/extras/vpnupgrade_alpine.sh"
$wg vpnuninstall2.sh "$gh/extras/vpnuninstall.sh"
curl -fsSI https://bit.ly/addvpnuser | grep -q 'add_vpn_user.sh' diff vpnsetup.sh ../vpnsetup.sh
curl -fsSI https://bit.ly/delvpnuser | grep -q 'del_vpn_user.sh' diff vpnsetup_centos.sh ../vpnsetup_centos.sh
curl -fsSI https://bit.ly/updatevpnusers | grep -q 'update_vpn_users.sh' diff vpnsetup_amzn.sh ../vpnsetup_amzn.sh
diff vpnsetup_ubuntu.sh ../vpnsetup_ubuntu.sh
diff vpnsetup.sh ../vpnsetup.sh diff vpnsetup_alpine.sh ../vpnsetup_alpine.sh
diff vpnsetup_centos.sh ../vpnsetup_centos.sh diff quickstart.sh ../extras/quickstart.sh
diff vpnsetup_amzn.sh ../vpnsetup_amzn.sh diff ikev2setup.sh ../extras/ikev2setup.sh
diff vpnsetup_ubuntu.sh ../vpnsetup_ubuntu.sh diff vpnupgrade.sh ../extras/vpnupgrade.sh
diff vpnsetup_alpine.sh ../vpnsetup_alpine.sh
diff quickstart.sh ../extras/quickstart.sh
diff ikev2setup.sh ../extras/ikev2setup.sh
diff vpnupgrade.sh ../extras/vpnupgrade.sh
diff vpnupgrade_centos.sh ../extras/vpnupgrade_centos.sh diff vpnupgrade_centos.sh ../extras/vpnupgrade_centos.sh
diff vpnupgrade_amzn.sh ../extras/vpnupgrade_amzn.sh diff vpnupgrade_amzn.sh ../extras/vpnupgrade_amzn.sh
diff vpnupgrade_ubuntu.sh ../extras/vpnupgrade_ubuntu.sh diff vpnupgrade_ubuntu.sh ../extras/vpnupgrade_ubuntu.sh
diff vpnupgrade_alpine.sh ../extras/vpnupgrade_alpine.sh diff vpnupgrade_alpine.sh ../extras/vpnupgrade_alpine.sh
diff vpnuninstall.sh ../extras/vpnuninstall.sh
diff vpnsetup2.sh ../vpnsetup.sh diff vpnsetup2.sh ../vpnsetup.sh
diff vpnsetup_centos2.sh ../vpnsetup_centos.sh diff vpnsetup_centos2.sh ../vpnsetup_centos.sh
diff vpnsetup_amzn2.sh ../vpnsetup_amzn.sh diff vpnsetup_amzn2.sh ../vpnsetup_amzn.sh
diff vpnsetup_ubuntu2.sh ../vpnsetup_ubuntu.sh diff vpnsetup_ubuntu2.sh ../vpnsetup_ubuntu.sh
diff vpnsetup_alpine2.sh ../vpnsetup_alpine.sh diff vpnsetup_alpine2.sh ../vpnsetup_alpine.sh
diff quickstart2.sh ../extras/quickstart.sh diff quickstart2.sh ../extras/quickstart.sh
diff ikev2setup2.sh ../extras/ikev2setup.sh diff ikev2setup2.sh ../extras/ikev2setup.sh
diff vpnupgrade2.sh ../extras/vpnupgrade.sh diff vpnupgrade2.sh ../extras/vpnupgrade.sh
diff vpnupgrade_centos2.sh ../extras/vpnupgrade_centos.sh diff vpnupgrade_centos2.sh ../extras/vpnupgrade_centos.sh
diff vpnupgrade_amzn2.sh ../extras/vpnupgrade_amzn.sh diff vpnupgrade_amzn2.sh ../extras/vpnupgrade_amzn.sh
diff vpnupgrade_ubuntu2.sh ../extras/vpnupgrade_ubuntu.sh diff vpnupgrade_ubuntu2.sh ../extras/vpnupgrade_ubuntu.sh
diff vpnupgrade_alpine2.sh ../extras/vpnupgrade_alpine.sh diff vpnupgrade_alpine2.sh ../extras/vpnupgrade_alpine.sh
diff vpnuninstall2.sh ../extras/vpnuninstall.sh
bl="https://bit.ly"
curl -fsSI "$bl/addvpnuser" | grep -q 'add_vpn_user.sh'
curl -fsSI "$bl/delvpnuser" | grep -q 'del_vpn_user.sh'
curl -fsSI "$bl/updatevpnusers" | grep -q 'update_vpn_users.sh'
test_set_1: test_set_1:
needs: [shellcheck, check_urls] needs: [shellcheck, check_urls]