From 87dab042907a299b49cf389f5580269706575513 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Thu, 11 Sep 2008 11:14:10 +0000 Subject: [PATCH] only test if all binaries are available --- org.glite.testsuites.ctb/LB/lb-test-binaries.sh | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 org.glite.testsuites.ctb/LB/lb-test-binaries.sh 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 + -- 1.8.2.3