full-test: require the --without-protobuf option

This commit is contained in:
Nikos Mavrogiannopoulos
2014-08-27 16:36:08 +02:00
parent 103a357f96
commit d4ca7ba6c2

View File

@@ -53,6 +53,14 @@ if test $? != 0;then
exit 77
fi
grep without-protobuf $srcdir/../config.log >/dev/null 2>&1
if test $? != 0;then
echo "****************************************************************"
echo "This test requires compiling ocserv using --without-protobuf"
echo "****************************************************************"
exit 77
fi
stop() {
$DOCKER stop test_ocserv
$DOCKER rm test_ocserv
@@ -76,7 +84,7 @@ fi
$DOCKER stop test_ocserv >/dev/null 2>&1
$DOCKER rm test_ocserv >/dev/null 2>&1
$DOCKER run -P --privileged=true -p 5000:5000/udp -p 5001:5001/udp -p 22 -p 5551:5551/udp --tty=false -d -n --name test_ocserv ocserv-test1
$DOCKER run -P --privileged=true -p 5000:5000/udp -p 5001:5001/udp -p 22 -p 5551:5551/udp --tty=false -d --name test_ocserv ocserv-test1
if test $? != 0;then
echo "Cannot run docker image"
exit 1