printf "Common definitions '${TEST_COMMON}' not found!\n"
exit 2
fi
-. ${TEST_COMMON}
+source ${TEST_COMMON}
+
# define variables
GLITE_LOCATION=${GLITE_LOCATION:-/opt/glite}
+SAME_SENSOR_HOME=${SAME_SENSOR_HOME:-.}
PATH=$GLITE_LOCATION/bin:$GLITE_LOCATION/examples:$PATH
export PATH
exit 2
fi
+# read common definitions and functions
+COMMON=lb-common.sh
+if [ ! -r ${COMMON} ]; then
+ printf "Common definitions '${COMMON}' missing!"
+ exit 2
+fi
+source ${COMMON}
+
logfile=$$.tmp
flag=0
while test -n "$1"
exit $TEST_ERROR
fi
-# read common definitions and functions
-COMMON=lb-common.sh
-if [ ! -r ${COMMON} ]; then
- printf "Common definitions '${COMMON}' missing!"
- exit 2
-fi
-source ${COMMON}
-
DEBUG=2
-if [ -z "$SAME_SENSOR_HOME" ]; then
- echo "SAME_SENSOR_HOME not set"
- exit 2
-fi
-
######################
# Starting the test #
######################
test_start
# check_binaries
-printf "Testing if all binaries are available\n"
+printf "Testing if all binaries are available"
check_binaries
if [ $? -gt 0 ]; then
test_failed
fi
# ping_host:
-printf "Testing ping to LB logger ${LB_HOST}\n"
+printf "Testing ping to LB logger ${LB_HOST}"
ping_host ${LB_HOST}
if [ $? -gt 0 ]; then
test_failed
fi
# check_services
-printf "Testing LB logger at ${LB_HOST}:${GLITE_LB_LOGGER_PORT} (logging)\n"
+printf "Testing LB logger at ${LB_HOST}:${GLITE_LB_LOGGER_PORT} (logging)"
check_socket ${LB_HOST} ${GLITE_LB_LOGGER_PORT}
if [ $? -gt 0 ]; then
test_failed
exit 2
fi
+# read common definitions and functions
+COMMON=lb-common.sh
+if [ ! -r ${COMMON} ]; then
+ printf "Common definitions '${COMMON}' missing!"
+ exit 2
+fi
+source ${COMMON}
+
logfile=$$.tmp
flag=0
while test -n "$1"
exit $TEST_ERROR
fi
-# read common definitions and functions
-COMMON=lb-common.sh
-if [ ! -r ${COMMON} ]; then
- printf "Common definitions '${COMMON}' missing!"
- exit 2
-fi
-source ${COMMON}
-
DEBUG=2
##