Ascendent/run-tests.sh
S David 734212b992
Some checks failed
buildbot/Ascendent (FreeBSD) Build done.
buildbot/Ascendent (Alpine) Build done.
Add support for automated unit testing with Git webhooks
Close #8
2022-08-24 03:38:25 -04:00

32 lines
382 B
Bash
Executable File

#!/bin/sh
PROGRAM="$(basename $0)"
RESULT=1
print_help() {
/bin/echo -n "$PROGRAM: "
echo "Executes the project test suite under the specified directory"
echo
echo 'Usage:'
echo "$PROGRAM <builddir>"
exit 255
}
if [ $# -ne 1 ]; then
echo "Invalid number of parameters!"
echo
print_help
fi
RUNDIR="$1"
shift
cd $RUNDIR
./app-test
RESULT=$?
cd $OLDPWD
(exit $RESULT)