1from __future__ import print_function
2#
3# Test auxiliary vector is loaded via gdbstub
4#
5# This is launched via tests/guest-debug/run-test.py
6#
7
8import gdb
9from test_gdbstub import main, report
10
11
12def run_test():
13    "Run through the tests one by one"
14
15    auxv = gdb.execute("info auxv", False, True)
16    report(isinstance(auxv, str), "Fetched auxv from inferior")
17    report(auxv.find("sha1"), "Found test binary name in auxv")
18
19
20main(run_test)
21