run 351 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. rm -f test/pids/*.pid
  3. rm -f test/*.sock test/support/*.sock
  4. rm -f test/logs/*.log
  5. rm -f test/logs/nested/*.log
  6. clean() {
  7. killall -KILL node &> /dev/null
  8. }
  9. clean
  10. echo
  11. files=test/test.*.js
  12. for file in $files; do
  13. printf "\033[90m ${file#test/}\033[0m "
  14. node $@ $file && echo "\033[36m✓\033[0m"
  15. test $? -eq 0 || exit $?
  16. done
  17. echo