Skip to content

Commit 3ebd870

Browse files
minimize test group collection
1 parent a57668b commit 3ebd870

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

code/tests/meson.build

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
if get_option('with_test').enabled()
22
run_command(['python3', 'tools' / 'generate-runner.py'], check: true)
3+
cards = run_command(['python3', 'tools' / 'wildcard.py'], check: true)
34

4-
test_c = ['unit_runner.c']
5-
test_cases = ['sample', 'bdd', 'tdd', 'ddd', 'mark', 'mock', 'sanity']
5+
test_cases = ['unit_runner.c', cards.stdout().strip().split('\n')]
66

7-
foreach cases : test_cases
8-
test_c += ['cases' / 'test_' + cases + '.c']
9-
test_c += ['cases' / 'test_' + cases + '.cpp']
10-
endforeach
11-
12-
pizza_c = executable('pizza', test_c, include_directories: dir, dependencies: [fossil_test_dep])
7+
pizza_c = executable('pizza', test_cases, include_directories: dir, dependencies: [fossil_test_dep])
138

149
test('fossil testing C', pizza_c)
1510
endif

0 commit comments

Comments
 (0)