Created
February 7, 2013 10:46
-
-
Save raphink/4730232 to your computer and use it in GitHub Desktop.
Test all commits in range, performing a `make check` on each. Fail on first failed commit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RANGE=$1 | |
while read rev def; do | |
echo -n "Testing $rev ($def) " | |
git checkout $rev >/dev/null 2>/dev/null | |
make check > /dev/null 2>/dev/null | |
[[ $? != 0 ]] && echo "NOK" && exit 1 | |
echo "OK" | |
git checkout . >/dev/null 2>/dev/null | |
done < <(git rev-list --pretty=oneline $RANGE | tac) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment