run.sh 202 B

12345678910111213141516
  1. #!/bin/bash
  2. set -e
  3. code=0
  4. for i in test-*.js; do
  5. echo -n $i ...
  6. bash setup.sh
  7. node $i
  8. if [ -d target ]; then
  9. echo "fail"
  10. code=1
  11. else
  12. echo "pass"
  13. fi
  14. done
  15. rm -rf target
  16. exit $code