mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
tests: test-pass-script: only run when openconnect supports --local-hostname
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -28,6 +28,12 @@ PORT=4448
|
|||||||
rm -f ${builddir}/connect.ok
|
rm -f ${builddir}/connect.ok
|
||||||
rm -f ${builddir}/disconnect.ok
|
rm -f ${builddir}/disconnect.ok
|
||||||
|
|
||||||
|
$OPENCONNECT --help|grep local-hostname
|
||||||
|
if test $? != 0;then
|
||||||
|
echo "Openconnect doesn't support --local-hostname"
|
||||||
|
exit 77
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Testing local backend with username-password... "
|
echo "Testing local backend with username-password... "
|
||||||
|
|
||||||
launch_server -d 1 -f -c "${srcdir}/data/test-pass-script.config" & PID=$!
|
launch_server -d 1 -f -c "${srcdir}/data/test-pass-script.config" & PID=$!
|
||||||
|
|||||||
Reference in New Issue
Block a user