20 # FIXME: use new environment() object
21 # FIXME: put common bits of test environment() in one location
22 # Not entirely random of course, but at least it changes over time
23 random_number = minor_version + meson.version().split('.').get(1).to_int()
26 'G_TEST_SRCDIR=' + meson.current_source_dir(),
27 'G_TEST_BUILDDIR=' + meson.current_build_dir(),
28 'G_DEBUG=gc-friendly',
30 'MALLOC_PERTURB_=@0@'.format(random_number % 256),
33 foreach test_name : gobject_tests
34 deps = [libm, thread_dep, libglib_dep, libgobject_dep]
35 test_src = '@0@.c'.format(test_name)
36 # private is an existing or reserved target it seems
37 if test_name == 'private'
38 test_name = 'gobject-private'
40 exe = executable(test_name, test_src,
41 c_args : ['-DHAVE_CONFIG_H=1', '-DG_LOG_DOMAIN="GLib-GObject"'],
44 test(test_name, exe, env : test_env)
47 marshalers_h = custom_target('marshalers_h',
48 output : 'marshalers.h',
49 input : 'marshalers.list',
51 python, glib_genmarshal,
53 '--valist-marshallers',
60 marshalers_c = custom_target('marshalers_c',
61 output : 'marshalers.c',
62 input : 'marshalers.list',
64 python, glib_genmarshal,
66 '--valist-marshallers',
67 '--include-header=marshalers.h',
75 exe = executable('signals',
76 'signals.c', marshalers_h, marshalers_c,
77 c_args : ['-DHAVE_CONFIG_H=1', '-DG_LOG_DOMAIN="GLib-GObject"'],
80 test('signals', exe, env : test_env)