diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-25 13:47:57 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-25 13:47:57 +0300 |
commit | ef9886be496a2e0d19999e539017d55337e96467 (patch) | |
tree | 9a155bf54fa8a1670c70c8548290d73bff0ca884 | |
parent | e5d308ea1bb6f88d998b4df5832b7393a104b9c6 (diff) |
Added script for auto-rollback to the latest commit that passes all regtests.
-rwxr-xr-x | contrib/debugging/auto-rollback.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/debugging/auto-rollback.sh b/contrib/debugging/auto-rollback.sh new file mode 100755 index 000000000..c08e59a31 --- /dev/null +++ b/contrib/debugging/auto-rollback.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +git submodule init +git submodule update regtest +while [ true ] ; do + ./bjam -j$(nproc) --with-irstlm=$(pwd)/opt --with-boost=$(pwd)/opt --with-cmph=$(pwd)/opt --with-xmlrpc-c=$(pwd)/opt --with-regtest=$(pwc)/regtest -a -q $@ && break + commit=$(git log | grep ^commit | head -n2 | tail -n1 | sed 's/commit //') + echo REVERTING TO COMMIT $commit + git checkout $commit +done |