add a test with VIPS_STALL

stresses the caching and locality systems
This commit is contained in:
John Cupitt 2019-12-18 14:41:35 +00:00
parent c0c07ea003
commit 6b02c22457
2 changed files with 19 additions and 0 deletions

View File

@ -5,6 +5,7 @@ TESTS = \
test_cli.sh \
test_formats.sh \
test_seq.sh \
test_stall.sh \
test_threading.sh
SUBDIRS = \
@ -32,6 +33,7 @@ EXTRA_DIST = \
test_formats.sh \
test_seq.sh \
test_thumbnail.sh \
test_stall.sh \
test_threading.sh
clean-local:

17
test/test_stall.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
# set -x
set -e
. ./variables.sh
if test_supported tiffload; then
VIPS_STALL=1 vips copy $image $tmp/x.tif
cat > $tmp/mask.con <<EOF
3 3 8 0
-1 -1 -1
-1 16 -1
-1 -1 -1
EOF
VIPS_STALL=1 vips conv $tmp/x.tif $tmp/x2.tif $tmp/mask.con
fi