mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
tests/meson.build: refactor with foreach
This commit is contained in:
parent
df93bc1841
commit
cb9cb384e4
1 changed files with 15 additions and 14 deletions
|
|
@ -6,18 +6,19 @@ rcxml_lib = static_library(
|
||||||
link_with: library('libxml-2.0'),
|
link_with: library('libxml-2.0'),
|
||||||
)
|
)
|
||||||
|
|
||||||
t1000 = executable(
|
rcxml_tests = [
|
||||||
't1000-rcxml-simple-parse',
|
't1000-rcxml-simple-parse.c',
|
||||||
sources: ['t1000-rcxml-simple-parse.c', 'tap.c'],
|
't1001-rcxml-nodenames-simple.c',
|
||||||
include_directories: [labwc_inc],
|
]
|
||||||
link_with: rcxml_lib,
|
|
||||||
)
|
foreach t : rcxml_tests
|
||||||
test('t1000', t1000)
|
testname = t.split('.')[0].underscorify()
|
||||||
|
exe = executable(
|
||||||
|
testname,
|
||||||
|
sources: [t, 'tap.c'],
|
||||||
|
include_directories: [labwc_inc],
|
||||||
|
link_with: rcxml_lib,
|
||||||
|
)
|
||||||
|
test(testname, exe)
|
||||||
|
endforeach
|
||||||
|
|
||||||
t1001 = executable(
|
|
||||||
't1001-rcxml-nodenames-simple',
|
|
||||||
sources: ['t1001-rcxml-nodenames-simple.c', 'tap.c'],
|
|
||||||
include_directories: [labwc_inc],
|
|
||||||
link_with: rcxml_lib,
|
|
||||||
)
|
|
||||||
test('t1001', t1001)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue