[php-horde-Horde-Compress/el6] Enable tests

Nick Bebout nb at fedoraproject.org
Wed Mar 27 19:53:47 UTC 2013


commit 14f752bcbe464a84674ee249529f6436c01f8684
Author: Nick Bebout <nb at fedoraproject.org>
Date:   Wed Mar 27 14:53:38 2013 -0500

    Enable tests

 php-horde-Horde-Compress.spec |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/php-horde-Horde-Compress.spec b/php-horde-Horde-Compress.spec
index 107aad3..98d8022 100644
--- a/php-horde-Horde-Compress.spec
+++ b/php-horde-Horde-Compress.spec
@@ -5,7 +5,7 @@
 
 Name:           php-horde-Horde-Compress
 Version:        2.0.3
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Horde Compression API
 
 Group:          Development/Libraries
@@ -18,8 +18,8 @@ BuildRequires:  php-pear(PEAR) >= 1.7.0
 BuildRequires:  php-channel(%{pear_channel})
 BuildRequires:  gettext
 # To run unit tests
-#BuildRequires:  php-pear(%{pear_channel}/Horde_Test) >= 2.1.0
-#BuildRequires:  php-pear(%{pear_channel}/Horde_Stream_Filter) >= 2.0.0
+BuildRequires:  php-pear(%{pear_channel}/Horde_Test) >= 2.1.0
+BuildRequires:  php-pear(%{pear_channel}/Horde_Stream_Filter) >= 2.0.0
 
 Requires(post): %{__pear}
 Requires(postun): %{__pear}
@@ -84,13 +84,13 @@ do
 done | tee ../%{pear_name}.lang
 
 
-#%check
-#src=${pwd}/%{pear_name}-%{version}
-#cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
-#phpunit \
-#    -d include_path=$src/lib:.:%{pear_phpdir} \
-#    -d date.timezone=UTC \
-#    .
+%check
+src=${pwd}/%{pear_name}-%{version}
+cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
+phpunit \
+    -d include_path=$src/lib:.:%{pear_phpdir} \
+    -d date.timezone=UTC \
+    .
 
 %post
 %{__pear} install --nodeps --soft --force --register-only \
@@ -114,6 +114,9 @@ fi
 
 
 %changelog
+* Thu Mar 27 2013 Nick Bebout <nb at fedoraproject.org> - 2.0.3-4
+- Enable tests
+
 * Wed Mar 20 2013 Nick Bebout <nb at fedoraproject.org> - 2.0.3-3
 - Update for review
 


More information about the scm-commits mailing list