From: Jan Pospíšil Date: Thu, 11 Sep 2008 11:14:10 +0000 (+0000) Subject: only test if all binaries are available X-Git-Tag: myproxy-config-R_2_0_2_1~27 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=87dab042907a299b49cf389f5580269706575513;p=jra1mw.git only test if all binaries are available --- diff --git a/org.glite.testsuites.ctb/LB/lb-test-binaries.sh b/org.glite.testsuites.ctb/LB/lb-test-binaries.sh new file mode 100755 index 0000000..e4aa671 --- /dev/null +++ b/org.glite.testsuites.ctb/LB/lb-test-binaries.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# $Header$ + +# read common definitions and functions +COMMON=lb-common.sh +if [ ! -r ${COMMON} ]; then + printf "Common definitions '${COMMON}' missing!" + exit 2 +fi +source ${COMMON} + +## +# Starting the test +##################### + +test_start + +# check_binaries +printf "Testing if all binaries are available" +check_binaries +if [ $? -gt 0 ]; then + test_failed + print_error "Some binaries are missing" + exit $TEST_ERR +else + test_done +fi + +test_end + +exit $TEST_OK +