node/deps/npm/node_modules/rimraf/test/run.sh

17 lines
202 B
Bash
Raw Normal View History

2012-12-22 00:42:29 +08:00
#!/bin/bash
set -e
2014-08-01 00:05:30 +08:00
code=0
2012-12-22 00:42:29 +08:00
for i in test-*.js; do
echo -n $i ...
bash setup.sh
node $i
2014-08-01 00:05:30 +08:00
if [ -d target ]; then
echo "fail"
code=1
else
echo "pass"
fi
2012-12-22 00:42:29 +08:00
done
rm -rf target
2014-08-01 00:05:30 +08:00
exit $code