2019-10-06 08:25:09 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# test the various restartable loaders
|
|
|
|
|
2019-12-23 15:58:22 +01:00
|
|
|
# webp and ppm use streams, but they 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-12-30 13:48:20 +01:00
|
|
|
if test_supported jpegload_source; then
|
2019-10-14 11:46:17 +02:00
|
|
|
./test_descriptors $image
|
|
|
|
fi
|
2019-10-06 11:55:19 +02:00
|
|
|
|
2019-12-30 13:48:20 +01:00
|
|
|
if test_supported pngload_source; 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-12-30 13:48:20 +01:00
|
|
|
if test_supported tiffload_source; 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-12-30 13:48:20 +01:00
|
|
|
if test_supported radload_source; then
|
2019-11-06 18:04:13 +01:00
|
|
|
./test_descriptors $test_images/sample.hdr
|
|
|
|
fi
|
2019-11-10 12:30:21 +01:00
|
|
|
|
2019-12-30 13:48:20 +01: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 15:58:22 +01:00
|
|
|
|