[packages/php-pecl-imagick] Update failed tests
glen
glen at pld-linux.org
Fri Mar 5 15:29:06 CET 2021
commit 96575c7ee4d003ef2fdfb51a039b2a738fad5a79
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Fri Mar 5 16:29:01 2021 +0200
Update failed tests
php-pecl-imagick.spec | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/php-pecl-imagick.spec b/php-pecl-imagick.spec
index 65c41b5..171ec2c 100644
--- a/php-pecl-imagick.spec
+++ b/php-pecl-imagick.spec
@@ -68,18 +68,21 @@ mv %{modname}-%{version}/* .
%patch0 -p1
xfail() {
- t=$1
+ local t=$1
+ test -f $t
cat >> $t <<-EOF
--XFAIL--
Skip
EOF
}
-Test() {
- nf=$(eval echo \$$#)
- t=$nf; t=${t#\[}; t=${t%\]}
+
+while read line; do
+ t=${line##*\[}; t=${t%\]}
+ test -z "$t" -o "${t:0:1}" = '#' && continue
xfail $t
-}
+done << 'EOF'
+
# skip failing tests
Test Imagick, annotateImage [tests/034_Imagick_annotateImage_basic.phpt]
Test Imagick, setRegistry and getRegistry [tests/150_Imagick_setregistry.phpt]
@@ -110,6 +113,13 @@ Test ImagickPixelIterator, setIteratorRow [tests/251_ImagickPixelIterator_setIte
# Fail on 5.3, 5.5, 5.6, 7.0, 7.1, 7.2
Test Tutorial, fxAnalyzeImage [tests/229_Tutorial_fxAnalyzeImage_case1.phpt]
+# 5.3, 5.5, 5.6, 7.0/x32, 7.1, 7.2, 7.3, 7.4
+ImagickKernel::fromMatrix exceptions [tests/280_imagickkernel_exception_invalid_origin.phpt]
+Imagick::setImageAlpha [tests/274_imagick_setImageAlpha.phpt]
+Test ImagickDraw:: setTextInterlineSpacing [tests/279_ImagickDraw_setTextInterlineSpacing.phpt]
+Test Imagick::optimizeimagelayers and Imagick::optimizeimagetransparency [tests/278_Imagick_optimaze_gif.phpt]
+EOF
+
%build
phpize
%configure \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-imagick.git/commitdiff/96575c7ee4d003ef2fdfb51a039b2a738fad5a79
More information about the pld-cvs-commit
mailing list