Skip to content

Commit 3f0eb6b

Browse files
update build files
1 parent 2de9d3e commit 3f0eb6b

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

code/logic/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dep = [
55
meson.get_compiler('c').find_library('m', required : false)
66
]
77

8-
fossil_crabdb_lib = library('fossil-crabdb',
8+
fossil_crabdb_lib = static_library('fossil-crabdb',
99
files('myshell.c', 'noshell.c'),
1010
install: true,
1111
dependencies: dep,

code/tests/meson.build

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +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 = [
6-
'myshell', 'noshell'
7-
]
5+
test_cases = ['unit_runner.c', cards.stdout().strip().split('\n')]
86

9-
foreach cases : test_cases
10-
test_c += ['cases' / 'test_' + cases + '.c']
11-
test_c += ['cases' / 'test_' + cases + '.cpp']
12-
endforeach
13-
14-
pizza_c = executable('testbed-c', test_c, include_directories: dir,
15-
dependencies: [subproject('fossil-test').get_variable('fossil_test_dep'), fossil_crabdb_dep])
7+
pizza_c = executable('pizza', test_cases, include_directories: dir,
8+
dependencies: [dependency('fossil-test'), fossil_crabdb_dep])
169

1710
test('fossil testing C', pizza_c)
1811
endif

0 commit comments

Comments
 (0)