meta-tests

This commit is contained in:
Thomas Levine 2012-10-08 08:50:48 -04:00
parent 3368947b3b
commit 05c478baa9
5 changed files with 7 additions and 1 deletions

1
tests/setup Normal file
View File

@ -0,0 +1 @@
#urchin_export tmp=$(mktemp -d)

0
tests/teardown Normal file
View File

View File

View File

7
urchin
View File

@ -7,7 +7,9 @@ recurse() {
(
cd "$potential_test"
[ -f setup ] && sh setup
ls test* | xargs recurse
for test in test*
do recurse "${test}"
done
[ -f teardown ] && sh teardown
)
elif [ -f "$potential_test" ]
@ -27,7 +29,10 @@ recurse() {
if [ -d tests ]
then
echo Running tests
recurse tests
echo
echo Done
else
echo 'No tests directory' && exit 1
fi