Commit faf7522a authored by Christian Kellner's avatar Christian Kellner

meson, test: nice naming for integration tests

The test-integration list-test will now output a pair of test id
and human readable name like:

    Bolt.test_example_integration_test human_readable_name

Adopt meson to use the first as the argument to test-integration
and the second one for name to show to the user.
parent 4eb4eaa5
......@@ -421,10 +421,11 @@ if res.returncode() == 0
test_env.prepend('LD_PRELOAD', '')
test_env.prepend('BOLT_BUILD_DIR', meson.current_build_dir())
tests = res.stdout().strip().split(' ')
tests = res.stdout().strip().split('\n')
foreach t: tests
name = 'integration @0@'.format(t.split('.')[1])
test(name, test_it, args: [t], env: test_env, timeout: 120)
args = t.split(' ')
name = 'integration @0@'.format(args[1])
test(name, test_it, args: [args[0]], env: test_env, timeout: 120)
msg = '@0@'.format(res.stderr().strip())
......@@ -1871,6 +1871,9 @@ if __name__ == '__main__':
suit = unittest.defaultTestLoader.loadTestsFromTestCase(BoltTest)
for t in suit:
name =
print(name[9:], end=" ")
comps = name.split('.')
machine = ".".join(comps[1:])
human = comps[2][len('test_'):]
print("%s %s" % (machine, human), end="\n")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment