mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
test gssapi/kerberos only when compiled with gssapi support
This commit is contained in:
@@ -23,12 +23,18 @@ srcdir=${srcdir:-.}
|
||||
PORT=10500
|
||||
PORT2=10501
|
||||
PORT_OCSERV=443
|
||||
|
||||
#this test can only be run as root
|
||||
id|grep root >/dev/null 2>&1
|
||||
if [ $? != 0 ];then
|
||||
exit 77
|
||||
fi
|
||||
|
||||
$SERV --version|grep gssapi >/dev/null 2>&1
|
||||
if [ $? != 0 ];then
|
||||
exit 77
|
||||
fi
|
||||
|
||||
stop_all() {
|
||||
$DOCKER stop test_ocserv_client_kerberos
|
||||
$DOCKER rm test_ocserv_client_kerberos
|
||||
|
||||
@@ -22,6 +22,11 @@ SERV="${SERV:-../src/ocserv}"
|
||||
srcdir=${srcdir:-.}
|
||||
PORT=4449
|
||||
|
||||
$SERV --version|grep gssapi >/dev/null 2>&1
|
||||
if [ $? != 0 ];then
|
||||
exit 77
|
||||
fi
|
||||
|
||||
. `dirname $0`/common.sh
|
||||
|
||||
echo "Testing local backend with gssapi... "
|
||||
|
||||
Reference in New Issue
Block a user