Change test suite separator character from '-' to ':'.

This allows defining test suites for test-valgrind target without the risk
of e.g. being unable to differentiate the targets test-valgrind (testing
with valgrind) from test-valgrind (testing the valgrind subproject).
pull/582/head
Hemmo Nieminen 9 years ago
parent 30bbcded23
commit fac6f869e0
  1. 2
      mesonbuild/backend/ninjabackend.py
  2. 3
      mesonbuild/coredata.py

@ -569,7 +569,7 @@ int dummy;
visible_name = 'for top level tests' visible_name = 'for top level tests'
else: else:
visible_name = s visible_name = s
elem = NinjaBuildElement(self.all_outputs, 'test-' + s, 'CUSTOM_COMMAND', ['all', 'PHONY']) elem = NinjaBuildElement(self.all_outputs, 'test:' + s, 'CUSTOM_COMMAND', ['all', 'PHONY'])
elem.add_item('COMMAND', cmd + ['--suite=' + s]) elem.add_item('COMMAND', cmd + ['--suite=' + s])
elem.add_item('DESC', 'Running test suite %s.' % visible_name) elem.add_item('DESC', 'Running test suite %s.' % visible_name)
elem.add_item('pool', 'console') elem.add_item('pool', 'console')

@ -228,8 +228,9 @@ forbidden_target_names = {'clean': None,
'PHONY': None, 'PHONY': None,
'all': None, 'all': None,
'test': None, 'test': None,
'test:': None,
'test-valgrind': None, 'test-valgrind': None,
'test-': None, 'test-valgrind:': None,
'benchmark': None, 'benchmark': None,
'install': None, 'install': None,
'build.ninja': None, 'build.ninja': None,

Loading…
Cancel
Save