2025-09-29 16:03:36 +09:00
|
|
|
test_deps = [
|
|
|
|
|
dep_cmocka,
|
|
|
|
|
glib,
|
|
|
|
|
xml2,
|
|
|
|
|
wlroots,
|
|
|
|
|
]
|
|
|
|
|
|
2023-09-23 15:07:25 +01:00
|
|
|
test_lib = static_library(
|
|
|
|
|
'test_lib',
|
|
|
|
|
sources: files(
|
|
|
|
|
'../src/common/buf.c',
|
|
|
|
|
'../src/common/mem.c',
|
2025-04-10 00:43:21 +09:00
|
|
|
'../src/common/string-helpers.c',
|
|
|
|
|
'../src/common/xml.c',
|
2025-04-11 20:25:12 +09:00
|
|
|
'../src/common/parse-bool.c',
|
2023-09-23 15:07:25 +01:00
|
|
|
),
|
|
|
|
|
include_directories: [labwc_inc],
|
2025-09-29 16:03:36 +09:00
|
|
|
dependencies: test_deps,
|
2023-09-23 15:07:25 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
tests = [
|
|
|
|
|
'buf-simple',
|
2024-08-20 17:59:46 +01:00
|
|
|
'str',
|
2025-04-10 00:43:21 +09:00
|
|
|
'xml',
|
2023-09-23 15:07:25 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
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],
|
2025-09-29 16:03:36 +09:00
|
|
|
dependencies: test_deps,
|
2023-09-23 15:07:25 +01:00
|
|
|
),
|
|
|
|
|
is_parallel: false,
|
|
|
|
|
)
|
|
|
|
|
endforeach
|