From b0e3cb8b7cad2a97d215fbc084974ebc3ec25a44 Mon Sep 17 00:00:00 2001 From: Marcel Poul Date: Sun, 26 Feb 2012 21:24:18 +0000 Subject: [PATCH] test canl server and canl client --- .../CANL-C/tests/canl-test-sec-connection.sh | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh index 8060c27..d418d78 100755 --- a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh +++ b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh @@ -86,7 +86,7 @@ done { test_start # check canl binaries -get_canl_binaries +get_canl_binaries $srvbin $clibin if [ $? -ne 0 ]; then test_failed test_end @@ -99,7 +99,7 @@ fi printf "Testing if all binaries are available" check_binaries $EMI_CANL_SERVER $EMI_CANL_CLIENT \ $VOMSPROXYFAKE $GRIDPROXYINFO $SYS_GREP \ - $SYS_SED $SYS_AWK $SYS_LSOF + $SYS_SED $SYS_AWK $SYS_LSOF $OPENSSL if [ $? -gt 0 ]; then test_failed else @@ -174,6 +174,24 @@ else test_failed fi +printf "Starting canl sample server \n" +${EMI_CANL_SERVER} -k /etc/grid-security/hostkey.pem \ + -c /etc/grid-security/hostcert.pem -p "${nu_port}" & +last_pid=$! +lp_running=`${SYS_PS} | ${SYS_GREP} -E "${last_pid}" 2> /dev/null` +if [ -n "$lp_running" ]; then + test_done +else + test_failed + test_end + exit 2 +fi + +printf "CANL client: connect to CANL sample server \n" +${EMI_CANL_CLIENT} -s localhost -p "${nu_port}" + +kill ${last_pid} &> /dev/null + test_end } #} &> $logfile -- 1.8.2.3