libvips/test/test_descriptors.sh
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

32 lines
604 B
Bash
Executable File

#!/bin/sh
# test the various restartable loaders
# gif, webp and ppm use streams, but they mmap the input, so you can't close() the
# fd on minimise
# set -x
set -e
. ./variables.sh
if test_supported jpegload_source; then
./test_descriptors $image
fi
if test_supported pngload_source; then
./test_descriptors $test_images/sample.png
fi
if test_supported tiffload_source; then
./test_descriptors $test_images/sample.tif
fi
if test_supported radload_source; then
./test_descriptors $test_images/sample.hdr
fi
if test_supported svgload_source; then
./test_descriptors $test_images/logo.svg
fi