linux/tools/testing
Linus Torvalds 5ed19574eb ktest updates for v7.1:
- Fix undef warning when WARNINGS_FILE is unset
 
   The check_buildlog() references WARNINGS_FILE even when it's not set. Perl
   triggers a warning in this case. Check if the WARNINGS_FILE is defined
   before checking if the file it represents exists.
 
 - Fix how LOG_FILE is resolved
 
   LOG_FILE is expanded immediately after the config file is parsed. If
   LOG_FILE depends on variables from the tests it will use stale values
   instead of using the test variables. Have LOG_FILE also resolve test
   variables.
 
 - Treat a undefined self reference variable as empty
 
   Variables can recursively include itself for appending. Currently, if the
   references itself and it is not defined, it leaves the variable in the
   define: "VAR = ${VAR} foo" keeps the ${VAR} around. Have it removed
   instead.
 
 - Fix clearing of variables per tests
 
   If a variable has a defined default, a test can not clear it by assigning
   the variable to empty. Fix this by clearing the variable for a test when
   the test config has that variable assigned to nothing.
 
 - Fix run_command() to catch stderr in the shell command parsing
 
   Switch to Perl list form open to use "sh -c" wrapper to run shell commands
   to have the log file catch shell parsing errors.
 
 - Fix console output during reboot cycle
 
   The POWER_CYCLE callback during reboot() can miss output from the next
   boot making ktest miss the boot string it was waiting for.
 
 - Add PRE_KTEST_DIE for PRE_KTEST failures
 
   If the command for PRE_KTEST fails, ktest does not fail (this was by
   design as this command was used to add patches that may or may not apply).
   Add PRE_KTEST_DIE value to force ktest to fail if PRE_KTEST fails.
 
 - Run POST_KTEST hooks on failure and cancellation
 
   PRE_KTEST always runs before a ktest test, have POST_KTEST always run
   after a test even if the test fails or is cancelled to do the teardown of
   PRE_KTEST.
 
 -- Add a --dry-run mode
 
   Add --dry-run to parse the config, print the results and exit without
   running any of the tests.
 
 -- Store failures from the dodie() path as well
 
   The STORE_FAILURES saves the logs on failure, but there's failure paths
   that miss storing. Perform STORE_FAILURES in dodie() to capture these
   failures too.
 -----BEGIN PGP SIGNATURE-----
 
 iIoEABYKADIWIQRRSw7ePDh/lE+zeZMp5XQQmuv6qgUCad4fRRQccm9zdGVkdEBn
 b29kbWlzLm9yZwAKCRAp5XQQmuv6qrXQAQDoofo6x7qfV0/5XZ6CbhuowktU070Z
 35btop9+X1MYtAD/exkiotwrC34tQndU8bChjTTRlC48WCUBmMikBEohvQM=
 =lljo
 -----END PGP SIGNATURE-----

Merge tag 'ktest-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest

Pull ktest updates from Steven Rostedt:

 - Fix undef warning when WARNINGS_FILE is unset

   The check_buildlog() references WARNINGS_FILE even when it's not set.
   Perl triggers a warning in this case. Check if the WARNINGS_FILE is
   defined before checking if the file it represents exists.

 - Fix how LOG_FILE is resolved

   LOG_FILE is expanded immediately after the config file is parsed. If
   LOG_FILE depends on variables from the tests it will use stale values
   instead of using the test variables. Have LOG_FILE also resolve test
   variables.

 - Treat a undefined self reference variable as empty

   Variables can recursively include itself for appending. Currently, if
   the references itself and it is not defined, it leaves the variable
   in the define: "VAR = ${VAR} foo" keeps the ${VAR} around. Have it
   removed instead.

 - Fix clearing of variables per tests

   If a variable has a defined default, a test can not clear it by
   assigning the variable to empty. Fix this by clearing the variable
   for a test when the test config has that variable assigned to
   nothing.

 - Fix run_command() to catch stderr in the shell command parsing

   Switch to Perl list form open to use "sh -c" wrapper to run shell
   commands to have the log file catch shell parsing errors.

 - Fix console output during reboot cycle

   The POWER_CYCLE callback during reboot() can miss output from the
   next boot making ktest miss the boot string it was waiting for.

 - Add PRE_KTEST_DIE for PRE_KTEST failures

   If the command for PRE_KTEST fails, ktest does not fail (this was by
   design as this command was used to add patches that may or may not
   apply). Add PRE_KTEST_DIE value to force ktest to fail if PRE_KTEST
   fails.

 - Run POST_KTEST hooks on failure and cancellation

   PRE_KTEST always runs before a ktest test, have POST_KTEST always run
   after a test even if the test fails or is cancelled to do the
   teardown of PRE_KTEST.

 - Add a --dry-run mode

   Add --dry-run to parse the config, print the results and exit without
   running any of the tests.

 - Store failures from the dodie() path as well

   The STORE_FAILURES saves the logs on failure, but there's failure
   paths that miss storing. Perform STORE_FAILURES in dodie() to capture
   these failures too.

* tag 'ktest-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest:
  ktest: Store failure logs also in fatal paths
  ktest: Add a --dry-run mode
  ktest: Run POST_KTEST hooks on failure and cancellation
  ktest: Add PRE_KTEST_DIE for PRE_KTEST failures
  ktest: Stop dropping console output during power-cycle reboot
  ktest: Run commands through list-form shell open
  ktest: Honor empty per-test option overrides
  ktest: Treat undefined self-reference as empty
  ktest: Resolve LOG_FILE in test option context
  ktest: Avoid undef warning when WARNINGS_FILE is unset
2026-04-15 17:11:22 -07:00
..
crypto/chacha20-s390
cxl cxl changes for v7.0 2026-02-12 16:33:05 -08:00
fault-injection
ktest ktest: Store failure logs also in fatal paths 2026-03-18 16:00:54 -04:00
kunit linux_kselftest-kunit-7.1-rc1 2026-04-14 17:39:42 -07:00
memblock
nvdimm
radix-tree maple_tree: use maple copy node for mas_wr_split() 2026-04-05 13:52:56 -07:00
rbtree
scatterlist
selftests ring-buffer updates for 7.1: 2026-04-15 15:59:46 -07:00
shared tools: Update context analysis macros in compiler_types.h 2026-01-28 09:25:45 +01:00
vma mm: add mmap_action_map_kernel_pages[_full]() 2026-04-05 13:53:45 -07:00
vsock vsock/test: fix send_buf()/recv_buf() EINTR handling 2026-04-06 18:46:03 -07:00