2019-12-18 15:41:35 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# set -x
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. ./variables.sh
|
|
|
|
|
|
|
|
if test_supported tiffload; then
|
2019-12-18 18:29:34 +01:00
|
|
|
VIPS_STALL=1 $vips copy $image $tmp/x.tif
|
2019-12-18 15:41:35 +01:00
|
|
|
cat > $tmp/mask.con <<EOF
|
|
|
|
3 3 8 0
|
|
|
|
-1 -1 -1
|
|
|
|
-1 16 -1
|
|
|
|
-1 -1 -1
|
|
|
|
EOF
|
2019-12-18 18:29:34 +01:00
|
|
|
VIPS_STALL=1 $vips conv $tmp/x.tif $tmp/x2.tif $tmp/mask.con
|
skip some skippable tests (#3102)
* tests: consolidate redundant, duplicated helper code
These functions currently exist in a sourced shell library, but there is
an identical copy of them in a single test file. Get rid of this
duplicate definition.
* tests: mark some tests as skipped if bc is not installed
`exit 77` is the GNU exitcode protocol for tests that cannot be run
because their prerequisites are not available. If `bc` is not installed,
and it often isn't, the test can be short-circuited instead of failing;
meson will report them in "warning yellow".
* tests: mark some tests as skipped if support is not compiled
Not all test cases can be cleanly marked as skipped -- sometimes,
multiple things are checked, and having one be unavailable should not
mean skipping all tests.
But in a couple cases, a test file only tests one thing, and that may be
skipped. In such cases, it can be semantically indicated in the test
harness report collection, that a skip occurred.
2022-10-19 19:13:48 +02:00
|
|
|
else
|
|
|
|
exit 77
|
2019-12-18 15:41:35 +01:00
|
|
|
fi
|