1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#!/bin/sh
# Make sure $AUTOPKGTEST_TMP is available
if [ "${AUTOPKGTEST_TMP}"F = "F" ]; then
echo "Error: expected environment variable AUTOPKGTEST_TMP is not set."
exit 1
fi
# Make sure $AUTOPKGTEST_ARTIFACTS is available
if [ "${AUTOPKGTEST_ARTIFACTS}"F = "F" ]; then
echo "Error: expected environment variable AUTOPKGTEST_ARTIFACTS is not set."
exit 1
fi
# Determine locations of required tools
SOURCE_TREE="${PWD}"
CBACK="/usr/bin/cback3"
# Print a test summary
echo ""
echo "========================================================================="
echo "Running ${0}"
echo "========================================================================="
echo "SOURCE_TREE..........: ${SOURCE_TREE}"
echo "AUTOPKGTEST_TMP......: ${AUTOPKGTEST_TMP}"
echo "AUTOPKGTEST_ARTIFACTS: ${AUTOPKGTEST_ARTIFACTS}"
echo "CBACK................: ${CBACK}"
echo "========================================================================="
echo ""
# Always run tests from within $AUTOPKGTEST_TMP
cd ${AUTOPKGTEST_TMP}
# Run cback3 --help and confirm that it runs without problems
${CBACK} --help
if [ $? != 0 ]; then
exit 1
fi
# Close the test
echo ""
|