remi pushed to php-horde-Horde-Auth (master). "skip test suite with php 5.3 (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Apr 15 05:48:06 UTC 2015


>From bd51fb4ad08504bac7f6f195a2557868f6c5c552 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi at fedoraproject.org>
Date: Wed, 15 Apr 2015 07:44:08 +0200
Subject: skip test suite with php 5.3

(cherry picked from commit 57b9dd1b5bf5a13cb5f99ab0974ee0a794579caa)

diff --git a/php-horde-Horde-Auth.spec b/php-horde-Horde-Auth.spec
index ddd3b65..a5d7363 100644
--- a/php-horde-Horde-Auth.spec
+++ b/php-horde-Horde-Auth.spec
@@ -119,8 +119,11 @@ done | tee ../%{pear_name}.lang
 
 %check
 cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:)
-phpunit .
-
+# hex2bin is 5.4 only
+if php -r 'exit(function_exists("hex2bin") ? 0 : 1);'
+then   phpunit .
+else   : test ignored
+fi
 
 %post
 %{__pear} install --nodeps --soft --force --register-only \
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/php-horde-Horde-Auth.git/commit/?h=master&id=bd51fb4ad08504bac7f6f195a2557868f6c5c552


More information about the scm-commits mailing list