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
+6
View File
@@ -23,12 +23,18 @@ srcdir=${srcdir:-.}
PORT=10500 PORT=10500
PORT2=10501 PORT2=10501
PORT_OCSERV=443 PORT_OCSERV=443
#this test can only be run as root #this test can only be run as root
id|grep root >/dev/null 2>&1 id|grep root >/dev/null 2>&1
if [ $? != 0 ];then if [ $? != 0 ];then
exit 77 exit 77
fi fi
$SERV --version|grep gssapi >/dev/null 2>&1
if [ $? != 0 ];then
exit 77
fi
stop_all() { stop_all() {
$DOCKER stop test_ocserv_client_kerberos $DOCKER stop test_ocserv_client_kerberos
$DOCKER rm test_ocserv_client_kerberos $DOCKER rm test_ocserv_client_kerberos
+5
View File
@@ -22,6 +22,11 @@ SERV="${SERV:-../src/ocserv}"
srcdir=${srcdir:-.} srcdir=${srcdir:-.}
PORT=4449 PORT=4449
$SERV --version|grep gssapi >/dev/null 2>&1
if [ $? != 0 ];then
exit 77
fi
. `dirname $0`/common.sh . `dirname $0`/common.sh
echo "Testing local backend with gssapi... " echo "Testing local backend with gssapi... "