2011-03-26 13:10:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
type -P nodeunit &>/dev/null || {
|
|
|
|
echo "You need to install Nodeunit to run the tests!" >&2
|
|
|
|
echo "You can install it with npm" >&2
|
|
|
|
echo "Run: npm install nodeunit" >&2
|
|
|
|
exit 1
|
|
|
|
}
|
2011-04-07 17:54:41 +00:00
|
|
|
|
|
|
|
if [ -d "../bin" ]; then
|
|
|
|
cd "../"
|
|
|
|
fi
|
|
|
|
|
|
|
|
nodeunit tests
|