1tests = [ 2 ['test-bz89617.c', {'c_args': ['-DSRCDIR="@0@"'.format(meson.current_source_dir())]}], 3 ['test-bz131804.c'], 4 ['test-bz96676.c'], 5 ['test-name-parse.c'], 6 ['test-bz106618.c'], 7 ['test-bz1744377.c'], 8 ['test-issue180.c'], 9 ['test-family-matching.c'], 10] 11 12if host_machine.system() != 'windows' 13 tests += [ 14 # FIXME: ['test-migration.c'], 15 ['test-bz106632.c', {'c_args': ['-DFONTFILE="@0@"'.format(join_paths(meson.current_source_dir(), '4x6.pcf'))]}], 16 ['test-issue107.c'], # FIXME: fails on mingw 17 # FIXME: this needs NotoSans-hinted.zip font downloaded and unpacked into test build directory! see run-test.sh 18 ['test-crbug1004254.c', {'dependencies': dependency('threads')}], # for pthread 19 ] 20 21 if get_option('default_library') == 'static' 22 tests += [ 23 ['test-issue110.c'], 24 ['test-d1f48f11.c'], 25 ] 26 endif 27endif 28 29foreach test_data : tests 30 fname = test_data[0] 31 opts = test_data.length() > 1 ? test_data[1] : {} 32 extra_c_args = opts.get('c_args', []) 33 extra_deps = opts.get('dependencies', []) 34 35 test_name = fname.split('.')[0].underscorify() 36 exe = executable(test_name, fname, 37 c_args: c_args + extra_c_args, 38 include_directories: incbase, 39 link_with: [libfontconfig], 40 dependencies: extra_deps, 41 ) 42 43 test(test_name, exe, timeout: 600) 44endforeach 45 46# FIXME: run-test.sh stuff 47# FIXME: jsonc test-conf 48