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

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Apr 15 05:44:22 UTC 2015


>From 57b9dd1b5bf5a13cb5f99ab0974ee0a794579caa 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


diff --git a/php-horde-Horde-Auth.spec b/php-horde-Horde-Auth.spec
index 7dc2d0f..beac938 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=el6&id=57b9dd1b5bf5a13cb5f99ab0974ee0a794579caa


More information about the scm-commits mailing list