diff options
| author | Thomas Huth <thuth@redhat.com> | 2025-08-19 13:23:59 +0200 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2025-08-27 09:46:55 +0200 |
| commit | 1917d47dd78adbd30abd462712458d0a0b583308 (patch) | |
| tree | 18bb444d7e1942aca6317aae61df07682699457e /tests/functional/x86_64/test_reverse_debug.py | |
| parent | e76291a65457b1fe18b6bf7a90b1d022fa15bf9d (diff) | |
| download | focaccia-qemu-1917d47dd78adbd30abd462712458d0a0b583308.tar.gz focaccia-qemu-1917d47dd78adbd30abd462712458d0a0b583308.zip | |
tests/functional: Move x86_64 tests into target-specific folder
The tests/functional folder has become quite crowded, thus move the x86_64 tests into a target-specific subfolder. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20250819112403.432587-23-thuth@redhat.com>
Diffstat (limited to 'tests/functional/x86_64/test_reverse_debug.py')
| -rwxr-xr-x | tests/functional/x86_64/test_reverse_debug.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/functional/x86_64/test_reverse_debug.py b/tests/functional/x86_64/test_reverse_debug.py new file mode 100755 index 0000000000..d713e91e14 --- /dev/null +++ b/tests/functional/x86_64/test_reverse_debug.py @@ -0,0 +1,36 @@ +#!/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_X86_64(ReverseDebugging): + + REG_PC = 0x10 + REG_CS = 0x12 + def get_pc(self, g): + return self.get_reg_le(g, self.REG_PC) \ + + self.get_reg_le(g, self.REG_CS) * 0x10 + + @skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/2922") + def test_x86_64_pc(self): + self.set_machine('pc') + # start with BIOS only + self.reverse_debugging() + + +if __name__ == '__main__': + ReverseDebugging.main() |