Skip to content

Commit 62a7a89

Browse files
update build file
1 parent 340e73c commit 62a7a89

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

code/tests/meson.build

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
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 = ['parser', 'stream', 'soap', 'input', 'error', 'device', 'network', 'serialize', 'cstring']
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('testbed-c', test_c, include_directories: dir,
13-
dependencies: [subproject('fossil-test').get_variable('fossil_test_dep'), fossil_io_dep])
7+
pizza_c = executable('pizza', test_cases, include_directories: dir,
8+
dependencies: [dependency('fossil-test'), fossil_io_dep])
149

1510
test('fossil testing C', pizza_c)
16-
endif
11+
endif

0 commit comments

Comments
 (0)