Add support for automated unit testing with Git webhooks
Some checks failed
buildbot/Ascendent (FreeBSD) Build done.
buildbot/Ascendent (Alpine) Build done.

Close #8
This commit is contained in:
S David 2022-08-24 03:33:23 -04:00
parent a760c274b9
commit 734212b992

31
run-tests.sh Executable file
View File

@ -0,0 +1,31 @@
#!/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)