libvips/test/meson.build
Kleis Auke Wolthuizen 4611651d90
nsgifload: avoid minimise after mapping (#3189)
* nsgifload: avoid minimise after mapping

Not reliable on Windows.

* nsgifload: prefer use of `VIPS_FREEF` macro

* Improve `test_descriptors.c`

* Only build `test_descriptors` when targeting Linux
2022-11-27 15:43:35 +00:00

66 lines
1.6 KiB
Meson

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(),
)
# Uses /proc/self/fd, which is only available on *nix
if host_os == 'linux'
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(),
)
endif