moved common tests to common.sh

This commit is contained in:
Nikos Mavrogiannopoulos
2013-07-07 21:16:28 +02:00
parent 98dc60403b
commit bd1f6f411a
3 changed files with 11 additions and 22 deletions

View File

@@ -20,6 +20,17 @@
# along with this file; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#this test can only be run as root
id|grep root >/dev/null 2>&1
if [ $? != 0 ];then
exit 77
fi
if ! test -x /usr/sbin/openconnect;then
echo "You need openconnect to run this test"
exit 77
fi
fail() {
PID=$1
shift;

View File

@@ -20,17 +20,6 @@
SERV="${SERV:-../src/ocserv}"
#this test can only be run as root
id|grep root >/dev/null 2>&1
if [ $? != 0 ];then
exit 77
fi
if ! test -x /usr/sbin/openconnect;then
echo "You need openconnect to run this test"
exit 77
fi
. ./common.sh
echo "Testing local backend with username-password..."

View File

@@ -20,17 +20,6 @@
SERV="${SERV:-../src/ocserv}"
#this test can only be run as root
id|grep root >/dev/null 2>&1
if [ $? != 0 ];then
exit 77
fi
if ! test -x /usr/sbin/openconnect;then
echo "You need openconnect to run this test"
exit 77
fi
. ./common.sh
echo "Testing local backend with username-password and certificate..."