1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
test_deps = [
dep_cmocka,
glib,
xml2,
wlroots,
]
test_lib = static_library(
'test_lib',
sources: files(
'../src/common/buf.c',
'../src/common/mem.c',
'../src/common/string-helpers.c',
'../src/common/xml.c',
'../src/common/parse-bool.c',
),
include_directories: [labwc_inc],
dependencies: test_deps,
)
tests = [
'buf-simple',
'str',
'xml',
]
foreach t : tests
test(
'test_@0@'.format(t),
executable(
'test_@0@'.format(t),
sources: '@0@.c'.format(t),
include_directories: [labwc_inc],
link_with: [test_lib],
dependencies: test_deps,
),
is_parallel: false,
)
endforeach
|