/generate_bisect.sh
http://github.com/fizx/parsley · Shell · 12 lines · 11 code · 0 blank · 1 comment · 3 complexity · fe572f98210724123a58a4de45af62e1 MD5 · raw file
- #!/bin/sh
- if [ -z "$1" ]; then
- echo "Usage: $0 TEST_PREFIX"
- exit
- fi
- cat /dev/null > /tmp/bisect.sh
- chmod +x /tmp/bisect.sh
- cp "test/$1".* /tmp || exit
- echo "make && ./parsley /tmp/$1.let /tmp/$1.html 2>&1 | diff /tmp/$1.json -" >> /tmp/bisect.sh
- cat /tmp/bisect.sh
- echo "-------------"
- echo "git bisect run /tmp/bisect.sh"