Lines Matching +full:name +full:- +full:prefix
20 return [base if speed == 'quick' else f'{base}-{speed}' for speed in self.speeds]
26 .speed.quick = $(foreach s,$(sort $(filter-out %-slow %-thorough, $1)), --suite $s)
27 .speed.slow = $(foreach s,$(sort $(filter-out %-thorough, $1)), --suite $s)
28 .speed.thorough = $(foreach s,$(sort $1), --suite $s)
31 .mtestargs = --no-rebuild -t $(TIMEOUT_MULTIPLIER)
33 .mtestargs += --setup $(SPEED)
35 .mtestargs += $(subst -j,--num-processes , $(filter-out -j, $(lastword -j1 $(filter -j%, $(MAKEFLAG…
37 .check.mtestargs = $(MTESTARGS) $(.mtestargs) $(if $(V),--verbose,--print-errorlogs)
38 .bench.mtestargs = $(MTESTARGS) $(.mtestargs) --benchmark --verbose''')
55 # The suite name in the introspection info is "PROJECT" or "PROJECT:SUITE"
60 if s.endswith('-slow'):
61 s = s[:-5]
63 if s.endswith('-thorough'):
64 s = s[:-9]
68 def emit_prolog(suites, prefix): argument
69 all_targets = ' '.join((f'{prefix}-{k}' for k in suites.keys()))
70 all_xml = ' '.join((f'{prefix}-report-{k}.junit.xml' for k in suites.keys()))
72 print(f'all-{prefix}-targets = {all_targets}')
73 print(f'all-{prefix}-xml = {all_xml}')
74 …print(f'.PHONY: {prefix} do-meson-{prefix} {prefix}-report.junit.xml $(all-{prefix}-targets) $(all…
75 print(f'ifeq ($(filter {prefix}, $(MAKECMDGOALS)),)')
76 print(f'.{prefix}.mtestargs += $(call .speed.$(SPEED), $(.{prefix}.mtest-suites))')
78 print(f'{prefix}-build: run-ninja')
79 print(f'{prefix} $(all-{prefix}-targets): do-meson-{prefix}')
80 print(f'do-meson-{prefix}: run-ninja; $(if $(MAKE.n),,+)$(MESON) test $(.{prefix}.mtestargs)')
81 print(f'{prefix}-report.junit.xml $(all-{prefix}-xml): {prefix}-report%.junit.xml: run-ninja')
82 …print(f'\t$(MAKE) {prefix}$* MTESTARGS="$(MTESTARGS) --logbase {prefix}-report$*" && ln -f meson-l…
84 def emit_suite_deps(name, suite, prefix): argument
86 …targets = [f'{prefix}-{name}', f'{prefix}-report-{name}.junit.xml', f'{prefix}', f'{prefix}-report…
87 f'{prefix}-build']
89 print(f'.{prefix}-{name}.deps = {deps}')
91 print(f'.ninja-goals.{t} += $(.{prefix}-{name}.deps)')
93 def emit_suite(name, suite, prefix): argument
94 emit_suite_deps(name, suite, prefix)
95 targets = f'{prefix}-{name} {prefix}-report-{name}.junit.xml {prefix} {prefix}-report.junit.xml'
97 print(f'.{prefix}.mtest-suites += ' + ' '.join(suite.names(name)))
107 for name, suite in testsuites.items():
108 emit_suite(name, suite, 'check')
114 for name, suite in benchsuites.items():
115 emit_suite(name, suite, 'bench')