1 if conf.get('HAVE_GLIB', 0) == 0
2 message('You need to have glib support enabled to run test/api tests')
10 'test-be-glyph-advance.c',
11 'test-be-num-glyphs.c',
15 'test-collect-unicodes.c',
23 'test-instance-cff2.c',
26 'test-ot-alternates.c',
27 'test-ot-collect-glyphs.c',
30 'test-ot-glyphname.c',
32 'test-ot-ligature-carets.c',
37 'test-ot-extents-cff.c',
38 'test-ot-metrics-tt-var.c',
40 'test-subset-repacker.c',
46 'test-subset-drop-tables.c',
50 'test-subset-nameids.c',
68 if conf.get('HAVE_FREETYPE', 0) == 1
75 if conf.get('HAVE_CORETEXT', 0) == 1
81 if conf.get('HAVE_FREETYPE', 0) == 1 and conf.get('HAVE_PTHREAD', 0) == 1
82 tests += 'test-multithread.c'
85 # Default test running environment
87 env.set('MALLOC_CHECK_', '2')
88 env.set('G_DEBUG', 'gc-friendly')
89 env.set('G_SLICE', 'always-malloc')
90 env.set('G_TEST_SRCDIR', meson.current_source_dir())
91 env.set('G_TEST_BUILDDIR', meson.current_build_dir())
93 foreach source : tests
95 test_name = source.split('.')[0]
97 deps = [glib_dep, freetype_dep, thread_dep, libharfbuzz_dep, libharfbuzz_icu_dep]
99 if test_name.contains('-subset') or test_name.contains('-instance')
100 deps += libharfbuzz_subset_dep
104 if test_name.contains('-instance')
105 cpp_args += '-DHB_EXPERIMENTAL_API'
108 test(test_name, executable(test_name, source,
110 include_directories: [incconfig],
113 ), env: env, suite: suite)