sample.conf 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. #
  2. # Config file for autotest.pl
  3. #
  4. # Note, all paths must be absolute
  5. #
  6. # Almost all options may be overwritten per test run, by appending
  7. # a [x] to the config. For example, to change the test type for
  8. # the third iteration of tests, you can specify:
  9. # (1 is for the first test, 2 for the second, and so on)
  10. #
  11. # TEST_TYPE[3] = build
  12. #
  13. # The options that can not be changed like this are:
  14. # NUM_TESTS
  15. # LOG_FILE
  16. # CLEAR_LOG
  17. # POWEROFF_ON_SUCCESS
  18. # REBOOT_ON_SUCCESS
  19. #
  20. #### Mandatory Config Options ####
  21. # The machine hostname that you will test
  22. #MACHINE = target
  23. # The box is expected to have ssh on normal bootup, provide the user
  24. # (most likely root, since you need privileged operations)
  25. #SSH_USER = root
  26. # The directory that contains the Linux source code
  27. #BUILD_DIR = /home/test/linux.git
  28. # The directory that the objects will be built
  29. # (can not be same as BUILD_DIR)
  30. #OUTPUT_DIR = /home/test/build/target
  31. # The location of the compiled file to copy to the target
  32. # (relative to OUTPUT_DIR)
  33. #BUILD_TARGET = arch/x86/boot/bzImage
  34. # The place to put your image on the test machine
  35. #TARGET_IMAGE = /boot/vmlinuz-test
  36. # A script or command to reboot the box
  37. # Here is a digital loggers power switch example
  38. #POWER_CYCLE = wget --no-proxy -O /dev/null -q --auth-no-challenge 'http://admin:admin@power/outlet?5=CCL'
  39. # Here is an example to reboot a virtual box on the current host
  40. # with the name "Guest".
  41. #POWER_CYCLE = virsh list | grep '\<Guest\>' | awk '{printf ("%d", $1)}' | xargs virsh destroy; sleep 5; virsh start Guest
  42. # The script or command that reads the console
  43. # If you use ttywatch server, something like the following would work.
  44. #CONSOLE = nc -d localhost 3001
  45. # For a virtual machine with guest name "Guest".
  46. #CONSOLE = virsh console `virsh list | grep '\<Guest\>' | awk '{printf ("%d", $1)}'`
  47. # Required version ending to differentiate the test
  48. # from other linux builds on the system.
  49. #LOCALVERSION = -test
  50. # The grub title name for the test kernel to boot
  51. # (Only mandatory if REBOOT_TYPE = grub)
  52. #
  53. # For example, if in the /boot/grub/menu.lst the test kernel title has:
  54. # title Test Kernel
  55. #GRUB_MENU = Test Kernel
  56. # A script to reboot the target into the test kernel
  57. # (Only mandatory if REBOOT_TYPE = script)
  58. #REBOOT_SCRIPT =
  59. #### Optional Config Options (all have defaults) ####
  60. # The number of tests to run (default 5)
  61. #NUM_TESTS = 5
  62. # The default test type (default test)
  63. # The test types may be:
  64. # build - only build the kernel, do nothing else
  65. # boot - build and boot the kernel
  66. # test - build, boot and if TEST is set, run the test script
  67. # bisect - Perform a bisect on the kernel (see BISECT_TYPE below)
  68. # patchcheck - Do a test on a series of commits in git (see PATCHCHECK below)
  69. #TEST_TYPE = test
  70. # The build type is any make config type or a command.
  71. # (default randconfig)
  72. # nobuild - skip the clean and build step
  73. #BUILD_TYPE = randconfig
  74. # The make command (default make)
  75. # If you are building a 32bit x86 on a 64 bit host
  76. #MAKE_CMD = CC=i386-gcc AS=i386-as make ARCH=i386
  77. # Way to reboot the box to the test kernel.
  78. # Only valid options so far are "grub" and "script"
  79. # (default grub)
  80. # If you specify grub, it will assume grub version 1
  81. # and will search in /boot/grub/menu.lst for the title $GRUB_MENU
  82. # and select that target to reboot to the kernel. If this is not
  83. # your setup, then specify "script" and have a command or script
  84. # specified in REBOOT_SCRIPT to boot to the target.
  85. #REBOOT_TYPE = grub
  86. # Line to define success in output. (default "login:")
  87. # This is what the line contains, not the entire line. If you need
  88. # the entire line to match, then use regural expression syntax like
  89. # ^MyBox Login:$
  90. #SUCCESS_LINE = login:
  91. # As the test reads the console, after it hits the SUCCESS_LINE
  92. # the time it waits for the monitor to settle down between reads
  93. # can usually be lowered.
  94. # (in seconds) (default 1)
  95. #BOOTED_TIMEOUT = 1
  96. # The timeout in seconds when we consider the box hung after
  97. # the console stop producing output.
  98. # (default 120)
  99. #TIMEOUT = 120
  100. # The location on the host where to write temp files
  101. # (default /tmp/autotest)
  102. #TMP_DIR = /tmp/autotest
  103. # In between tests, a reboot of the box may occur, and this
  104. # is the time to wait for the console after it stops producing
  105. # output. Some machines may not produce a large lag on reboot
  106. # so this should accommodate it.
  107. # (default 60)
  108. #SLEEP_TIME = 60
  109. # The time in between bisects to sleep (in seconds)
  110. # Can be less than SLEEP_TIME since bisects do more work
  111. # in between boots. (default 60)
  112. #BISECT_SLEEP_TIME = 60
  113. # Build without doing a make mrproper, or removing .config
  114. # (default 0)
  115. #BUILD_NOCLEAN = 0
  116. # Reboot the target box on error (default 0)
  117. #REBOOT_ON_ERROR = 0
  118. # Power off the target on error (ignored if REBOOT_ON_ERROR is set)
  119. # (default 0)
  120. #POWEROFF_ON_ERROR = 0
  121. # Power off the target after all tests have completed successfully
  122. # (default 0)
  123. #POWEROFF_ON_SUCCESS = 0
  124. # Reboot the target after all test completed successfully (default 1)
  125. # (ignored if POWEROFF_ON_SUCCESS is set)
  126. #REBOOT_ON_SUCCESS = 1
  127. # Stop testing if a build fails. If set, the script will end if
  128. # a failure is detected, otherwise it will save off the .config,
  129. # dmesg and bootlog in a directory called
  130. # MACHINE-TEST_TYPE_BUILD_TYPE-fail-yyyymmddhhmmss
  131. # if the STORE_FAILURES directory is set.
  132. # (default 1)
  133. # Note, even if this is set to zero, there are some errors that still
  134. # stop the tests.
  135. #DIE_ON_FAILURE = 1
  136. # Directory to store failure directories on failure. If this is not
  137. # set, DIE_ON_FAILURE=0 will not save off the .config, dmesg and
  138. # bootlog.
  139. #STORE_FAILURES = /home/test/failures
  140. # A script or command to power off the box (default undef)
  141. # Needed for POWEROFF_ON_ERROR and SUCCESS
  142. # Example for digital loggers power switch:
  143. #POWER_OFF = wget --no-proxy -O /dev/null -q --auth-no-challenge 'http://admin:admin@power/outlet?5=OFF'
  144. # Example for a virtual guest call "Guest".
  145. #POWER_OFF = virsh list | grep '\<GuestF12\>' | awk '{printf ("%d", $1)}' | xargs virsh destroy
  146. # Any build options for the make (default "")
  147. #BUILD_OPTIONS = -j20
  148. # Optional log file to write the status (recommended)
  149. # (default undef)
  150. #LOG_FILE = /home/test/logfiles/target.log
  151. # Remove old logfile if it exists before starting all tests.
  152. # (default 0)
  153. #CLEAR_LOG = 0
  154. # Test to run if there is a successful boot and TEST_TYPE is test.
  155. # Must exit with 0 on success and non zero on error
  156. # default (undef)
  157. #TEST = ssh user@machine /root/run_test
  158. #TEST[1] = ssh root@mxtest /root/run_test
  159. # The min config that is needed to build for the machine
  160. # A nice way to get this to work, is to do a "lsmod > mymods" on the target
  161. # copy it to the build server, and then run "make LSMOD=mymods localyesconfig".
  162. # Then copy all the options that are set: "grep '^CONFIG' > /home/test/config-min"
  163. #
  164. # You might want to set:
  165. # CONFIG_CMDLINE="<your options here>"
  166. # randconfig may set the above and override your real command
  167. # line options.
  168. # (default undef)
  169. #MIN_CONFIG = /home/test/config-min
  170. # Sometimes there's options that just break the boot and
  171. # you do not care about. Here are a few:
  172. # # CONFIG_STAGING is not set
  173. # Staging drivers are horrible, and can break the build.
  174. # # CONFIG_SCSI_DEBUG is not set
  175. # SCSI_DEBUG may change your root partition
  176. # # CONFIG_KGDB_SERIAL_CONSOLE is not set
  177. # KGDB may cause oops waiting for a connection that's not there.
  178. # This option points to the file containing config options that will be prepended
  179. # to the MIN_CONFIG (or be the MIN_CONFIG if it is not set)
  180. # before running it through randconfig
  181. # (default undef)
  182. #ADD_CONFIG = /home/test/config-broken
  183. #### Per test run options ####
  184. # These are options are per build only. The only exist with the [x]
  185. # syntax, and there is no general option.
  186. #
  187. # All are optional and undef by default
  188. #
  189. # CHECKOUT[x] = branch
  190. #
  191. # If the BUILD_DIR is a git repository, then you can set this option
  192. # to checkout the given branch before running the TEST. If you
  193. # specify this for the first run, that branch will be used for
  194. # all preceding tests until a new CHECKOUT[x] is set.
  195. #
  196. # For TEST_TYPE[x] = patchcheck
  197. #
  198. # This expects the BUILD_DIR to be a git repository, and
  199. # will checkout the PATCHCHECK_START[x].
  200. #
  201. # PATCHCHECK_START[x] is required and is the first patch to
  202. # test (the SHA1 of the commit).
  203. #
  204. # PATCHCHECK_END[x] is the last patch to check (default HEAD)
  205. #
  206. # PATCHCHECK_TYPE[x] is required and is the type of test to run:
  207. # build, boot, test.
  208. #
  209. # Note, the build test will look for warnings, if a warning occurred
  210. # in a file that a commit touches, the build will fail.
  211. #
  212. # If BUILD_NOCLEAN is set, then make mrproper will not be run on
  213. # any of the builds, just like all other TEST_TYPE tests. But
  214. # what makes patchcheck different from the other tests, is if
  215. # BUILD_NOCLEAN is not set, only the first and last patch run
  216. # make mrproper. This helps speed up the test.
  217. #
  218. # Example:
  219. # TEST_TYPE[1] = patchcheck
  220. # CHECKOUT[1] = mybranch
  221. # PATCHCHECK_TYPE[1] = boot
  222. # PATCHCHECK_START[1] = 747e94ae3d1b4c9bf5380e569f614eb9040b79e7
  223. # PATCHCHEKC_END[1] = b8b2663bd7c9da04ac804659b9f617c199d0252c
  224. #
  225. #
  226. # For TEST_TYPE[x] = bisect
  227. #
  228. # You can specify a git bisect if the BUILD_DIR is a git repository.
  229. # The MIN_CONFIG will be used for all builds of the bisect. The build type
  230. # used for bisecting is oldconfig.
  231. #
  232. # BISECT_TYPE[x] is the type of test to perform:
  233. # build - bad fails to build
  234. # boot - bad builds but fails to boot
  235. # test - bad boots but fails a test
  236. #
  237. # BISECT_GOOD[x] is the commit (SHA1) to label as good
  238. # BISECT_BAD[x] is the commit to label as bad
  239. #
  240. # The above three options are required for a bisect operation.
  241. #
  242. # BISECT_REPLAY[x] = /path/to/replay/file (optional, default undefined)
  243. #
  244. # If an operation failed in the bisect that was not expected to
  245. # fail. Then the test ends. The state of the BUILD_DIR will be
  246. # left off at where the failur occurred. You can examine the
  247. # reason for the failure, and perhaps even find a git commit
  248. # that would work to continue with. You can run:
  249. #
  250. # git bisect log > /path/to/replay/file
  251. #
  252. # and if BISECT_REPLAY[x] is set, the test will run git bisect replay
  253. # before continuing with the bisect.
  254. #
  255. # BISECT_START[x] = commit (optional, default undefined)
  256. #
  257. # As with BISECT_REPLAY[x], if the test failed on a commit that
  258. # just happen to have a bad commit in the middle of the bisect,
  259. # and you need to skip it. If BISECT_START[x] is defined, it
  260. # will checkout that commit before continuing with the bisect.
  261. #
  262. # Note, BISECT_REPLAY[x] is executed before BISECT_START[x].
  263. #
  264. # BISECT_REVERSE[x] = 1 (optional, default 0)
  265. #
  266. # In those strange instances where it was broken forever
  267. # and you are trying to find where it started to work!
  268. # Set BISECT_GOOD[x] to the commit that was last known to fail
  269. # Set BISECT_BAD[x] to the commit that is known where it started
  270. # to work. With BISECT_REVERSE[x] = 1, The test will consider
  271. # failures as good, and success as bad.
  272. #
  273. # BISECT_CHECK[x] = 1 (optional, default 0)
  274. #
  275. # Just to be sure the good is good and bad is bad, setting
  276. # BISECT_CHECK[x] to 1 will start the bisect by first checking
  277. # out BISECT_BAD[x] and makes sure it fails, then it will check
  278. # out BISECT_GOOD[x] and makes sure it succeeds before starting
  279. # the bisect (it works for BISECT_REVERSE[x] too).
  280. #
  281. # You can limit the test to just check BISECT_GOOD[x] or
  282. # BISECT_BAD[x] with BISECT_CHECK[x] = good or
  283. # BISECT_CHECK[x] = bad, respectively.
  284. #
  285. # Example:
  286. # TEST_TYPE[1] = bisect
  287. # BISECT_GOOD[1] = v2.6.36
  288. # BISECT_BAD[1] = b5153163ed580e00c67bdfecb02b2e3843817b3e
  289. # BISECT_TYPE[1] = build
  290. # MIN_CONFIG[1] = /home/test/config-bisect