2019-10-06 07:25:09 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# test the various restartable loaders
|
|
|
|
|
2019-12-23 14:58:22 +00:00
|
|
|
# webp and ppm use streams, but they mmap the input, so you can't close() the
|
2019-10-17 13:16:12 +01:00
|
|
|
# fd on minimise
|
|
|
|
|
2019-10-06 07:25:09 +01:00
|
|
|
# set -x
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. ./variables.sh
|
|
|
|
|
2019-12-30 12:48:20 +00:00
|
|
|
if test_supported jpegload_source; then
|
2019-10-14 10:46:17 +01:00
|
|
|
./test_descriptors $image
|
|
|
|
fi
|
2019-10-06 10:55:19 +01:00
|
|
|
|
2019-12-30 12:48:20 +00:00
|
|
|
if test_supported pngload_source; then
|
2019-10-07 10:01:15 +01:00
|
|
|
./test_descriptors $test_images/sample.png
|
|
|
|
fi
|
2019-10-07 13:30:19 +01:00
|
|
|
|
2019-12-30 12:48:20 +00:00
|
|
|
if test_supported tiffload_source; then
|
2019-10-17 13:16:12 +01:00
|
|
|
./test_descriptors $test_images/sample.tif
|
2019-10-07 13:30:19 +01:00
|
|
|
fi
|
2019-11-06 17:04:13 +00:00
|
|
|
|
2019-12-30 12:48:20 +00:00
|
|
|
if test_supported radload_source; then
|
2019-11-06 17:04:13 +00:00
|
|
|
./test_descriptors $test_images/sample.hdr
|
|
|
|
fi
|
2019-11-10 12:30:21 +01:00
|
|
|
|
2019-12-30 12:48:20 +00:00
|
|
|
if test_supported svgload_source; then
|
2019-11-10 12:30:21 +01:00
|
|
|
./test_descriptors $test_images/logo.svg
|
|
|
|
fi
|
2019-12-23 14:58:22 +00:00
|
|
|
|