From 6b02c22457d39401730f14654e68677db4e087b6 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 18 Dec 2019 14:41:35 +0000 Subject: [PATCH] add a test with VIPS_STALL stresses the caching and locality systems --- test/Makefile.am | 2 ++ test/test_stall.sh | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 test/test_stall.sh diff --git a/test/Makefile.am b/test/Makefile.am index 60aac2b0..78660f56 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -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: diff --git a/test/test_stall.sh b/test/test_stall.sh new file mode 100755 index 00000000..4046d49e --- /dev/null +++ b/test/test_stall.sh @@ -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 <