diff options
author | Junio C Hamano <junio@hera.kernel.org> | 2009-03-06 08:21:09 +0000 |
---|---|---|
committer | Junio C Hamano <junio@hera.kernel.org> | 2009-03-06 08:21:09 +0000 |
commit | 0a23522474e120e244e3082ebee15365db20367a (patch) | |
tree | 7d92d7744bbe3d57103f64f3b3a4cd16ba9fe55e /git-bisect.txt | |
parent | 36ac993d398d38a097e0c36200f1399aafa6f06c (diff) | |
download | git-htmldocs-0a23522474e120e244e3082ebee15365db20367a.tar.gz |
Autogenerated HTML docs for v1.6.2-77-g8cc3f
Diffstat (limited to 'git-bisect.txt')
-rw-r--r-- | git-bisect.txt | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/git-bisect.txt b/git-bisect.txt index 147ea3819..e65c1cae8 100644 --- a/git-bisect.txt +++ b/git-bisect.txt @@ -212,7 +212,7 @@ If you have a script that can tell if the current source code is good or bad, you can automatically bisect using: ------------ -$ git bisect run my_script +$ git bisect run my_script arguments ------------ Note that the "run" script (`my_script` in the above example) should @@ -252,6 +252,13 @@ $ git bisect start HEAD v1.2 -- # HEAD is bad, v1.2 is good $ git bisect run make # "make" builds the app ------------ +* Automatically bisect a test failure between origin and HEAD: ++ +------------ +$ git bisect start HEAD origin -- # HEAD is bad, origin is good +$ git bisect run make test # "make test" builds and tests +------------ + * Automatically bisect a broken test suite: + ------------ @@ -291,6 +298,15 @@ It's safer if both "test.sh" and "check_test_case.sh" scripts are outside the repo to prevent interactions between the bisect, make and test processes and the scripts. +* Automatically bisect a broken test suite: ++ +------------ +$ git bisect start HEAD HEAD~10 -- # culprit is among the last 10 +$ git bisect run sh -c "make || exit 125; ~/check_test_case.sh" +------------ ++ +Does the same as the previous example, but on a single line. + Author ------ Written by Linus Torvalds <torvalds@osdl.org> |