bisect.conf 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #
  2. # This example shows the bisect tests (git bisect and config bisect)
  3. #
  4. # The config that includes this file may define a RUN_TEST
  5. # variable that will tell this config what test to run.
  6. # (what to set the TEST option to).
  7. #
  8. DEFAULTS IF NOT DEFINED RUN_TEST
  9. # Requires that hackbench is in the PATH
  10. RUN_TEST := ${SSH} hackbench 50
  11. # Set TEST to 'bisect' to do a normal git bisect. You need
  12. # to modify the options below to make it bisect the exact
  13. # commits you are interested in.
  14. #
  15. TEST_START IF ${TEST} == bisect
  16. TEST_TYPE = bisect
  17. # You must set the commit that was considered good (git bisect good)
  18. BISECT_GOOD = v3.3
  19. # You must set the commit that was considered bad (git bisect bad)
  20. BISECT_BAD = HEAD
  21. # It's best to specify the branch to checkout before starting the bisect.
  22. CHECKOUT = origin/master
  23. # This can be build, boot, or test. Here we are doing a bisect
  24. # that requires to run a test to know if the bisect was good or bad.
  25. # The test should exit with 0 on good, non-zero for bad. But see
  26. # the BISECT_RET_* options in samples.conf to override this.
  27. BISECT_TYPE = test
  28. TEST = ${RUN_TEST}
  29. # It is usually a good idea to confirm that the GOOD and the BAD
  30. # commits are truly good and bad respectively. Having BISECT_CHECK
  31. # set to 1 will check both that the good commit works and the bad
  32. # commit fails. If you only want to check one or the other,
  33. # set BISECT_CHECK to 'good' or to 'bad'.
  34. BISECT_CHECK = 1
  35. #BISECT_CHECK = good
  36. #BISECT_CHECK = bad
  37. # Usually it's a good idea to specify the exact config you
  38. # want to use throughout the entire bisect. Here we placed
  39. # it in the directory we called ktest.pl from and named it
  40. # 'config-bisect'.
  41. MIN_CONFIG = ${THIS_DIR}/config-bisect
  42. # By default, if we are doing a BISECT_TYPE = test run but the
  43. # build or boot fails, ktest.pl will do a 'git bisect skip'.
  44. # Uncomment the below option to make ktest stop testing on such
  45. # an error.
  46. #BISECT_SKIP = 0
  47. # Now if you had BISECT_SKIP = 0 and the test fails, you can
  48. # examine what happened and then do 'git bisect log > /tmp/replay'
  49. # Set BISECT_REPLAY to /tmp/replay and ktest.pl will run the
  50. # 'git bisect replay /tmp/replay' before continuing the bisect test.
  51. #BISECT_REPLAY = /tmp/replay
  52. # If you used BISECT_REPLAY after the bisect test failed, you may
  53. # not want to continue the bisect on that commit that failed.
  54. # By setting BISECT_START to a new commit. ktest.pl will checkout
  55. # that commit after it has performed the 'git bisect replay' but
  56. # before it continues running the bisect test.
  57. #BISECT_START = 2545eb6198e7e1ec50daa0cfc64a4cdfecf24ec9
  58. # Now if you don't trust ktest.pl to make the decisions for you, then
  59. # set BISECT_MANUAL to 1. This will cause ktest.pl not to decide
  60. # if the commit was good or bad. Instead, it will ask you to tell
  61. # it if the current commit was good. In the mean time, you could
  62. # take the result, load it on any machine you want. Run several tests,
  63. # or whatever you feel like. Then, when you are happy, you can tell
  64. # ktest if you think it was good or not and ktest.pl will continue
  65. # the git bisect. You can even change what commit it is currently at.
  66. #BISECT_MANUAL = 1
  67. # One of the unique tests that ktest does is the config bisect.
  68. # Currently (which hopefully will be fixed soon), the bad config
  69. # must be a superset of the good config. This is because it only
  70. # searches for a config that causes the target to fail. If the
  71. # good config is not a subset of the bad config, or if the target
  72. # fails because of a lack of a config, then it will not find
  73. # the config for you.
  74. TEST_START IF ${TEST} == config-bisect
  75. TEST_TYPE = config_bisect
  76. # set to build, boot, test
  77. CONFIG_BISECT_TYPE = boot
  78. # Set the config that is considered bad.
  79. CONFIG_BISECT = ${THIS_DIR}/config-bad
  80. # This config is optional. By default it uses the
  81. # MIN_CONFIG as the good config.
  82. CONFIG_BISECT_GOOD = ${THIS_DIR}/config-good