2019-10-06 08:25:09 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# test the various restartable loaders
|
|
|
|
|
2019-11-06 18:04:13 +01:00
|
|
|
# webp uses streams, but it needs to mmap the input, so you can't close() the
|
2019-10-17 14:16:12 +02:00
|
|
|
# fd on minimise
|
|
|
|
|
2019-10-06 08:25:09 +02:00
|
|
|
# set -x
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. ./variables.sh
|
|
|
|
|
2019-11-10 12:30:21 +01:00
|
|
|
if test_supported jpegload_stream; then
|
2019-10-14 11:46:17 +02:00
|
|
|
./test_descriptors $image
|
|
|
|
fi
|
2019-10-06 11:55:19 +02:00
|
|
|
|
2019-11-10 12:30:21 +01:00
|
|
|
if test_supported pngload_stream; then
|
2019-10-07 11:01:15 +02:00
|
|
|
./test_descriptors $test_images/sample.png
|
|
|
|
fi
|
2019-10-07 14:30:19 +02:00
|
|
|
|
2019-11-10 12:30:21 +01:00
|
|
|
if test_supported tiffload_stream; then
|
2019-10-17 14:16:12 +02:00
|
|
|
./test_descriptors $test_images/sample.tif
|
2019-10-07 14:30:19 +02:00
|
|
|
fi
|
2019-11-06 18:04:13 +01:00
|
|
|
|
2019-11-10 12:30:21 +01:00
|
|
|
if test_supported radload_stream; then
|
2019-11-06 18:04:13 +01:00
|
|
|
./test_descriptors $test_images/sample.hdr
|
|
|
|
fi
|
2019-11-10 12:30:21 +01:00
|
|
|
|
|
|
|
if test_supported svgload_stream; then
|
|
|
|
./test_descriptors $test_images/logo.svg
|
|
|
|
fi
|