generated from sdaveb/gnu-automake-project
parent
a760c274b9
commit
734212b992
31
run-tests.sh
Executable file
31
run-tests.sh
Executable 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)
|
Loading…
Reference in New Issue
Block a user