]> git.karo-electronics.de Git - karo-tx-linux.git/blob - tools/testing/ktest/examples/include/patchcheck.conf
339d3e1700ff29f11a1cadf4bf80fa4ab91e685b
[karo-tx-linux.git] / tools / testing / ktest / examples / include / patchcheck.conf
1 # patchcheck.conf
2 #
3 # This contains a test that takes two git commits and will test each
4 # commit between the two. The build test will look at what files the
5 # commit has touched, and if any of those files produce a warning, then
6 # the build will fail.
7
8
9 # PATCH_START is the commit to begin with and PATCH_END is the commit
10 # to end with (inclusive). This is similar to doing a git rebase -i PATCH_START~1
11 # and then testing each commit and doing a git rebase --continue.
12 # You can use a SHA1, a git tag, or anything that git will accept for a checkout
13
14 PATCH_START := HEAD~3
15 PATCH_END := HEAD
16
17 # Change PATCH_CHECKOUT to be the branch you want to test. The test will
18 # do a git checkout of this branch before starting. Obviously both
19 # PATCH_START and PATCH_END must be in this branch (and PATCH_START must
20 # be contained by PATCH_END).
21
22 PATCH_CHECKOUT := test/branch
23
24 # Usually it's a good idea to have a set config to use for testing individual
25 # patches.
26 PATCH_CONFIG := ${CONFIG_DIR}/config-patchcheck
27
28 # Change PATCH_TEST to run some test for each patch. Each commit that is
29 # tested, after it is built and installed on the test machine, this command
30 # will be executed. Usually what is done is to ssh to the target box and
31 # run some test scripts. If you just want to boot test your patches
32 # comment PATCH_TEST out.
33 PATCH_TEST := ${SSH} "/usr/local/bin/ktest-test-script"
34
35 DEFAULTS IF DEFINED PATCH_TEST
36 PATCH_TEST_TYPE := test
37
38 DEFAULTS ELSE
39 PATCH_TEST_TYPE := boot
40
41 # If for some reason a file has a warning that one of your patches touch
42 # but you do not care about it, set IGNORE_WARNINGS to that commit(s)
43 # (space delimited)
44 #IGNORE_WARNINGS = 39eaf7ef884dcc44f7ff1bac803ca2a1dcf43544 6edb2a8a385f0cdef51dae37ff23e74d76d8a6ce
45
46 # If you are running a multi test, and the test failed on the first
47 # test but on, say the 5th patch. If you want to restart on the
48 # fifth patch, set PATCH_START1. This will make the first test start
49 # from this commit instead of the PATCH_START commit.
50 # Note, do not change this option. Just define PATCH_START1 in the
51 # top config (the one you pass to ktest.pl), and this will use it,
52 # otherwise it will just use PATCH_START if PATCH_START1 is not defined.
53 DEFAULTS IF NOT DEFINED PATCH_START1
54 PATCH_START1 := ${PATCH_START}
55
56 TEST_START IF ${TEST} == patchcheck
57 TEST_TYPE = patchcheck
58 MIN_CONFIG = ${PATCH_CONFIG}
59 TEST = ${PATCH_TEST}
60 PATCHCHECK_TYPE = ${PATCH_TEST_TYPE}
61 PATCHCHECK_START = ${PATCH_START1}
62 PATCHCHECK_END = ${PATCH_END}
63 CHECKOUT = ${PATCH_CHECKOUT}
64
65 TEST_START IF ${TEST} == patchcheck && ${MULTI}
66 TEST_TYPE = patchcheck
67 MIN_CONFIG = ${PATCH_CONFIG}
68 TEST = ${PATCH_TEST}
69 PATCHCHECK_TYPE = ${PATCH_TEST_TYPE}
70 PATCHCHECK_START = ${PATCH_START}
71 PATCHCHECK_END = ${PATCH_END}
72 CHECKOUT = ${PATCH_CHECKOUT}
73 # Use multi to test different compilers?
74 MAKE_CMD = CC=gcc-4.5.1 make