mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 04:43:54 -06:00

Both the report() function as well as the initial gdbstub test sequence are copy-pasted into ~10 files with slight modifications. This indicates that they are indeed generic, so factor them out. While at it, add a few newlines to make the formatting closer to PEP-8. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Message-Id: <20240129093410.3151-3-iii@linux.ibm.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
20 lines
445 B
Python
20 lines
445 B
Python
from __future__ import print_function
|
|
#
|
|
# Test auxiliary vector is loaded via gdbstub
|
|
#
|
|
# This is launched via tests/guest-debug/run-test.py
|
|
#
|
|
|
|
import gdb
|
|
from test_gdbstub import main, report
|
|
|
|
|
|
def run_test():
|
|
"Run through the tests one by one"
|
|
|
|
auxv = gdb.execute("info auxv", False, True)
|
|
report(isinstance(auxv, str), "Fetched auxv from inferior")
|
|
report(auxv.find("sha1"), "Found test binary name in auxv")
|
|
|
|
|
|
main(run_test)
|