hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/tools/testing/ktest/sample.conf
....@@ -10,7 +10,7 @@
1010 #
1111
1212 # Options set in the beginning of the file are considered to be
13
-# default options. These options can be overriden by test specific
13
+# default options. These options can be overridden by test specific
1414 # options, with the following exceptions:
1515 #
1616 # LOG_FILE
....@@ -204,7 +204,7 @@
204204 #
205205 # This config file can also contain "config variables".
206206 # These are assigned with ":=" instead of the ktest option
207
-# assigment "=".
207
+# assignment "=".
208208 #
209209 # The difference between ktest options and config variables
210210 # is that config variables can be used multiple times,
....@@ -263,7 +263,7 @@
263263 #### Using options in other options ####
264264 #
265265 # Options that are defined in the config file may also be used
266
-# by other options. All options are evaulated at time of
266
+# by other options. All options are evaluated at time of
267267 # use (except that config variables are evaluated at config
268268 # processing time).
269269 #
....@@ -349,13 +349,13 @@
349349 # option to boot to with GRUB_REBOOT
350350 #GRUB_FILE = /boot/grub2/grub.cfg
351351
352
-# The tool for REBOOT_TYPE = grub2 to set the next reboot kernel
352
+# The tool for REBOOT_TYPE = grub2 or grub2bls to set the next reboot kernel
353353 # to boot into (one shot mode).
354354 # (default grub2_reboot)
355355 #GRUB_REBOOT = grub2_reboot
356356
357357 # The grub title name for the test kernel to boot
358
-# (Only mandatory if REBOOT_TYPE = grub or grub2)
358
+# (Only mandatory if REBOOT_TYPE = grub or grub2 or grub2bls)
359359 #
360360 # Note, ktest.pl will not update the grub menu.lst, you need to
361361 # manually add an option for the test. ktest.pl will search
....@@ -373,6 +373,10 @@
373373 # for: menuentry 'Test Kernel'
374374 # do a: GRUB_MENU = 'Test Kernel'
375375 # For customizing, add your entry in /etc/grub.d/40_custom.
376
+#
377
+# For grub2bls, a search of "title"s are done. The menu is found
378
+# by searching for the contents of GRUB_MENU in the line that starts
379
+# with "title".
376380 #
377381 #GRUB_MENU = Test Kernel
378382
....@@ -438,6 +442,19 @@
438442 # Users can cancel the test by Ctrl^C
439443 # (default 0)
440444 #EMAIL_WHEN_CANCELED = 1
445
+#
446
+# If a test ends with an error and EMAIL_ON_ERROR is set as well
447
+# as a LOG_FILE is defined, then the log of the failing test will
448
+# be included in the email that is sent.
449
+# It is possible that the log may be very large, in which case,
450
+# only the last amount of the log should be sent. To limit how
451
+# much of the log is sent, set MAIL_MAX_SIZE. This will be the
452
+# size in bytes of the last portion of the log of the failed
453
+# test file. That is, if this is set to 100000, then only the
454
+# last 100 thousand bytes of the log file will be included in
455
+# the email.
456
+# (default undef)
457
+#MAIL_MAX_SIZE = 1000000
441458
442459 # Start a test setup. If you leave this off, all options
443460 # will be default and the test will run once.
....@@ -479,6 +496,11 @@
479496 # default (undefined)
480497 #POST_KTEST = ${SSH} ~/dismantle_test
481498
499
+# If you want to remove the kernel entry in Boot Loader Specification (BLS)
500
+# environment, use kernel-install command.
501
+# Here's the example:
502
+#POST_KTEST = ssh root@Test "/usr/bin/kernel-install remove $KERNEL_VERSION"
503
+
482504 # The default test type (default test)
483505 # The test types may be:
484506 # build - only build the kernel, do nothing else
....@@ -496,7 +518,7 @@
496518 #TEST = ssh user@machine /root/run_test
497519
498520 # The build type is any make config type or special command
499
-# (default randconfig)
521
+# (default oldconfig)
500522 # nobuild - skip the clean and build step
501523 # useconfig:/path/to/config - use the given config and run
502524 # oldconfig on it.
....@@ -530,6 +552,11 @@
530552 # or on some systems:
531553 #POST_INSTALL = ssh user@target /sbin/dracut -f /boot/initramfs-test.img $KERNEL_VERSION
532554
555
+# If you want to add the kernel entry in Boot Loader Specification (BLS)
556
+# environment, use kernel-install command.
557
+# Here's the example:
558
+#POST_INSTALL = ssh root@Test "/usr/bin/kernel-install add $KERNEL_VERSION /boot/vmlinuz-$KERNEL_VERSION"
559
+
533560 # If for some reason you just want to boot the kernel and you do not
534561 # want the test to install anything new. For example, you may just want
535562 # to boot test the same kernel over and over and do not want to go through
....@@ -542,6 +569,11 @@
542569 #
543570 # default (undefined)
544571 #PRE_TEST = ${SSH} reboot_to_special_kernel
572
+
573
+# To kill the entire test if PRE_TEST is defined but fails set this
574
+# to 1.
575
+# (default 0)
576
+#PRE_TEST_DIE = 1
545577
546578 # If there is a command you want to run after the individual test case
547579 # completes, then you can set this option.
....@@ -592,6 +624,8 @@
592624 #
593625 # For REBOOT_TYPE = grub2, you must define both GRUB_MENU and
594626 # GRUB_FILE.
627
+#
628
+# For REBOOT_TYPE = grub2bls, you must define GRUB_MENU.
595629 #
596630 # For REBOOT_TYPE = syslinux, you must define SYSLINUX_LABEL, and
597631 # perhaps modify SYSLINUX (default extlinux) and SYSLINUX_PATH
....@@ -691,7 +725,7 @@
691725
692726 # Line to define a successful boot up in console output.
693727 # This is what the line contains, not the entire line. If you need
694
-# the entire line to match, then use regural expression syntax like:
728
+# the entire line to match, then use regular expression syntax like:
695729 # (do not add any quotes around it)
696730 #
697731 # SUCCESS_LINE = ^MyBox Login:$
....@@ -823,7 +857,7 @@
823857 # (ignored if POWEROFF_ON_SUCCESS is set)
824858 #REBOOT_ON_SUCCESS = 1
825859
826
-# In case there are isses with rebooting, you can specify this
860
+# In case there are issues with rebooting, you can specify this
827861 # to always powercycle after this amount of time after calling
828862 # reboot.
829863 # Note, POWERCYCLE_AFTER_REBOOT = 0 does NOT disable it. It just
....@@ -832,7 +866,7 @@
832866 # (default undefined)
833867 #POWERCYCLE_AFTER_REBOOT = 5
834868
835
-# In case there's isses with halting, you can specify this
869
+# In case there's issues with halting, you can specify this
836870 # to always poweroff after this amount of time after calling
837871 # halt.
838872 # Note, POWEROFF_AFTER_HALT = 0 does NOT disable it. It just
....@@ -886,6 +920,10 @@
886920 # (default ssh $SSH_USER@$MACHINE reboot)
887921 # The variables SSH_USER and MACHINE are defined.
888922 #REBOOT = ssh $SSH_USER@$MACHINE reboot
923
+
924
+# The return code of REBOOT
925
+# (default 255)
926
+#REBOOT_RETURN_CODE = 255
889927
890928 # The way triple faults are detected is by testing the kernel
891929 # banner. If the kernel banner for the kernel we are testing is
....@@ -952,7 +990,7 @@
952990 #
953991 # PATCHCHECK_START is required and is the first patch to
954992 # test (the SHA1 of the commit). You may also specify anything
955
-# that git checkout allows (branch name, tage, HEAD~3).
993
+# that git checkout allows (branch name, tag, HEAD~3).
956994 #
957995 # PATCHCHECK_END is the last patch to check (default HEAD)
958996 #
....@@ -974,7 +1012,7 @@
9741012 # IGNORE_WARNINGS is set for the given commit's sha1
9751013 #
9761014 # IGNORE_WARNINGS can be used to disable the failure of patchcheck
977
-# on a particuler commit (SHA1). You can add more than one commit
1015
+# on a particular commit (SHA1). You can add more than one commit
9781016 # by adding a list of SHA1s that are space delimited.
9791017 #
9801018 # If BUILD_NOCLEAN is set, then make mrproper will not be run on
....@@ -1073,7 +1111,7 @@
10731111 # whatever reason. (Can't reboot, want to inspect each iteration)
10741112 # Doing a BISECT_MANUAL will have the test wait for you to
10751113 # tell it if the test passed or failed after each iteration.
1076
-# This is basicall the same as running git bisect yourself
1114
+# This is basically the same as running git bisect yourself
10771115 # but ktest will rebuild and install the kernel for you.
10781116 #
10791117 # BISECT_CHECK = 1 (optional, default 0)
....@@ -1219,7 +1257,7 @@
12191257 #
12201258 # CONFIG_BISECT_EXEC (optional)
12211259 # The config bisect is a separate program that comes with ktest.pl.
1222
-# By befault, it will look for:
1260
+# By default, it will look for:
12231261 # `pwd`/config-bisect.pl # the location ktest.pl was executed from.
12241262 # If it does not find it there, it will look for:
12251263 # `dirname <ktest.pl>`/config-bisect.pl # The directory that holds ktest.pl