take an argument
This commit is contained in:
parent
1bd7b4adf6
commit
be4a5fc698
@ -13,7 +13,7 @@ Download Urchin like so (as root)
|
||||
|
||||
Now you can run it.
|
||||
|
||||
urchin
|
||||
urchin <test directory>
|
||||
|
||||
## Writing tests
|
||||
Make a root directory for your tests. Inside it, put executable files that
|
||||
|
6
urchin
6
urchin
@ -46,13 +46,13 @@ recurse() {
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "$#" = '0' ]
|
||||
if [ "$#" = '1' ] && [ -d "$1" ]
|
||||
then
|
||||
echo Running tests
|
||||
recurse .
|
||||
recurse "$1"
|
||||
echo
|
||||
echo Done
|
||||
else
|
||||
echo 'Run `urchin` without arguments from a directory containing urchin tests.'
|
||||
echo "usage: $0 <test directory>"
|
||||
echo 'Go to http://www.urchin.sh for documentation on writing tests.'
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user