qemu-cr16/tests/functional/qemu_test
Aditya Gupta 945fd61c06
tests/functional: Add test for fadump in PSeries
Add testcases for testing fadump with PSeries and PSeries+KVM
combinations

It tests if fadump is successfully detected and registered in the first
kernel boot. Then crashes the kernel, and verifies whether we have a
/proc/vmcore in the 2nd boot

Also introduce 'wait_for_regex_console_pattern' to check for cases where
there is a single success message, but can have multiple failure
messages.

This is particularly useful for cases such as fadump, where the
success message is
    "Reserved 1024MB ... successfully"
But at the same point, it can fail with multiple errors such as
    "Not supported" or "Allocation failed"

'wait_for_regex_console_pattern' also has a timeout, for cases when we
know the success/failure should appear in a short amount of time,
instead of waiting for the much longer test timeout, such as kernels
with support of fadump will print the success/failure in earlyboot of
the kernel, while kernel without support of fadump won't print anything
for long time, and without a timeout the testcase keeps waiting till
longer test timeout

Signed-off-by: Aditya Gupta <adityag@linux.ibm.com>
Tested-by: Shivang Upadhyay <shivangu@linux.ibm.com>
Link: https://lore.kernel.org/qemu-devel/20251021134823.1861675-8-adityag@linux.ibm.com
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
2025-10-23 17:37:42 +05:30
..
__init__.py tests/functional: Add decorator to skip test on missing env vars 2025-10-07 07:33:40 +01:00
archive.py tests/functional: replace 'run_cmd' with subprocess helpers 2024-12-17 19:39:53 +01:00
asset.py tests/functional: Set current time stamp of assets when using them 2025-10-16 17:44:31 +02:00
cmd.py tests/functional: fix infinite loop on console EOF 2025-09-09 12:41:18 +02:00
config.py tests/functional: Introduce the dso_suffix() helper 2025-03-10 10:30:00 +00:00
decorators.py tests/functional: Add decorator to skip test on missing env vars 2025-10-07 07:33:40 +01:00
gdb.py tests/functional: Add GDB class 2025-10-07 07:33:40 +01:00
linuxkernel.py tests/functional: Add test for fadump in PSeries 2025-10-23 17:37:42 +05:30
ports.py tests/functional: Use more fine-grained locking when looking for free ports 2025-08-27 09:46:54 +02:00
tesseract.py tests/functional: replace 'run_cmd' with subprocess helpers 2024-12-17 19:39:53 +01:00
testcase.py tests/functional: purge scratch dir on test startup 2025-09-09 15:45:33 +02:00
tuxruntest.py tests/functional: Remove unnecessary import statements 2025-04-23 07:51:25 +02:00
uncompress.py tests/functional: Remove unnecessary import statements 2025-04-23 07:51:25 +02:00
utils.py tests/functional: Add a helper function for retrieving the hostfwd port 2024-12-17 20:33:29 +01:00