1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
|
# Meson definition for AppStream Tests
subdir('installed-tests/')
as_test_env = []
as_test_args = [meson.current_source_dir()]
as_test_common_src = [
'as-test-utils.h',
'as-test-utils.c'
]
#
# Tests
#
# Basics and utility functions
as_test_basic_exe = executable ('as-test_basic',
['test-basics.c',
as_test_common_src],
dependencies: [appstream_dep,
gio_dep,
xml2_dep],
include_directories: [root_inc_dir]
)
test ('as-test_basic',
as_test_basic_exe,
args: as_test_args,
env: as_test_env
)
# XML read/write
as_test_xml_exe = executable ('as-test_xml',
['test-xmldata.c',
as_test_common_src],
dependencies: [appstream_dep,
gio_dep,
xml2_dep],
include_directories: [root_inc_dir]
)
test ('as-test_xml',
as_test_xml_exe,
args: as_test_args,
env: as_test_env,
)
# YAML read/write
as_test_yaml_exe = executable ('as-test_yaml',
['test-yamldata.c',
as_test_common_src],
dependencies: [appstream_dep,
gio_dep,
xml2_dep,
fyaml_dep],
include_directories: [root_inc_dir]
)
test ('as-test_yaml',
as_test_yaml_exe,
args: as_test_args,
env: as_test_env
)
# Metadata Pool
as_test_pool_exe = executable ('as-test_pool',
['test-pool.c',
as_test_common_src],
dependencies: [appstream_dep,
gio_dep,
xml2_dep],
include_directories: [root_inc_dir]
)
test ('as-test_pool',
as_test_pool_exe,
args: as_test_args,
env: as_test_env,
timeout: 90
)
# Validator
as_test_validate_exe = executable ('as-test_validate',
['test-validate.c',
as_test_common_src],
dependencies: [appstream_dep,
gio_dep,
xml2_dep],
include_directories: [root_inc_dir]
)
test ('as-test_validate',
as_test_validate_exe,
args: as_test_args,
env: as_test_env
)
# Performance
as_test_perf_exe = executable ('as-test_perf',
['test-performance.c',
as_test_common_src],
dependencies: [appstream_dep,
gio_dep,
xml2_dep],
)
test ('as-test_perf',
as_test_perf_exe,
args: as_test_args,
env: as_test_env,
timeout: 90
)
# Miscelaneous utilities
as_test_misc_exe = executable ('as-test_misc',
['test-misc.c',
as_test_common_src],
dependencies: [appstream_dep,
gio_dep,
xml2_dep],
include_directories: [root_inc_dir]
)
test ('as-test_misc',
as_test_misc_exe,
args: as_test_args,
env: as_test_env
)
# AppStream Compose tests
if get_option('compose')
as_test_compose_exe = executable ('as-test_compose',
['test-compose.c',
as_test_common_src],
dependencies: [appstream_compose_dep,
gio_dep,
freetype_dep,
gdkpixbuf_dep],
c_args: ['-DI_KNOW_THE_APPSTREAM_COMPOSE_API_IS_SUBJECT_TO_CHANGE'],
)
test ('as-test_compose',
as_test_compose_exe,
args: as_test_args,
env: as_test_env +
['LSAN_OPTIONS=suppressions=' +
join_paths(meson.current_source_dir(), 'lsan-suppr.txt')]
)
endif
|