generated from sdaveb/gnu-automake-project
32 lines
382 B
Bash
Executable File
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)
|