2022-02-08 16:19:36 +01:00
|
|
|
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'),
|
2022-02-19 16:13:42 +01:00
|
|
|
workdir: meson.current_build_dir(),
|
|
|
|
# Increase the timeout as running the tests with sanitizers
|
|
|
|
# enabled could be slower than the default 30 seconds.
|
2022-02-19 17:06:29 +01:00
|
|
|
timeout: 120,
|
2022-02-08 16:19:36 +01:00
|
|
|
)
|
|
|
|
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(),
|
|
|
|
)
|