urchin/urchin
2012-10-04 07:29:34 -04:00

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
}