defaults.conf 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. # This file holds defaults for most the tests. It defines the options that
  2. # are most common to tests that are likely to be shared.
  3. #
  4. # Note, after including this file, a config file may override any option
  5. # with a DEFAULTS OVERRIDE section.
  6. #
  7. # For those cases that use the same machine to boot a 64 bit
  8. # and a 32 bit version. The MACHINE is the DNS name to get to the
  9. # box (usually different if it was 64 bit or 32 bit) but the
  10. # BOX here is defined as a variable that will be the name of the box
  11. # itself. It is useful for calling scripts that will power cycle
  12. # the box, as only one script needs to be created to power cycle
  13. # even though the box itself has multiple operating systems on it.
  14. # By default, BOX and MACHINE are the same.
  15. DEFAULTS IF NOT DEFINED BOX
  16. BOX := ${MACHINE}
  17. # Consider each box as 64 bit box, unless the config including this file
  18. # has defined BITS = 32
  19. DEFAULTS IF NOT DEFINED BITS
  20. BITS := 64
  21. DEFAULTS
  22. # THIS_DIR is used through out the configs and defaults to ${PWD} which
  23. # is the directory that ktest.pl was called from.
  24. THIS_DIR := ${PWD}
  25. # to organize your configs, having each machine save their configs
  26. # into a separate directly is useful.
  27. CONFIG_DIR := ${THIS_DIR}/configs/${MACHINE}
  28. # Reset the log before running each test.
  29. CLEAR_LOG = 1
  30. # As installing kernels usually requires root privilege, default the
  31. # user on the target as root. It is also required that the target
  32. # allows ssh to root from the host without asking for a password.
  33. SSH_USER = root
  34. # For accesing the machine, we will ssh to root@machine.
  35. SSH := ssh ${SSH_USER}@${MACHINE}
  36. # Update this. The default here is ktest will ssh to the target box
  37. # and run a script called 'run-test' located on that box.
  38. TEST = ${SSH} run-test
  39. # Point build dir to the git repo you use
  40. BUILD_DIR = ${THIS_DIR}/linux.git
  41. # Each machine will have its own output build directory.
  42. OUTPUT_DIR = ${THIS_DIR}/build/${MACHINE}
  43. # Yes this config is focused on x86 (but ktest works for other archs too)
  44. BUILD_TARGET = arch/x86/boot/bzImage
  45. TARGET_IMAGE = /boot/vmlinuz-test
  46. # have directory for the scripts to reboot and power cycle the boxes
  47. SCRIPTS_DIR := ${THIS_DIR}/scripts
  48. # You can have each box/machine have a script to power cycle it.
  49. # Name your script <box>-cycle.
  50. POWER_CYCLE = ${SCRIPTS_DIR}/${BOX}-cycle
  51. # This script is used to power off the box.
  52. POWER_OFF = ${SCRIPTS_DIR}/${BOX}-poweroff
  53. # Keep your test kernels separate from your other kernels.
  54. LOCALVERSION = -test
  55. # The /boot/grub/menu.lst is searched for the line:
  56. # title Test Kernel
  57. # and ktest will use that kernel to reboot into.
  58. # For grub2 or other boot loaders, you need to set BOOT_TYPE
  59. # to 'script' and define other ways to load the kernel.
  60. # See snowball.conf example.
  61. #
  62. GRUB_MENU = Test Kernel
  63. # The kernel build will use this option.
  64. BUILD_OPTIONS = -j8
  65. # Keeping the log file with the output dir is convenient.
  66. LOG_FILE = ${OUTPUT_DIR}/${MACHINE}.log
  67. # Each box should have their own minum configuration
  68. # See min-config.conf
  69. MIN_CONFIG = ${CONFIG_DIR}/config-min
  70. # For things like randconfigs, there may be configs you find that
  71. # are already broken, or there may be some configs that you always
  72. # want set. Uncomment ADD_CONFIG and point it to the make config files
  73. # that set the configs you want to keep on (or off) in your build.
  74. # ADD_CONFIG is usually something to add configs to all machines,
  75. # where as, MIN_CONFIG is specific per machine.
  76. #ADD_CONFIG = ${THIS_DIR}/config-broken ${THIS_DIR}/config-general
  77. # To speed up reboots for bisects and patchcheck, instead of
  78. # waiting 60 seconds for the console to be idle, if this line is
  79. # seen in the console output, ktest will know the good kernel has
  80. # finished rebooting and it will be able to continue the tests.
  81. REBOOT_SUCCESS_LINE = ${MACHINE} login:
  82. # The following is different ways to end the test.
  83. # by setting the variable REBOOT to: none, error, fail or
  84. # something else, ktest will power cycle or reboot the target box
  85. # at the end of the tests.
  86. #
  87. # REBOOT := none
  88. # Don't do anything at the end of the test.
  89. #
  90. # REBOOT := error
  91. # Reboot the box if ktest detects an error
  92. #
  93. # REBOOT := fail
  94. # Do not stop on failure, and after all tests are complete
  95. # power off the box (for both success and error)
  96. # This is good to run over a weekend and you don't want to waste
  97. # electricity.
  98. #
  99. DEFAULTS IF ${REBOOT} == none
  100. REBOOT_ON_SUCCESS = 0
  101. REBOOT_ON_ERROR = 0
  102. POWEROFF_ON_ERROR = 0
  103. POWEROFF_ON_SUCCESS = 0
  104. DEFAULTS ELSE IF ${REBOOT} == error
  105. REBOOT_ON_SUCCESS = 0
  106. REBOOT_ON_ERROR = 1
  107. POWEROFF_ON_ERROR = 0
  108. POWEROFF_ON_SUCCESS = 0
  109. DEFAULTS ELSE IF ${REBOOT} == fail
  110. REBOOT_ON_SUCCESS = 0
  111. POWEROFF_ON_ERROR = 1
  112. POWEROFF_ON_SUCCESS = 1
  113. POWEROFF_AFTER_HALT = 120
  114. DIE_ON_FAILURE = 0
  115. # Store the failure information into this directory
  116. # such as the .config, dmesg, and build log.
  117. STORE_FAILURES = ${THIS_DIR}/failures
  118. DEFAULTS ELSE
  119. REBOOT_ON_SUCCESS = 1
  120. REBOOT_ON_ERROR = 1
  121. POWEROFF_ON_ERROR = 0
  122. POWEROFF_ON_SUCCESS = 0