sample.conf 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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. # If you need an initrd, you can add a script or code here to install
  78. # it. The environment variable KERNEL_VERSION will be set to the
  79. # kernel version that is used.
  80. #POST_INSTALL = ssh user@target /sbin/mkinitrd --allow-missing -f /boot/initramfs-test.img $KERNEL_VERSION
  81. # Way to reboot the box to the test kernel.
  82. # Only valid options so far are "grub" and "script"
  83. # (default grub)
  84. # If you specify grub, it will assume grub version 1
  85. # and will search in /boot/grub/menu.lst for the title $GRUB_MENU
  86. # and select that target to reboot to the kernel. If this is not
  87. # your setup, then specify "script" and have a command or script
  88. # specified in REBOOT_SCRIPT to boot to the target.
  89. #REBOOT_TYPE = grub
  90. # Line to define success in output. (default "login:")
  91. # This is what the line contains, not the entire line. If you need
  92. # the entire line to match, then use regural expression syntax like
  93. # ^MyBox Login:$
  94. #SUCCESS_LINE = login:
  95. # As the test reads the console, after it hits the SUCCESS_LINE
  96. # the time it waits for the monitor to settle down between reads
  97. # can usually be lowered.
  98. # (in seconds) (default 1)
  99. #BOOTED_TIMEOUT = 1
  100. # The timeout in seconds when we consider the box hung after
  101. # the console stop producing output.
  102. # (default 120)
  103. #TIMEOUT = 120
  104. # The location on the host where to write temp files
  105. # (default /tmp/autotest)
  106. #TMP_DIR = /tmp/autotest
  107. # In between tests, a reboot of the box may occur, and this
  108. # is the time to wait for the console after it stops producing
  109. # output. Some machines may not produce a large lag on reboot
  110. # so this should accommodate it.
  111. # (default 60)
  112. #SLEEP_TIME = 60
  113. # The time in between bisects to sleep (in seconds)
  114. # Can be less than SLEEP_TIME since bisects do more work
  115. # in between boots. (default 60)
  116. #BISECT_SLEEP_TIME = 60
  117. # Build without doing a make mrproper, or removing .config
  118. # (default 0)
  119. #BUILD_NOCLEAN = 0
  120. # Reboot the target box on error (default 0)
  121. #REBOOT_ON_ERROR = 0
  122. # Power off the target on error (ignored if REBOOT_ON_ERROR is set)
  123. # (default 0)
  124. #POWEROFF_ON_ERROR = 0
  125. # Power off the target after all tests have completed successfully
  126. # (default 0)
  127. #POWEROFF_ON_SUCCESS = 0
  128. # Reboot the target after all test completed successfully (default 1)
  129. # (ignored if POWEROFF_ON_SUCCESS is set)
  130. #REBOOT_ON_SUCCESS = 1
  131. # In case there's isses with rebooting, you can specify this
  132. # to always powercycle after this amount of time after calling
  133. # reboot.
  134. # Note, POWERCYCLE_AFTER_REBOOT = 0 does NOT disable it. It just
  135. # makes it powercycle immediately after rebooting. Do not define
  136. # it if you do not want it.
  137. # (default undefined)
  138. #POWERCYCLE_AFTER_REBOOT = 5
  139. # In case there's isses with halting, you can specify this
  140. # to always poweroff after this amount of time after calling
  141. # halt.
  142. # Note, POWEROFF_AFTER_HALT = 0 does NOT disable it. It just
  143. # makes it poweroff immediately after halting. Do not define
  144. # it if you do not want it.
  145. # (default undefined)
  146. #POWEROFF_AFTER_HALT = 20
  147. # Stop testing if a build fails. If set, the script will end if
  148. # a failure is detected, otherwise it will save off the .config,
  149. # dmesg and bootlog in a directory called
  150. # MACHINE-TEST_TYPE_BUILD_TYPE-fail-yyyymmddhhmmss
  151. # if the STORE_FAILURES directory is set.
  152. # (default 1)
  153. # Note, even if this is set to zero, there are some errors that still
  154. # stop the tests.
  155. #DIE_ON_FAILURE = 1
  156. # Directory to store failure directories on failure. If this is not
  157. # set, DIE_ON_FAILURE=0 will not save off the .config, dmesg and
  158. # bootlog.
  159. #STORE_FAILURES = /home/test/failures
  160. # A script or command to power off the box (default undef)
  161. # Needed for POWEROFF_ON_ERROR and SUCCESS
  162. # Example for digital loggers power switch:
  163. #POWER_OFF = wget --no-proxy -O /dev/null -q --auth-no-challenge 'http://admin:admin@power/outlet?5=OFF'
  164. # Example for a virtual guest call "Guest".
  165. #POWER_OFF = virsh list | grep '\<GuestF12\>' | awk '{printf ("%d", $1)}' | xargs virsh destroy
  166. # Any build options for the make (default "")
  167. #BUILD_OPTIONS = -j20
  168. # Optional log file to write the status (recommended)
  169. # (default undef)
  170. #LOG_FILE = /home/test/logfiles/target.log
  171. # Remove old logfile if it exists before starting all tests.
  172. # (default 0)
  173. #CLEAR_LOG = 0
  174. # Test to run if there is a successful boot and TEST_TYPE is test.
  175. # Must exit with 0 on success and non zero on error
  176. # default (undef)
  177. #TEST = ssh user@machine /root/run_test
  178. #TEST[1] = ssh root@mxtest /root/run_test
  179. # The min config that is needed to build for the machine
  180. # A nice way to get this to work, is to do a "lsmod > mymods" on the target
  181. # copy it to the build server, and then run "make LSMOD=mymods localyesconfig".
  182. # Then copy all the options that are set: "grep '^CONFIG' > /home/test/config-min"
  183. #
  184. # You might want to set:
  185. # CONFIG_CMDLINE="<your options here>"
  186. # randconfig may set the above and override your real command
  187. # line options.
  188. # (default undef)
  189. #MIN_CONFIG = /home/test/config-min
  190. # Sometimes there's options that just break the boot and
  191. # you do not care about. Here are a few:
  192. # # CONFIG_STAGING is not set
  193. # Staging drivers are horrible, and can break the build.
  194. # # CONFIG_SCSI_DEBUG is not set
  195. # SCSI_DEBUG may change your root partition
  196. # # CONFIG_KGDB_SERIAL_CONSOLE is not set
  197. # KGDB may cause oops waiting for a connection that's not there.
  198. # This option points to the file containing config options that will be prepended
  199. # to the MIN_CONFIG (or be the MIN_CONFIG if it is not set)
  200. # before running it through randconfig
  201. # (default undef)
  202. #ADD_CONFIG = /home/test/config-broken
  203. #### Per test run options ####
  204. # These are options are per build only. The only exist with the [x]
  205. # syntax, and there is no general option.
  206. #
  207. # All are optional and undef by default
  208. #
  209. # CHECKOUT[x] = branch
  210. #
  211. # If the BUILD_DIR is a git repository, then you can set this option
  212. # to checkout the given branch before running the TEST. If you
  213. # specify this for the first run, that branch will be used for
  214. # all preceding tests until a new CHECKOUT[x] is set.
  215. #
  216. # For TEST_TYPE[x] = patchcheck
  217. #
  218. # This expects the BUILD_DIR to be a git repository, and
  219. # will checkout the PATCHCHECK_START[x].
  220. #
  221. # PATCHCHECK_START[x] is required and is the first patch to
  222. # test (the SHA1 of the commit).
  223. #
  224. # PATCHCHECK_END[x] is the last patch to check (default HEAD)
  225. #
  226. # PATCHCHECK_TYPE[x] is required and is the type of test to run:
  227. # build, boot, test.
  228. #
  229. # Note, the build test will look for warnings, if a warning occurred
  230. # in a file that a commit touches, the build will fail.
  231. #
  232. # If BUILD_NOCLEAN is set, then make mrproper will not be run on
  233. # any of the builds, just like all other TEST_TYPE tests. But
  234. # what makes patchcheck different from the other tests, is if
  235. # BUILD_NOCLEAN is not set, only the first and last patch run
  236. # make mrproper. This helps speed up the test.
  237. #
  238. # Example:
  239. # TEST_TYPE[1] = patchcheck
  240. # CHECKOUT[1] = mybranch
  241. # PATCHCHECK_TYPE[1] = boot
  242. # PATCHCHECK_START[1] = 747e94ae3d1b4c9bf5380e569f614eb9040b79e7
  243. # PATCHCHEKC_END[1] = b8b2663bd7c9da04ac804659b9f617c199d0252c
  244. #
  245. #
  246. # For TEST_TYPE[x] = bisect
  247. #
  248. # You can specify a git bisect if the BUILD_DIR is a git repository.
  249. # The MIN_CONFIG will be used for all builds of the bisect. The build type
  250. # used for bisecting is oldconfig.
  251. #
  252. # BISECT_TYPE[x] is the type of test to perform:
  253. # build - bad fails to build
  254. # boot - bad builds but fails to boot
  255. # test - bad boots but fails a test
  256. #
  257. # BISECT_GOOD[x] is the commit (SHA1) to label as good
  258. # BISECT_BAD[x] is the commit to label as bad
  259. #
  260. # The above three options are required for a bisect operation.
  261. #
  262. # BISECT_REPLAY[x] = /path/to/replay/file (optional, default undefined)
  263. #
  264. # If an operation failed in the bisect that was not expected to
  265. # fail. Then the test ends. The state of the BUILD_DIR will be
  266. # left off at where the failur occurred. You can examine the
  267. # reason for the failure, and perhaps even find a git commit
  268. # that would work to continue with. You can run:
  269. #
  270. # git bisect log > /path/to/replay/file
  271. #
  272. # and if BISECT_REPLAY[x] is set, the test will run git bisect replay
  273. # before continuing with the bisect.
  274. #
  275. # BISECT_START[x] = commit (optional, default undefined)
  276. #
  277. # As with BISECT_REPLAY[x], if the test failed on a commit that
  278. # just happen to have a bad commit in the middle of the bisect,
  279. # and you need to skip it. If BISECT_START[x] is defined, it
  280. # will checkout that commit before continuing with the bisect.
  281. #
  282. # Note, BISECT_REPLAY[x] is executed before BISECT_START[x].
  283. #
  284. # BISECT_REVERSE[x] = 1 (optional, default 0)
  285. #
  286. # In those strange instances where it was broken forever
  287. # and you are trying to find where it started to work!
  288. # Set BISECT_GOOD[x] to the commit that was last known to fail
  289. # Set BISECT_BAD[x] to the commit that is known where it started
  290. # to work. With BISECT_REVERSE[x] = 1, The test will consider
  291. # failures as good, and success as bad.
  292. #
  293. # BISECT_CHECK[x] = 1 (optional, default 0)
  294. #
  295. # Just to be sure the good is good and bad is bad, setting
  296. # BISECT_CHECK[x] to 1 will start the bisect by first checking
  297. # out BISECT_BAD[x] and makes sure it fails, then it will check
  298. # out BISECT_GOOD[x] and makes sure it succeeds before starting
  299. # the bisect (it works for BISECT_REVERSE[x] too).
  300. #
  301. # You can limit the test to just check BISECT_GOOD[x] or
  302. # BISECT_BAD[x] with BISECT_CHECK[x] = good or
  303. # BISECT_CHECK[x] = bad, respectively.
  304. #
  305. # Example:
  306. # TEST_TYPE[1] = bisect
  307. # BISECT_GOOD[1] = v2.6.36
  308. # BISECT_BAD[1] = b5153163ed580e00c67bdfecb02b2e3843817b3e
  309. # BISECT_TYPE[1] = build
  310. # MIN_CONFIG[1] = /home/test/config-bisect