db2ea0dd1b
tests/guest-debug: add a simple test runner
...
The test runners job is to start QEMU with guest debug enabled and
then spawn a gdb process running a test script that exercises the
functionality it wants to test.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-Id: <20200316172155.971-23-alex.bennee@linaro.org >
2020-03-17 17:38:47 +00:00
423edd9a31
drop "from __future__ import print_function"
...
This is only needed for Python 2, which we do not support anymore.
Cc: Philippe Mathieu-Daudé <philmd@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Acked-by: Alex Bennée <alex.bennee@linaro.org >
Acked-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20200204160604.19883-1-pbonzini@redhat.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com >
2020-02-07 15:15:16 +01:00
f251cb2371
tests/guest-debug: fix scoping of failcount
...
You should declare you are using a global version of a variable before
you attempt to modify it in a function.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-id: 20181109152119.9242-5-alex.bennee@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-11-13 10:47:59 +00:00
e50a61219f
tests: Fix typos in comments and help message (found by codespell)
...
Fix also a grammar issue.
Signed-off-by: Stefan Weil <sw@weilnetz.de >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Message-Id: <20180713054755.23323-1-sw@weilnetz.de >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2018-10-26 17:17:32 +02:00
f03868bd56
python: futurize -f libfuturize.fixes.fix_print_with_import
...
Change all Python code to use print as a function.
This is necessary for Python 3 compatibility.
Done using:
$ py=$( (g grep -l -E '^#!.*python';find -name '*.py' -printf '%P\n';) | \
sort -u | grep -v README.sh4)
$ futurize -w -f libfuturize.fixes.fix_print_with_import $py
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Acked-by: Fam Zheng <famz@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Message-Id: <20180608122952.2009-2-ehabkost@redhat.com >
[ehabkost: fixup tests/docker/docker.py]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2018-06-08 14:39:24 -03:00
261f4d6d3e
tests/guest-debug: introduce basic gdbstub tests
...
The aim of these tests is to combine with an appropriate kernel
image (with symbol-file vmlinux) and check it behaves as it should.
Given a kernel it checks:
- single step
- software breakpoint
- hardware breakpoint
- access, read and write watchpoints
On success it returns 0 to the calling process.
I've not plumbed this into the "make check" logic though as we need a
solution for providing non-host binaries to the tests. However the test
is structured to work with pretty much any Linux kernel image as it
uses the basic kernel_init code which is common across architectures.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Message-id: 1449599553-24713-7-git-send-email-alex.bennee@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-12-17 13:37:15 +00:00