diff options
Diffstat (limited to 'tools/testing/ktest/sample.conf')
-rw-r--r-- | tools/testing/ktest/sample.conf | 90 |
1 files changed, 88 insertions, 2 deletions
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf index de28a0a3b8fc..0a290fb4cd5e 100644 --- a/tools/testing/ktest/sample.conf +++ b/tools/testing/ktest/sample.conf | |||
@@ -332,8 +332,18 @@ | |||
332 | # from other linux builds on the system. | 332 | # from other linux builds on the system. |
333 | #LOCALVERSION = -test | 333 | #LOCALVERSION = -test |
334 | 334 | ||
335 | # For REBOOT_TYPE = grub2, you must specify where the grub.cfg | ||
336 | # file is. This is the file that is searched to find the menu | ||
337 | # option to boot to with GRUB_REBOOT | ||
338 | #GRUB_FILE = /boot/grub2/grub.cfg | ||
339 | |||
340 | # The tool for REBOOT_TYPE = grub2 to set the next reboot kernel | ||
341 | # to boot into (one shot mode). | ||
342 | # (default grub2_reboot) | ||
343 | #GRUB_REBOOT = grub2_reboot | ||
344 | |||
335 | # The grub title name for the test kernel to boot | 345 | # The grub title name for the test kernel to boot |
336 | # (Only mandatory if REBOOT_TYPE = grub) | 346 | # (Only mandatory if REBOOT_TYPE = grub or grub2) |
337 | # | 347 | # |
338 | # Note, ktest.pl will not update the grub menu.lst, you need to | 348 | # Note, ktest.pl will not update the grub menu.lst, you need to |
339 | # manually add an option for the test. ktest.pl will search | 349 | # manually add an option for the test. ktest.pl will search |
@@ -343,8 +353,33 @@ | |||
343 | # For example, if in the /boot/grub/menu.lst the test kernel title has: | 353 | # For example, if in the /boot/grub/menu.lst the test kernel title has: |
344 | # title Test Kernel | 354 | # title Test Kernel |
345 | # kernel vmlinuz-test | 355 | # kernel vmlinuz-test |
356 | # | ||
357 | # For grub2, a search of top level "menuentry"s are done. No | ||
358 | # submenu is searched. The menu is found by searching for the | ||
359 | # contents of GRUB_MENU in the line that starts with "menuentry". | ||
360 | # You may want to include the quotes around the option. For example: | ||
361 | # for: menuentry 'Test Kernel' | ||
362 | # do a: GRUB_MENU = 'Test Kernel' | ||
363 | # For customizing, add your entry in /etc/grub.d/40_custom. | ||
364 | # | ||
346 | #GRUB_MENU = Test Kernel | 365 | #GRUB_MENU = Test Kernel |
347 | 366 | ||
367 | # For REBOOT_TYPE = syslinux, the name of the syslinux executable | ||
368 | # (on the target) to use to set up the next reboot to boot the | ||
369 | # test kernel. | ||
370 | # (default extlinux) | ||
371 | #SYSLINUX = syslinux | ||
372 | |||
373 | # For REBOOT_TYPE = syslinux, the path that is passed to to the | ||
374 | # syslinux command where syslinux is installed. | ||
375 | # (default /boot/extlinux) | ||
376 | #SYSLINUX_PATH = /boot/syslinux | ||
377 | |||
378 | # For REBOOT_TYPE = syslinux, the syslinux label that references the | ||
379 | # test kernel in the syslinux config file. | ||
380 | # (default undefined) | ||
381 | #SYSLINUX_LABEL = "test-kernel" | ||
382 | |||
348 | # A script to reboot the target into the test kernel | 383 | # A script to reboot the target into the test kernel |
349 | # This and SWITCH_TO_TEST are about the same, except | 384 | # This and SWITCH_TO_TEST are about the same, except |
350 | # SWITCH_TO_TEST is run even for REBOOT_TYPE = grub. | 385 | # SWITCH_TO_TEST is run even for REBOOT_TYPE = grub. |
@@ -497,7 +532,7 @@ | |||
497 | #POST_BUILD_DIE = 1 | 532 | #POST_BUILD_DIE = 1 |
498 | 533 | ||
499 | # Way to reboot the box to the test kernel. | 534 | # Way to reboot the box to the test kernel. |
500 | # Only valid options so far are "grub" and "script" | 535 | # Only valid options so far are "grub", "grub2", "syslinux" and "script" |
501 | # (default grub) | 536 | # (default grub) |
502 | # If you specify grub, it will assume grub version 1 | 537 | # If you specify grub, it will assume grub version 1 |
503 | # and will search in /boot/grub/menu.lst for the title $GRUB_MENU | 538 | # and will search in /boot/grub/menu.lst for the title $GRUB_MENU |
@@ -505,6 +540,13 @@ | |||
505 | # your setup, then specify "script" and have a command or script | 540 | # your setup, then specify "script" and have a command or script |
506 | # specified in REBOOT_SCRIPT to boot to the target. | 541 | # specified in REBOOT_SCRIPT to boot to the target. |
507 | # | 542 | # |
543 | # For REBOOT_TYPE = grub2, you must define both GRUB_MENU and | ||
544 | # GRUB_FILE. | ||
545 | # | ||
546 | # For REBOOT_TYPE = syslinux, you must define SYSLINUX_LABEL, and | ||
547 | # perhaps modify SYSLINUX (default extlinux) and SYSLINUX_PATH | ||
548 | # (default /boot/extlinux) | ||
549 | # | ||
508 | # The entry in /boot/grub/menu.lst must be entered in manually. | 550 | # The entry in /boot/grub/menu.lst must be entered in manually. |
509 | # The test will not modify that file. | 551 | # The test will not modify that file. |
510 | #REBOOT_TYPE = grub | 552 | #REBOOT_TYPE = grub |
@@ -751,6 +793,20 @@ | |||
751 | # Example for a virtual guest call "Guest". | 793 | # Example for a virtual guest call "Guest". |
752 | #POWER_OFF = virsh destroy Guest | 794 | #POWER_OFF = virsh destroy Guest |
753 | 795 | ||
796 | # To have the build fail on "new" warnings, create a file that | ||
797 | # contains a list of all known warnings (they must match exactly | ||
798 | # to the line with 'warning:', 'error:' or 'Error:'. If the option | ||
799 | # WARNINGS_FILE is set, then that file will be read, and if the | ||
800 | # build detects a warning, it will examine this file and if the | ||
801 | # warning does not exist in it, it will fail the build. | ||
802 | # | ||
803 | # Note, if this option is defined to a file that does not exist | ||
804 | # then any warning will fail the build. | ||
805 | # (see make_warnings_file below) | ||
806 | # | ||
807 | # (optional, default undefined) | ||
808 | #WARNINGS_FILE = ${OUTPUT_DIR}/warnings_file | ||
809 | |||
754 | # The way to execute a command on the target | 810 | # The way to execute a command on the target |
755 | # (default ssh $SSH_USER@$MACHINE $SSH_COMMAND";) | 811 | # (default ssh $SSH_USER@$MACHINE $SSH_COMMAND";) |
756 | # The variables SSH_USER, MACHINE and SSH_COMMAND are defined | 812 | # The variables SSH_USER, MACHINE and SSH_COMMAND are defined |
@@ -1180,3 +1236,33 @@ | |||
1180 | # MIN_CONFIG_TYPE = test | 1236 | # MIN_CONFIG_TYPE = test |
1181 | # TEST = ssh ${USER}@${MACHINE} echo hi | 1237 | # TEST = ssh ${USER}@${MACHINE} echo hi |
1182 | # | 1238 | # |
1239 | # | ||
1240 | # | ||
1241 | # | ||
1242 | # For TEST_TYPE = make_warnings_file | ||
1243 | # | ||
1244 | # If you want the build to fail when a new warning is discovered | ||
1245 | # you set the WARNINGS_FILE to point to a file of known warnings. | ||
1246 | # | ||
1247 | # The test "make_warnings_file" will let you create a new warnings | ||
1248 | # file before you run other tests, like patchcheck. | ||
1249 | # | ||
1250 | # What this test does is to run just a build, you still need to | ||
1251 | # specify BUILD_TYPE to tell the test what type of config to use. | ||
1252 | # A BUILD_TYPE of nobuild will fail this test. | ||
1253 | # | ||
1254 | # The test will do the build and scan for all warnings. Any warning | ||
1255 | # it discovers will be saved in the WARNINGS_FILE (required) option. | ||
1256 | # | ||
1257 | # It is recommended (but not necessary) to make sure BUILD_NOCLEAN is | ||
1258 | # off, so that a full build is done (make mrproper is performed). | ||
1259 | # That way, all warnings will be captured. | ||
1260 | # | ||
1261 | # Example: | ||
1262 | # | ||
1263 | # TEST_TYPE = make_warnings_file | ||
1264 | # WARNINGS_FILE = ${OUTPUT_DIR} | ||
1265 | # BUILD_TYPE = useconfig:oldconfig | ||
1266 | # CHECKOUT = v3.8 | ||
1267 | # BUILD_NOCLEAN = 0 | ||
1268 | # | ||