1 if conf.get('HAVE_GLIB', 0) == 0
2 message('You need to have glib support enabled to run test/api tests')
12 'test-collect-unicodes.c',
20 'test-ot-alternates.c',
21 'test-ot-collect-glyphs.c',
24 'test-ot-glyphname.c',
26 'test-ot-ligature-carets.c',
31 'test-ot-extents-cff.c',
32 'test-ot-metrics-tt-var.c',
38 'test-subset-drop-tables.c',
42 'test-subset-nameids.c',
60 if conf.get('HAVE_FREETYPE', 0) == 1
61 tests += 'test-ot-math.c'
64 if conf.get('HAVE_FREETYPE', 0) == 1 and conf.get('HAVE_PTHREAD', 0) == 1
65 tests += 'test-multithread.c'
68 # Default test running environment
70 env.set('MALLOC_CHECK_', '2')
71 env.set('G_DEBUG', 'gc-friendly')
72 env.set('G_SLICE', 'always-malloc')
73 env.set('G_TEST_SRCDIR', meson.current_source_dir())
74 env.set('G_TEST_BUILDDIR', meson.current_build_dir())
76 foreach source : tests
77 test_name = source.split('.')[0]
79 deps = [glib_dep, freetype_dep, thread_dep, libharfbuzz_dep, libharfbuzz_icu_dep]
81 if test_name.contains('-subset')
82 deps += libharfbuzz_subset_dep
86 test(test_name, executable(test_name, source,
87 include_directories: [incconfig],
90 ), env: env, suite: suite)