/generate_bisect.sh

http://github.com/fizx/parsley · Shell · 12 lines · 11 code · 0 blank · 1 comment · 3 complexity · fe572f98210724123a58a4de45af62e1 MD5 · raw file

  1. #!/bin/sh
  2. if [ -z "$1" ]; then
  3. echo "Usage: $0 TEST_PREFIX"
  4. exit
  5. fi
  6. cat /dev/null > /tmp/bisect.sh
  7. chmod +x /tmp/bisect.sh
  8. cp "test/$1".* /tmp || exit
  9. echo "make && ./parsley /tmp/$1.let /tmp/$1.html 2>&1 | diff /tmp/$1.json -" >> /tmp/bisect.sh
  10. cat /tmp/bisect.sh
  11. echo "-------------"
  12. echo "git bisect run /tmp/bisect.sh"