mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
full-test: require the --without-protobuf option
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user