[packages/php-pecl-memcache] mark tests properly skipped

glen glen at pld-linux.org
Wed Nov 23 03:02:27 CET 2016


commit 8d125064d199615c594681be3d0bed7b7edaf308
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Nov 23 04:02:12 2016 +0200

    mark tests properly skipped
    
    https://github.com/websupport-sk/pecl-memcache/pull/16

 php-pecl-memcache.spec |  2 ++
 tests.patch            | 20 ++++++++++++++++++++
 2 files changed, 22 insertions(+)
---
diff --git a/php-pecl-memcache.spec b/php-pecl-memcache.spec
index e2f6502..9d8dcf4 100644
--- a/php-pecl-memcache.spec
+++ b/php-pecl-memcache.spec
@@ -21,6 +21,7 @@ Source2:	%{modname}-apache.conf
 Source3:	%{modname}-lighttpd.conf
 Source4:	config.php
 Patch0:		%{modname}-webapp.patch
+Patch1:		tests.patch
 URL:		http://pecl.php.net/package/memcache/
 BuildRequires:	%{php_name}-devel >= 3:5.0.0
 BuildRequires:	%{php_name}-xml
@@ -88,6 +89,7 @@ memcache.
 %setup -qc
 mv pecl-%{modname}-*/{.??*,*} .
 %patch0 -p1
+%patch1 -p1
 
 %build
 packagexml2cl package.xml > ChangeLog
diff --git a/tests.patch b/tests.patch
new file mode 100644
index 0000000..3976663
--- /dev/null
+++ b/tests.patch
@@ -0,0 +1,20 @@
+
+move connect to proper section to make SKIP work
+
+https://github.com/websupport-sk/pecl-memcache/pull/16
+
+--- php70-pecl-memcache-3.0.9/tests/pecl16442.phpt~	2016-11-23 03:56:10.000000000 +0200
++++ php70-pecl-memcache-3.0.9/tests/pecl16442.phpt	2016-11-23 03:57:20.017464335 +0200
+@@ -1,10 +1,10 @@
+ --TEST--
+ PECL bug #16442 (memcache_set fail with integer value)
++--SKIPIF--
++<?php include 'connect.inc'; ?>
+ --FILE--
+ <?php
+ 
+-include 'connect.inc';
+-
+ $memcache_obj = memcache_connect('localhost', 11211);
+ memcache_set($memcache_obj, 'test123112', 1, MEMCACHE_COMPRESSED, 30);
+ $ret = memcache_get($memcache_obj, 'test123112');
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-memcache.git/commitdiff/8d125064d199615c594681be3d0bed7b7edaf308



More information about the pld-cvs-commit mailing list