28 lines
639 B
Bash
28 lines
639 B
Bash
top_srcdir=@TOP_SRCDIR@
|
|
PYTHON=@PYTHON@
|
|
# we need a different tmp for each script since make can run tests in parallel
|
|
tmp=$top_srcdir/test/tmp-$$
|
|
test_images=$top_srcdir/test/test-suite/images
|
|
image=$test_images/йцук.jpg
|
|
mkdir -p $tmp
|
|
vips=$top_srcdir/tools/vips
|
|
vipsthumbnail=$top_srcdir/tools/vipsthumbnail
|
|
vipsheader=$top_srcdir/tools/vipsheader
|
|
|
|
# we need bc to use '.' for a decimal separator
|
|
export LC_NUMERIC=C
|
|
|
|
# test for file format supported
|
|
test_supported() {
|
|
format=$1
|
|
|
|
if $vips $format > /dev/null 2>&1; then
|
|
result=0
|
|
else
|
|
echo "support for $format not configured, skipping test"
|
|
result=1
|
|
fi
|
|
|
|
return $result
|
|
}
|