We now declare all multiarch system tests.
Signed-off-by: Pierrick Bouvier <[email protected]>
---
tests/tcg/multiarch/meson.build | 2 +
tests/tcg/multiarch/system/meson.build | 53 ++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
create mode 100644 tests/tcg/multiarch/system/meson.build
diff --git a/tests/tcg/multiarch/meson.build b/tests/tcg/multiarch/meson.build
index 99af41b3fcc..508fdb585b7 100644
--- a/tests/tcg/multiarch/meson.build
+++ b/tests/tcg/multiarch/meson.build
@@ -1,3 +1,5 @@
+subdir('system')
+
tests = []
float_helpers = files('libs/float_helpers.c')[0]
diff --git a/tests/tcg/multiarch/system/meson.build
b/tests/tcg/multiarch/system/meson.build
new file mode 100644
index 00000000000..f71c12db38e
--- /dev/null
+++ b/tests/tcg/multiarch/system/meson.build
@@ -0,0 +1,53 @@
+tests = []
+
+# multiarch src path are written to be included from any other arch folder,
+# so all arch can directly add those tests.
+multiarch = meson.current_source_dir()
+
+tests += {
+ multiarch/'hello.c': {},
+ multiarch/'interrupt.c': {},
+ multiarch/'memory.c': {},
+}
+
+tests += {
+ multiarch/'memory.c': {
+ 'gdb_test': ['--test', files('../gdbstub/memory.py')]
+ },
+ multiarch/'interrupt.c': {
+ 'gdb_test': ['--test', files('../gdbstub/interrupt.py')]
+ },
+ multiarch/'hello.c': {
+ 'test_name': 'untimely-packet',
+ 'gdb_test': ['--gdb-args', '-ex \'set debug remote 1\'',
+ '--output', '/dev/stdout',
+ '--stderr', '/dev/stdout'],
+ 'wrapper': [prog_run_and_check_forbidden_output,
+ 'Packet instead of Ack, ignoring it']
+ }
+}
+
+tests += {
+ multiarch/'memory.c': {
+ 'test_name': 'registers',
+ 'gdb_test': ['--test', files('../gdbstub/registers.py')]
+ }
+}
+
+tests += {
+ multiarch/'memory.c': {
+ 'test_name': 'memory-access',
+ 'plugin_test': {
+ 'plugin': 'mem',
+ 'args': ['region-summary=true'],
+ },
+ 'wrapper': [prog_check_plugin_output,
+ find_program('./validate-memory-counts.py')]
+ }
+}
+
+tcg_tests += {
+ 'multiarch-softmmu': {
+ 'tests': tests
+ }
+}
--
2.43.0