Permalink
Browse files

Add ./vows script to invoke Vows.

  • Loading branch information...
1 parent 10a895f commit e0cf818512cd09b0370caefb35dfbfa9217b973f @reid committed Jul 6, 2011
Showing with 5 additions and 6 deletions.
  1. +3 −6 script/test.sh
  2. +2 −0 vows
View
@@ -1,12 +1,9 @@
#!/bin/sh
-testdir="test"
vows="./node_modules/vows/bin/vows"
-[ ! -d $testdir ] && cd ..
-if ! [ -x $vows ]; then
+[ ! -x $vows ] && cd ..
+if [ ! -x $vows ]; then
echo "Unable to run Vows." >&2
echo "Try \`make install-dev\` to install Vows." >&2
exit $ret
fi
-[ ! -e $testdir ] && \
- echo "Unable to find directory '$testdir'." >&2 && exit 1
-$vows $@ $testdir/*.js
+$vows $@
View
2 vows
@@ -0,0 +1,2 @@
+#!/bin/sh
+sh script/test.sh $@

0 comments on commit e0cf818

Please sign in to comment.