girepository: Move cmph-bdz test to tests subfolder

We can avoid to maintain the special case and still works fine
This commit is contained in:
Marco Trevisan (Treviño) 2023-12-20 07:38:01 +01:00 committed by Philip Withnall
parent 8a4755106d
commit 18d0b0eb40
3 changed files with 3 additions and 20 deletions

View File

@ -64,23 +64,3 @@ if cc.get_id() != 'msvc'
'-Wno-type-limits',
])
endif
test_env = environment()
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
cmph_test = executable('cmph-bdz-test', '../cmph-bdz-test.c',
dependencies: [
cmph_dep,
libglib_dep,
libgobject_dep,
],
c_args: custom_c_args + ['-UG_DISABLE_ASSERT'],
)
test('cmph-bdz-test', cmph_test,
env: test_env,
protocol: test_protocol,
suite: ['girepository'],
timeout: test_timeout,
)

View File

@ -3,6 +3,9 @@ girepository_tests = {}
# Some GIR files are needed to test against
if enable_gir
girepository_tests += {
'cmph-bdz': {
'dependencies': [cmph_dep],
},
'gthash' : {},
'repository' : {
'depends': [glib_gir, gobject_gir],