mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Add unit test for common/buf.c
This commit is contained in:
parent
5ae9eed1ac
commit
a368bbee6a
6 changed files with 126 additions and 3 deletions
27
t/meson.build
Normal file
27
t/meson.build
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
test_lib = static_library(
|
||||
'test_lib',
|
||||
sources: files(
|
||||
'../src/common/buf.c',
|
||||
'../src/common/mem.c',
|
||||
'../src/common/string-helpers.c'
|
||||
),
|
||||
include_directories: [labwc_inc],
|
||||
dependencies: [dep_cmocka],
|
||||
)
|
||||
|
||||
tests = [
|
||||
'buf-simple',
|
||||
]
|
||||
|
||||
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],
|
||||
),
|
||||
is_parallel: false,
|
||||
)
|
||||
endforeach
|
||||
Loading…
Add table
Add a link
Reference in a new issue