qemu-cr16/tests/functional/ppc64
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
..
meson.build tests/functional: Add test for fadump in PSeries 2025-10-23 17:37:42 +05:30
test_e500.py
test_fadump.py tests/functional: Add test for fadump in PSeries 2025-10-23 17:37:42 +05:30
test_hv.py
test_mac99.py
test_migration.py
test_powernv.py tests/powernv: Add PowerNV test for Power11 2025-09-28 23:22:07 +05:30
test_pseries.py
test_replay.py
test_reverse_debug.py tests/functional: Adapt arches to reverse_debugging w/o Avocado 2025-10-07 07:33:40 +01:00
test_tuxrun.py