patchcheck.conf 2.8 KB

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