24 lines
370 B
Bash
Executable File
24 lines
370 B
Bash
Executable File
#!/bin/sh
|
|
|
|
recurse() {
|
|
potential_test="$1"
|
|
if [ -d "$potential_test" ]
|
|
then
|
|
(
|
|
cd "$potential_test"
|
|
[ -f setup ] && sh setup
|
|
ls test* | xargs recurse
|
|
[ -f teardown ] && sh teardown
|
|
)
|
|
elif [ -f "$potential_test" ]
|
|
then
|
|
sh "$potential_test"
|
|
if [ "$@" = '0' ]
|
|
then
|
|
echo .
|
|
else
|
|
echo F
|
|
fi
|
|
fi
|
|
}
|