test gssapi/kerberos only when compiled with gssapi support

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-22 10:40:51 +01:00
parent bc7c1bf8d9
commit 31fe29c433
2 changed files with 11 additions and 0 deletions

View File

@@ -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

View File

@@ -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... "