only test if all binaries are available
authorJan Pospíšil <honik@ntc.zcu.cz>
Thu, 11 Sep 2008 11:14:10 +0000 (11:14 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Thu, 11 Sep 2008 11:14:10 +0000 (11:14 +0000)
org.glite.testsuites.ctb/LB/lb-test-binaries.sh [new file with mode: 0755]

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 (executable)
index 0000000..e4aa671
--- /dev/null
@@ -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
+