diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-16 20:53:27 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-16 20:53:27 -0500 |
| commit | 5d48421be3c8a9f753d61b826ecb3ad287d867c0 (patch) | |
| tree | 69a20e537b5b76643484fd4e9b1e17e1eda60fb3 /tools/testing/ktest/sample.conf | |
| parent | 6e03db2ba17b5d32431b4c2012e6a41153318a90 (diff) | |
| parent | be405f95f0a090d1dfc26a5bb4d781c00f34479c (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest:
ktest: Add INGORE_ERRORS to ignore warnings in boot up
ktest: Still do reboot even for REBOOT_TYPE = script
ktest: Fix compare script to test if options are not documented
ktest: Detect typos in option names
ktest: Have all values be set by defaults
ktest: Change initialization of defaults hash to perl format
ktest: Add options SWITCH_TO_GOOD and SWITCH_TO_TEST
ktest: Allow overriding bisect test results
ktest: Evaluate options before processing them
ktest: Evaluate $KERNEL_VERSION in both install and post install
ktest: Only ask options needed for install
ktest: When creating a new config, ask for BUILD_OPTIONS
ktest: Do not ask for some options if the only test is build
ktest: Ask for type of test when creating a new config
ktest: Allow bisect test to restart where it left off
ktest: When creating new config, allow the use of ${THIS_DIR}
ktest: Add default for ssh-user, build-target and target-image
ktest: Allow success logs to be stored
ktest: Save test output
Diffstat (limited to 'tools/testing/ktest/sample.conf')
| -rw-r--r-- | tools/testing/ktest/sample.conf | 87 |
1 files changed, 86 insertions, 1 deletions
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf index 553c06b7d6f2..5ea04c6a71bf 100644 --- a/tools/testing/ktest/sample.conf +++ b/tools/testing/ktest/sample.conf | |||
| @@ -346,7 +346,10 @@ | |||
| 346 | #GRUB_MENU = Test Kernel | 346 | #GRUB_MENU = Test Kernel |
| 347 | 347 | ||
| 348 | # A script to reboot the target into the test kernel | 348 | # A script to reboot the target into the test kernel |
| 349 | # (Only mandatory if REBOOT_TYPE = script) | 349 | # This and SWITCH_TO_TEST are about the same, except |
| 350 | # SWITCH_TO_TEST is run even for REBOOT_TYPE = grub. | ||
| 351 | # This may be left undefined. | ||
| 352 | # (default undefined) | ||
| 350 | #REBOOT_SCRIPT = | 353 | #REBOOT_SCRIPT = |
| 351 | 354 | ||
| 352 | #### Optional Config Options (all have defaults) #### | 355 | #### Optional Config Options (all have defaults) #### |
| @@ -468,6 +471,27 @@ | |||
| 468 | # The test will not modify that file. | 471 | # The test will not modify that file. |
| 469 | #REBOOT_TYPE = grub | 472 | #REBOOT_TYPE = grub |
| 470 | 473 | ||
| 474 | # If you are using a machine that doesn't boot with grub, and | ||
| 475 | # perhaps gets its kernel from a remote server (tftp), then | ||
| 476 | # you can use this option to update the target image with the | ||
| 477 | # test image. | ||
| 478 | # | ||
| 479 | # You could also do the same with POST_INSTALL, but the difference | ||
| 480 | # between that option and this option is that POST_INSTALL runs | ||
| 481 | # after the install, where this one runs just before a reboot. | ||
| 482 | # (default undefined) | ||
| 483 | #SWITCH_TO_TEST = cp ${OUTPUT_DIR}/${BUILD_TARGET} ${TARGET_IMAGE} | ||
| 484 | |||
| 485 | # If you are using a machine that doesn't boot with grub, and | ||
| 486 | # perhaps gets its kernel from a remote server (tftp), then | ||
| 487 | # you can use this option to update the target image with the | ||
| 488 | # the known good image to reboot safely back into. | ||
| 489 | # | ||
| 490 | # This option holds a command that will execute before needing | ||
| 491 | # to reboot to a good known image. | ||
| 492 | # (default undefined) | ||
| 493 | #SWITCH_TO_GOOD = ssh ${SSH_USER}/${MACHINE} cp good_image ${TARGET_IMAGE} | ||
| 494 | |||
| 471 | # The min config that is needed to build for the machine | 495 | # The min config that is needed to build for the machine |
| 472 | # A nice way to create this is with the following: | 496 | # A nice way to create this is with the following: |
| 473 | # | 497 | # |
| @@ -589,6 +613,12 @@ | |||
| 589 | # (default undefined) | 613 | # (default undefined) |
| 590 | #STORE_FAILURES = /home/test/failures | 614 | #STORE_FAILURES = /home/test/failures |
| 591 | 615 | ||
| 616 | # Directory to store success directories on success. If this is not | ||
| 617 | # set, the .config, dmesg and bootlog will not be saved if a | ||
| 618 | # test succeeds. | ||
| 619 | # (default undefined) | ||
| 620 | #STORE_SUCCESSES = /home/test/successes | ||
| 621 | |||
| 592 | # Build without doing a make mrproper, or removing .config | 622 | # Build without doing a make mrproper, or removing .config |
| 593 | # (default 0) | 623 | # (default 0) |
| 594 | #BUILD_NOCLEAN = 0 | 624 | #BUILD_NOCLEAN = 0 |
| @@ -700,6 +730,25 @@ | |||
| 700 | # (default 1) | 730 | # (default 1) |
| 701 | #DETECT_TRIPLE_FAULT = 0 | 731 | #DETECT_TRIPLE_FAULT = 0 |
| 702 | 732 | ||
| 733 | # All options in the config file should be either used by ktest | ||
| 734 | # or could be used within a value of another option. If an option | ||
| 735 | # in the config file is not used, ktest will warn about it and ask | ||
| 736 | # if you want to continue. | ||
| 737 | # | ||
| 738 | # If you don't care if there are non-used options, enable this | ||
| 739 | # option. Be careful though, a non-used option is usually a sign | ||
| 740 | # of an option name being typed incorrectly. | ||
| 741 | # (default 0) | ||
| 742 | #IGNORE_UNUSED = 1 | ||
| 743 | |||
| 744 | # When testing a kernel that happens to have WARNINGs, and call | ||
| 745 | # traces, ktest.pl will detect these and fail a boot or test run | ||
| 746 | # due to warnings. By setting this option, ktest will ignore | ||
| 747 | # call traces, and will not fail a test if the kernel produces | ||
| 748 | # an oops. Use this option with care. | ||
| 749 | # (default 0) | ||
| 750 | #IGNORE_ERRORS = 1 | ||
| 751 | |||
| 703 | #### Per test run options #### | 752 | #### Per test run options #### |
| 704 | # The following options are only allowed in TEST_START sections. | 753 | # The following options are only allowed in TEST_START sections. |
| 705 | # They are ignored in the DEFAULTS sections. | 754 | # They are ignored in the DEFAULTS sections. |
| @@ -862,6 +911,42 @@ | |||
| 862 | # BISECT_BAD with BISECT_CHECK = good or | 911 | # BISECT_BAD with BISECT_CHECK = good or |
| 863 | # BISECT_CHECK = bad, respectively. | 912 | # BISECT_CHECK = bad, respectively. |
| 864 | # | 913 | # |
| 914 | # BISECT_RET_GOOD = 0 (optional, default undefined) | ||
| 915 | # | ||
| 916 | # In case the specificed test returns something other than just | ||
| 917 | # 0 for good, and non-zero for bad, you can override 0 being | ||
| 918 | # good by defining BISECT_RET_GOOD. | ||
| 919 | # | ||
| 920 | # BISECT_RET_BAD = 1 (optional, default undefined) | ||
| 921 | # | ||
| 922 | # In case the specificed test returns something other than just | ||
| 923 | # 0 for good, and non-zero for bad, you can override non-zero being | ||
| 924 | # bad by defining BISECT_RET_BAD. | ||
| 925 | # | ||
| 926 | # BISECT_RET_ABORT = 255 (optional, default undefined) | ||
| 927 | # | ||
| 928 | # If you need to abort the bisect if the test discovers something | ||
| 929 | # that was wrong, you can define BISECT_RET_ABORT to be the error | ||
| 930 | # code returned by the test in order to abort the bisect. | ||
| 931 | # | ||
| 932 | # BISECT_RET_SKIP = 2 (optional, default undefined) | ||
| 933 | # | ||
| 934 | # If the test detects that the current commit is neither good | ||
| 935 | # nor bad, but something else happened (another bug detected) | ||
| 936 | # you can specify BISECT_RET_SKIP to an error code that the | ||
| 937 | # test returns when it should skip the current commit. | ||
| 938 | # | ||
| 939 | # BISECT_RET_DEFAULT = good (optional, default undefined) | ||
| 940 | # | ||
| 941 | # You can override the default of what to do when the above | ||
| 942 | # options are not hit. This may be one of, "good", "bad", | ||
| 943 | # "abort" or "skip" (without the quotes). | ||
| 944 | # | ||
| 945 | # Note, if you do not define any of the previous BISECT_RET_* | ||
| 946 | # and define BISECT_RET_DEFAULT, all bisects results will do | ||
| 947 | # what the BISECT_RET_DEFAULT has. | ||
| 948 | # | ||
| 949 | # | ||
| 865 | # Example: | 950 | # Example: |
| 866 | # TEST_START | 951 | # TEST_START |
| 867 | # TEST_TYPE = bisect | 952 | # TEST_TYPE = bisect |
