On 29/10/26 06:39, Philippe Mathieu-Daudé wrote:
On 29/10/26 06:33, Pierrick Bouvier wrote:
On 10/28/26 12:25 PM, Philippe Mathieu-Daudé wrote:
Add R5900 system tests, code is covered, CPU can come back,
allowing to fix a bug on PCGT opcode.


See some test failures, related to gdb:
https://github.com/p-b-o/qemu-ci/actions/runs/40776744817/ job/123131480244

Ah hmm I had similar failures due to too old gdb, I might have
missed to check the version in that container image. IIRC
Gustavo had similar problem with ARM I'll see how he fixed
that (I suppose check gdb version and skip the tests).

Found it, this is 'gdb_feat_version' :)

tests/tcg/meson.build=18=tcg_tests = {}
tests/tcg/meson.build-19-# tcg_tests is a dictionary with following structure:
tests/tcg/meson.build-20-#
tests/tcg/meson.build-21-# {
tests/tcg/meson.build-22-#   'name_of_target': {
tests/tcg/meson.build-23-#     'cc': 'cross_compiler',
tests/tcg/meson.build-24-# 'cc_alt': ['list of alternative cross compilers', ...]
tests/tcg/meson.build-25-#     'cc_dockerfile': 'name_of_dockerfile',
tests/tcg/meson.build-26-#     'cc_feat_cflags': {
tests/tcg/meson.build-27-#       'name': ['feature cflags'],
tests/tcg/meson.build-28-#       ...
tests/tcg/meson.build-29-#     },
tests/tcg/meson.build-30-#     'folder': 'folder_for_test_src_files',
tests/tcg/meson.build-31-#     'gdb_arch': 'gdb architecture requirement',
tests/tcg/meson.build:32:#     'gdb_feat_version': {
tests/tcg/meson.build-33-# 'name': ['minimal gdb version supporting feature'],
tests/tcg/meson.build-34-#       ...
tests/tcg/meson.build-35-#     },
tests/tcg/meson.build-36-#     'qemu': emulators['qemu-...'],
tests/tcg/meson.build-37-#     'tests': [
tests/tcg/meson.build-38-#       {
tests/tcg/meson.build-39-#         'src_file': {
tests/tcg/meson.build-40-# 'exe_name': ['provide an alternative binary name'], tests/tcg/meson.build-41-# 'test_name': ['provide an alternative test name'], tests/tcg/meson.build-42-# 'cflags': ['additional cflags to compile test', ...],
tests/tcg/meson.build-43-#           'depends': [meson_dependency, ...],
tests/tcg/meson.build-44-# 'cc_feat': 'feature name, must be present in cc_feat_cflags', tests/tcg/meson.build-45-# 'qemu_args': ['qemu command line flags', ...], tests/tcg/meson.build-46-# 'expected_output': 'file_to_compare_output',
tests/tcg/meson.build-47-#           'gdb_test': ['gdb test args'],
tests/tcg/meson.build:48:# 'gdb_feat': ['feature name, must be present in gdb_feat_version'],
tests/tcg/meson.build-49-#           'env_var': ['VAR=value', ...],
tests/tcg/meson.build-50-# 'wrapper': [program_to_launch_test, 'args'...],
tests/tcg/meson.build-51-#           'plugin_test': {
tests/tcg/meson.build-52-#             'plugin': 'plugin_name',
tests/tcg/meson.build-53-#             'args': ['plugin_args', ...],
tests/tcg/meson.build-54-#           },
tests/tcg/meson.build-55-#         }
tests/tcg/meson.build-56-#       },
tests/tcg/meson.build-57-#       ...
tests/tcg/meson.build-58-#     ]
tests/tcg/meson.build-59-#   }
tests/tcg/meson.build-60-# }

tests/tcg/meson.build=200=foreach target, plan: tcg_tests

tests/tcg/meson.build:518: if not gdb_version.version_compare('>=' + gdb_feat_version[gdb_feat]) tests/tcg/meson.build-519- skip_test = 'gdb feature ' + gdb_feat + ' not supported'
tests/tcg/meson.build-520-        endif

tests/tcg/aarch64/meson.build:18:gdb_feat_version = {
tests/tcg/aarch64/meson.build-19-  'sme-tiles': '14.1',
tests/tcg/aarch64/meson.build-20-  'mte': '15.1',
tests/tcg/aarch64/meson.build-21-  'mte-baremetal': '16.0',
tests/tcg/aarch64/meson.build-22-}

tests/tcg/aarch64/meson.build=196=if 'qemu-aarch64' in emulators
tests/tcg/aarch64/meson.build-197-  tcg_tests += {
tests/tcg/aarch64/meson.build-198-    'aarch64-linux-user': {
tests/tcg/aarch64/meson.build-199-      'cc': cc,
tests/tcg/aarch64/meson.build-200-      'cc_alt': cc_alt,
tests/tcg/aarch64/meson.build-201-      'cc_dockerfile': cc_dockerfile,
tests/tcg/aarch64/meson.build-202-      'cc_feat_cflags': cc_feat_cflags,
tests/tcg/aarch64/meson.build-203-      'folder': 'aarch64',
tests/tcg/aarch64/meson.build-204-      'gdb_arch': 'aarch64',
tests/tcg/aarch64/meson.build:205: 'gdb_feat_version': gdb_feat_version,
tests/tcg/aarch64/meson.build-206-      'qemu': emulators['qemu-aarch64'],
tests/tcg/aarch64/meson.build-207-      'tests': tests,
tests/tcg/aarch64/meson.build-208-    }
tests/tcg/aarch64/meson.build-209-  }



Reply via email to