Update tests
This commit is contained in:
parent
bc096da0b4
commit
963a49d61a
6
.github/workflows/test_set_1.yml
vendored
6
.github/workflows/test_set_1.yml
vendored
@ -465,12 +465,13 @@ jobs:
|
|||||||
cp -f /opt/src/scripts/extras/vpnupgrade.sh ./vpnup.sh
|
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
|
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
|
||||||
|
|
||||||
for ver in 4.4 ""; do
|
for ver in 4.5 ""; do
|
||||||
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
|
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
|
||||||
bash vpnup.sh <<ANSWERS
|
bash vpnup.sh <<ANSWERS
|
||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
restart_ipsec
|
restart_ipsec
|
||||||
|
[ -z "$ver" ] && ver=4.7
|
||||||
ipsec --version | grep "$ver"
|
ipsec --version | grep "$ver"
|
||||||
ipsec status | grep -q l2tp-psk
|
ipsec status | grep -q l2tp-psk
|
||||||
ipsec status | grep -q xauth-psk
|
ipsec status | grep -q xauth-psk
|
||||||
@ -484,12 +485,13 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
|
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
|
||||||
|
|
||||||
for ver in 4.5 ""; do
|
for ver in 4.6 ""; do
|
||||||
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
|
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
|
||||||
bash vpnup.sh <<ANSWERS
|
bash vpnup.sh <<ANSWERS
|
||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
restart_ipsec
|
restart_ipsec
|
||||||
|
[ -z "$ver" ] && ver=4.7
|
||||||
ipsec --version | grep "$ver"
|
ipsec --version | grep "$ver"
|
||||||
ipsec status | grep -q l2tp-psk
|
ipsec status | grep -q l2tp-psk
|
||||||
ipsec status | grep -q xauth-psk
|
ipsec status | grep -q xauth-psk
|
||||||
|
9
.github/workflows/test_set_2.yml
vendored
9
.github/workflows/test_set_2.yml
vendored
@ -77,7 +77,7 @@ jobs:
|
|||||||
echo "# hwdsl2" > run.sh
|
echo "# hwdsl2" > run.sh
|
||||||
|
|
||||||
if [ "$os_type" = "alpine" ]; then
|
if [ "$os_type" = "alpine" ]; then
|
||||||
apk add -U wget rsyslog sed
|
apk add -U wget rsyslog sed bash
|
||||||
rsyslogd
|
rsyslogd
|
||||||
else
|
else
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
@ -480,8 +480,7 @@ jobs:
|
|||||||
cp -f "$GITHUB_WORKSPACE"/extras/vpnupgrade.sh ./vpnup.sh
|
cp -f "$GITHUB_WORKSPACE"/extras/vpnupgrade.sh ./vpnup.sh
|
||||||
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
|
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
|
||||||
|
|
||||||
[ "$os_type" = "alpine" ] && ver1=4.5 || ver1=4.4
|
for ver in 4.5 ""; do
|
||||||
for ver in "$ver1" ""; do
|
|
||||||
if [ "$os_type" = "alpine" ]; then
|
if [ "$os_type" = "alpine" ]; then
|
||||||
ipsec whack --shutdown || true
|
ipsec whack --shutdown || true
|
||||||
fi
|
fi
|
||||||
@ -490,6 +489,7 @@ jobs:
|
|||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
restart_ipsec
|
restart_ipsec
|
||||||
|
[ -z "$ver" ] && ver=4.7
|
||||||
ipsec --version | grep "$ver"
|
ipsec --version | grep "$ver"
|
||||||
ipsec status | grep -q l2tp-psk
|
ipsec status | grep -q l2tp-psk
|
||||||
ipsec status | grep -q xauth-psk
|
ipsec status | grep -q xauth-psk
|
||||||
@ -503,7 +503,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
|
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
|
||||||
|
|
||||||
for ver in 4.5 ""; do
|
for ver in 4.6 ""; do
|
||||||
if [ "$os_type" = "alpine" ]; then
|
if [ "$os_type" = "alpine" ]; then
|
||||||
ipsec whack --shutdown || true
|
ipsec whack --shutdown || true
|
||||||
fi
|
fi
|
||||||
@ -512,6 +512,7 @@ jobs:
|
|||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
restart_ipsec
|
restart_ipsec
|
||||||
|
[ -z "$ver" ] && ver=4.7
|
||||||
ipsec --version | grep "$ver"
|
ipsec --version | grep "$ver"
|
||||||
ipsec status | grep -q l2tp-psk
|
ipsec status | grep -q l2tp-psk
|
||||||
ipsec status | grep -q xauth-psk
|
ipsec status | grep -q xauth-psk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user