xref: /qemu/tests/functional/test_aarch64_reverse_debug.py (revision b103cc6e74ac92f070a0e004bd84334e845c20b5)
1#!/usr/bin/env python3
2#
3# SPDX-License-Identifier: GPL-2.0-or-later
4#
5# Reverse debugging test
6#
7# Copyright (c) 2020 ISP RAS
8#
9# Author:
10#  Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
11#
12# This work is licensed under the terms of the GNU GPL, version 2 or
13# later.  See the COPYING file in the top-level directory.
14
15from qemu_test import Asset, skipIfMissingImports, skipFlakyTest
16from reverse_debugging import ReverseDebugging
17
18
19@skipIfMissingImports('avocado.utils')
20class ReverseDebugging_AArch64(ReverseDebugging):
21
22    REG_PC = 32
23
24    KERNEL_ASSET = Asset(
25        ('https://archives.fedoraproject.org/pub/archive/fedora/linux/'
26         'releases/29/Everything/aarch64/os/images/pxeboot/vmlinuz'),
27        '7e1430b81c26bdd0da025eeb8fbd77b5dc961da4364af26e771bd39f379cbbf7')
28
29    @skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/2921")
30    def test_aarch64_virt(self):
31        self.set_machine('virt')
32        self.cpu = 'cortex-a53'
33        kernel_path = self.KERNEL_ASSET.fetch()
34        self.reverse_debugging(args=('-kernel', kernel_path))
35
36
37if __name__ == '__main__':
38    ReverseDebugging.main()
39