diff options
| author | Thomas Huth <thuth@redhat.com> | 2025-04-14 13:30:17 +0200 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2025-04-23 07:51:25 +0200 |
| commit | 951ededf12a89534195cf5c5210242a169a85656 (patch) | |
| tree | 0277b67146e05e0993234d714e09434ed0b0243d /tests/functional/test_ppc64_reverse_debug.py | |
| parent | bc65ae696104c15e52a5e26f225b689e2c2cdba6 (diff) | |
| download | focaccia-qemu-951ededf12a89534195cf5c5210242a169a85656.tar.gz focaccia-qemu-951ededf12a89534195cf5c5210242a169a85656.zip | |
tests/functional: Convert reverse_debugging tests to the functional framework
These tests are using the gdb-related library functions from the Avocado framework which we don't have in the functional framework yet. So for the time being, keep those imports and skip the test if the Avocado framework is not installed on the host. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20250414113031.151105-4-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/functional/test_ppc64_reverse_debug.py')
| -rwxr-xr-x | tests/functional/test_ppc64_reverse_debug.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/functional/test_ppc64_reverse_debug.py b/tests/functional/test_ppc64_reverse_debug.py new file mode 100755 index 0000000000..5931adef5a --- /dev/null +++ b/tests/functional/test_ppc64_reverse_debug.py @@ -0,0 +1,41 @@ +#!/usr/bin/env python3 +# +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Reverse debugging test +# +# Copyright (c) 2020 ISP RAS +# +# Author: +# Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> +# +# This work is licensed under the terms of the GNU GPL, version 2 or +# later. See the COPYING file in the top-level directory. + +from qemu_test import skipIfMissingImports, skipFlakyTest +from reverse_debugging import ReverseDebugging + + +@skipIfMissingImports('avocado.utils') +class ReverseDebugging_ppc64(ReverseDebugging): + + REG_PC = 0x40 + + @skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/1992") + def test_ppc64_pseries(self): + self.set_machine('pseries') + # SLOF branches back to its entry point, which causes this test + # to take the 'hit a breakpoint again' path. That's not a problem, + # just slightly different than the other machines. + self.endian_is_le = False + self.reverse_debugging() + + @skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/1992") + def test_ppc64_powernv(self): + self.set_machine('powernv') + self.endian_is_le = False + self.reverse_debugging() + + +if __name__ == '__main__': + ReverseDebugging.main() |