docs/submittingpatches: add 'test each commit' instructions

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
This commit is contained in:
Eric Engestrom
2017-09-15 17:10:57 +00:00
committed by Eric Engestrom
parent 969537d935
commit 81557af63b

View File

@@ -151,6 +151,18 @@ Whenever possible and applicable, test the patch with
to check for regressions.
</p>
<p>
As mentioned at the begining, patches should be bisectable.
A good way to test this is to make use of the `git rebase` command,
to run your tests on each commit. Assuming your branch is based off
<code>origin/master</code>, you can run:
<pre>
$ git rebase --interactive --exec "make check" origin/master
</pre>
replacing <code>"make check"</code> with whatever other test you want to
run.
</p>
<h2 id="mailing">Mailing Patches</h2>