libvips/test/meson.build

63 lines
1.4 KiB
Meson
Raw Normal View History

variables_data = configuration_data()
variables_data.set('abs_top_srcdir', meson.project_source_root())
variables_data.set('abs_top_builddir', meson.project_build_root())
variables_data.set('PYTHON', pymod.find_installation().full_path())
variables_sh = configure_file(
input: 'variables.sh.in',
output: '@BASENAME@',
configuration: variables_data
)
script_tests = [
'cli',
'formats',
'seq',
'stall',
'threading',
]
foreach script_test : script_tests
test(script_test,
files('test_' + script_test + '.sh'),
workdir: meson.current_build_dir(),
# Increase the timeout as running the tests with sanitizers
# enabled could be slower than the default 30 seconds.
timeout: 120,
)
endforeach
test_connections = executable('test_connections',
'test_connections.c',
dependencies: libvips_dep,
)
test_connections_sh = configure_file(
input: 'test_connections.sh',
output: 'test_connections.sh',
copy: true,
)
test('connections',
test_connections_sh,
depends: test_connections,
workdir: meson.current_build_dir(),
)
test_descriptors = executable('test_descriptors',
'test_descriptors.c',
dependencies: libvips_dep,
)
test_descriptors_sh = configure_file(
input: 'test_descriptors.sh',
output: 'test_descriptors.sh',
copy: true,
)
test('descriptors',
test_descriptors_sh,
depends: test_descriptors,
workdir: meson.current_build_dir(),
)