]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
pecl: add example how to make failed tests as XFAIL
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 28 Oct 2017 20:23:58 +0000 (23:23 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 28 Oct 2017 20:23:58 +0000 (23:23 +0300)
php-pecl.spec

index 3fff798a8bf93b27882ee1ad93ff99b541bfb79d..4682aebc11db8b7f9a08f1a67c60d651edbc7045 100644 (file)
@@ -34,6 +34,25 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %setup -qc
 mv %{modname}-%{version}/* .
 
+xfail() {
+       local t=$1
+       test -f $t
+       cat >> $t <<-EOF
+
+       --XFAIL--
+       Skip
+       EOF
+}
+
+# failed tests. investigate later
+while read line; do
+       t=${line##*\[}; t=${t%\]}
+       xfail $t
+done << 'EOF'
+Test for blowfish compatibility [tests/blowfish.phpt]
+Bug #8040 (MCRYPT_MODE_* do not seem to exist) [tests/bug8040.phpt]
+EOF
+
 %build
 phpize
 %configure
This page took 0.097007 seconds and 4 git commands to generate.