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
|
test_env = [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
'G_DEBUG=gc-friendly',
'GSETTINGS_BACKEND=memory',
'MALLOC_CHECK_=2',
'NO_AT_BRIDGE=1',
]
testsuite_c_args = [
'-UG_DISABLE_ASSERT',
'-UG_DISABLE_CAST_CHECKS',
]
testsuite_sources = [
['test-expr'],
['test-template'],
]
foreach test: testsuite_sources
test_name = test.get(0)
test_sources = ['@0@.c'.format(test_name)]
test_exe = executable(test_name, test_sources,
c_args: testsuite_c_args,
dependencies: [core_lib_dep],
)
test(test_name, test_exe, env: test_env)
endforeach
|