add scripts

This commit is contained in:
Sebastian McKenzie
2015-07-12 12:51:20 +01:00
parent 0a7a01391c
commit 1948946a4d
16 changed files with 168 additions and 1 deletions

15
scripts/test.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -e
for f in packages/*; do
if [ -n "$TEST_ONLY" ] && [ `basename $f` != "$TEST_ONLY" ]; then
continue
fi
if [ -d "$f/test" ]; then
echo $f
cd $f
node ../../node_modules/mocha/bin/_mocha
cd ../../
fi
done