File: test_descriptors.sh

package info (click to toggle)
vips 8.18.0-2
  • links: PTS
  • area: main
  • in suites: forky
  • size: 53,448 kB
  • sloc: ansic: 172,621; cpp: 12,257; python: 5,077; sh: 773; perl: 40; makefile: 25; javascript: 6
file content (31 lines) | stat: -rwxr-xr-x 604 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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