mirror of
https://github.com/hwdsl2/setup-ipsec-vpn.git
synced 2026-05-17 08:05:45 +03:00
Update tests
This commit is contained in:
2
.github/workflows/check_urls.yml
vendored
2
.github/workflows/check_urls.yml
vendored
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2025 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
||||
2
.github/workflows/cron.yml
vendored
2
.github/workflows/cron.yml
vendored
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2025 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
||||
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2025 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
||||
2
.github/workflows/shellcheck.yml
vendored
2
.github/workflows/shellcheck.yml
vendored
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2025 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
||||
8
.github/workflows/test_set_1.yml
vendored
8
.github/workflows/test_set_1.yml
vendored
@@ -518,13 +518,13 @@ jobs:
|
||||
cp -f /opt/src/scripts/extras/vpnupgrade.sh ./vpnup.sh
|
||||
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
|
||||
|
||||
for ver in 5.0 ""; do
|
||||
for ver in 5.1 ""; do
|
||||
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
|
||||
bash vpnup.sh <<ANSWERS
|
||||
|
||||
ANSWERS
|
||||
restart_ipsec
|
||||
[ -z "$ver" ] && ver=5.2
|
||||
[ -z "$ver" ] && ver=5.3
|
||||
ipsec --version | grep "$ver"
|
||||
ipsec status | grep -q l2tp-psk
|
||||
ipsec status | grep -q xauth-psk
|
||||
@@ -538,13 +538,13 @@ jobs:
|
||||
fi
|
||||
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
|
||||
|
||||
for ver in 5.1 ""; do
|
||||
for ver in 5.2 ""; do
|
||||
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
|
||||
bash vpnup.sh <<ANSWERS
|
||||
|
||||
ANSWERS
|
||||
restart_ipsec
|
||||
[ -z "$ver" ] && ver=5.2
|
||||
[ -z "$ver" ] && ver=5.3
|
||||
ipsec --version | grep "$ver"
|
||||
ipsec status | grep -q l2tp-psk
|
||||
ipsec status | grep -q xauth-psk
|
||||
|
||||
8
.github/workflows/test_set_2.yml
vendored
8
.github/workflows/test_set_2.yml
vendored
@@ -494,7 +494,7 @@ jobs:
|
||||
cp -f "$GITHUB_WORKSPACE"/extras/vpnupgrade.sh ./vpnup.sh
|
||||
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
|
||||
|
||||
for ver in 5.0 ""; do
|
||||
for ver in 5.1 ""; do
|
||||
if [ "$os_type" = "alpine" ] \
|
||||
|| grep -qs trixie /etc/debian_version; then
|
||||
ipsec whack --shutdown || true
|
||||
@@ -504,7 +504,7 @@ jobs:
|
||||
|
||||
ANSWERS
|
||||
restart_ipsec
|
||||
[ -z "$ver" ] && ver=5.2
|
||||
[ -z "$ver" ] && ver=5.3
|
||||
ipsec --version | grep "$ver"
|
||||
ipsec status | grep -q l2tp-psk
|
||||
ipsec status | grep -q xauth-psk
|
||||
@@ -518,7 +518,7 @@ jobs:
|
||||
fi
|
||||
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
|
||||
|
||||
for ver in 5.1 ""; do
|
||||
for ver in 5.2 ""; do
|
||||
if [ "$os_type" = "alpine" ] \
|
||||
|| grep -qs trixie /etc/debian_version; then
|
||||
ipsec whack --shutdown || true
|
||||
@@ -528,7 +528,7 @@ jobs:
|
||||
|
||||
ANSWERS
|
||||
restart_ipsec
|
||||
[ -z "$ver" ] && ver=5.2
|
||||
[ -z "$ver" ] && ver=5.3
|
||||
ipsec --version | grep "$ver"
|
||||
ipsec status | grep -q l2tp-psk
|
||||
ipsec status | grep -q xauth-psk
|
||||
|
||||
Reference in New Issue
Block a user