qemu-cr16/tests/functional
Thomas Huth 6096dfa6c5 tests/functional/m68k: Use proper polling in the next-cube test
The next-cube tests currently sleep for 2 seconds to wait for the
guest's display to come up with the expected results. That's bad
since there is still a theoretical race left here, and since there
are two subtests, the whole test takes more than 4 seconds this way.

Looking at what the firmware does, there is a better way instead of
blindly waiting for two seconds: The firmware is writing some values
to the FPU registers during a test (and never touches them again
afterwards, so we can be sure about the final values), so we can
poll for the right values in those registers to know when we reached
a state when the display is initialized for sure. We just have to
also make sure to not look for text anymore that is only printed
after the FPU test has been done by the guest firmware.

This way the whole tests finishes in less than 1 second here, and
there should be no race condition here anymore.

Message-ID: <20250909074817.84661-1-thuth@redhat.com>
Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2025-09-23 11:32:27 +02:00
..
aarch64 * Silence warnings from the undefined-behaviour sanitizer 2025-09-11 12:41:01 +01:00
acpi-bits tests/functional: Convert the acpi-bits test into a standalone test 2024-09-04 11:14:33 +02:00
alpha tests/functional: Move alpha tests into architecture specific folder 2025-08-27 09:46:55 +02:00
arm tests/functional/arm: Update test ASPEED SDK v09.07 for AST2600 2025-09-09 11:16:26 +02:00
avr tests/functional: Move avr tests into architecture specific folder 2025-08-27 09:46:55 +02:00
generic tests/functional: Move the generic tests to a subfolder 2025-08-27 09:46:55 +02:00
hppa tests/functional: Move hppa tests into architecture specific folder 2025-08-27 09:46:55 +02:00
i386 tests/functional: Move i386 tests into architecture specific folder 2025-08-27 09:46:55 +02:00
loongarch64 tests/functional: Move loongarch64 tests into architecture specific folder 2025-08-27 09:46:55 +02:00
m68k tests/functional/m68k: Use proper polling in the next-cube test 2025-09-23 11:32:27 +02:00
microblaze tests/functional: Move microblaze tests into architecture specific folder 2025-08-27 09:46:55 +02:00
microblazeel tests/functional: Move microblaze tests into architecture specific folder 2025-08-27 09:46:55 +02:00
mips tests/functional: Move mips tests into target-specific folders 2025-08-27 09:46:55 +02:00
mips64 tests/functional: Move mips tests into target-specific folders 2025-08-27 09:46:55 +02:00
mips64el tests/functional: Move mips tests into target-specific folders 2025-08-27 09:46:55 +02:00
mipsel tests/functional: Move mips tests into target-specific folders 2025-08-27 09:46:55 +02:00
or1k tests/functional: Move or1k tests into target-specific folders 2025-08-27 09:46:55 +02:00
ppc tests/functional: Move ppc/ppc64 tests into target-specific folders 2025-08-27 09:46:55 +02:00
ppc64 tests/functional: Move ppc/ppc64 tests into target-specific folders 2025-08-27 09:46:55 +02:00
qemu_test tests/functional: purge scratch dir on test startup 2025-09-09 15:45:33 +02:00
riscv32 tests/functional: Move riscv32/riscv64 tests into target-specific folders 2025-08-27 09:46:55 +02:00
riscv64 tests/functional: Move riscv32/riscv64 tests into target-specific folders 2025-08-27 09:46:55 +02:00
rx tests/functional: Move rx test into target-specific folders 2025-08-27 09:46:55 +02:00
s390x tests/functional: Move s390x tests into target-specific folders 2025-08-27 09:46:55 +02:00
sh4 tests/functional: Move sh4/sh4eb tests into target-specific folders 2025-08-27 09:46:55 +02:00
sh4eb tests/functional: Move sh4/sh4eb tests into target-specific folders 2025-08-27 09:46:55 +02:00
sparc tests/functional: Move sparc/sparc64 tests into target-specific folders 2025-08-27 09:46:55 +02:00
sparc64 tests/functional: Move sparc/sparc64 tests into target-specific folders 2025-08-27 09:46:55 +02:00
x86_64 tests/functional/x86_64: Accept a few locked pages in test_memlock.py 2025-09-16 09:55:52 -07:00
xtensa tests/functional: Move xtensa tests into target-specific folder 2025-08-27 09:46:55 +02:00
aspeed.py tests/functional: Add gb200 tests 2025-07-03 17:36:45 +02:00
meson.build tests/functional: Move the generic tests to a subfolder 2025-08-27 09:46:55 +02:00
migration.py tests/functional: Rework the migration test to have target-specific files 2025-08-27 09:46:55 +02:00
multiprocess.py tests/functional: Rework the multiprocess test to have target-specific files 2025-08-27 09:46:55 +02:00
replay_kernel.py tests/functional: Provide a proper name for the VMs in the replay tests 2025-02-26 07:43:25 +01:00
reverse_debugging.py tests/functional: Convert reverse_debugging tests to the functional framework 2025-04-23 07:51:25 +02:00