allow to run single tests from ./artest
This commit is contained in:
parent
9543452bb0
commit
688eb2883f
@ -12,15 +12,21 @@ ALLGOOD=yes
|
||||
run_tests () {
|
||||
echo ""
|
||||
echo "-------------------------------------------"
|
||||
RUN=run-tests
|
||||
if test -n "$2"; then
|
||||
RUN=$2
|
||||
echo "Running test $2 of $1..."
|
||||
else
|
||||
echo "Running tests for $1..."
|
||||
fi
|
||||
echo "-------------------------------------------"
|
||||
echo ""
|
||||
$2 $LIBS_DIR/$1/run-tests || ALLGOOD=no
|
||||
$3 $LIBS_DIR/$1/$RUN || ALLGOOD=no
|
||||
echo ""
|
||||
}
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
run_tests $1 $2
|
||||
run_tests $1 $2 $3
|
||||
exit
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user