add scripts
This commit is contained in:
15
scripts/test.sh
Executable file
15
scripts/test.sh
Executable 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
|
||||
Reference in New Issue
Block a user