summaryrefslogtreecommitdiffstats
path: root/git-bisect.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-03-06 08:21:09 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-03-06 08:21:09 +0000
commit0a23522474e120e244e3082ebee15365db20367a (patch)
tree7d92d7744bbe3d57103f64f3b3a4cd16ba9fe55e /git-bisect.html
parent36ac993d398d38a097e0c36200f1399aafa6f06c (diff)
downloadgit-htmldocs-0a23522474e120e244e3082ebee15365db20367a.tar.gz
Autogenerated HTML docs for v1.6.2-77-g8cc3f
Diffstat (limited to 'git-bisect.html')
-rw-r--r--git-bisect.html25
1 files changed, 23 insertions, 2 deletions
diff --git a/git-bisect.html b/git-bisect.html
index 108446407..a2e55ce19 100644
--- a/git-bisect.html
+++ b/git-bisect.html
@@ -480,7 +480,7 @@ and then you give all the good revisions you have:</p></div>
or bad, you can automatically bisect using:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>$ git bisect run my_script</tt></pre>
+<pre><tt>$ git bisect run my_script arguments</tt></pre>
</div></div>
<div class="para"><p>Note that the "run" script (<tt>my_script</tt> in the above example) should
exit with code 0 in case the current source code is good. Exit with a
@@ -520,6 +520,16 @@ $ git bisect run make # "make" builds the app</tt></pre>
</li>
<li>
<p>
+Automatically bisect a test failure between origin and HEAD:
+</p>
+<div class="listingblock">
+<div class="content">
+<pre><tt>$ git bisect start HEAD origin -- # HEAD is bad, origin is good
+$ git bisect run make test # "make test" builds and tests</tt></pre>
+</div></div>
+</li>
+<li>
+<p>
Automatically bisect a broken test suite:
</p>
<div class="listingblock">
@@ -558,6 +568,17 @@ and "exit 1" (for example) otherwise.</p></div>
outside the repo to prevent interactions between the bisect, make and
test processes and the scripts.</p></div>
</li>
+<li>
+<p>
+Automatically bisect a broken test suite:
+</p>
+<div class="listingblock">
+<div class="content">
+<pre><tt>$ git bisect start HEAD HEAD~10 -- # culprit is among the last 10
+$ git bisect run sh -c "make || exit 125; ~/check_test_case.sh"</tt></pre>
+</div></div>
+<div class="para"><p>Does the same as the previous example, but on a single line.</p></div>
+</li>
</ul></div>
</div>
<h2 id="_author">Author</h2>
@@ -574,7 +595,7 @@ test processes and the scripts.</p></div>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2009-02-14 08:18:02 UTC
+Last updated 2009-03-06 08:20:41 UTC
</div>
</div>
</body>