On 06/19/15 17:09, Giovanni Bechis wrote:
> Update to latest version with some bugs fixed and better compatibility with 
> newer php.
> Regression tests are still broken, will work on them sooner or later.
>  
new diff with regression tests enabled.
 Cheers
  Giovanni
Index: Makefile
===================================================================
RCS file: /var/cvs/ports/www/pecl-memcache/Makefile,v
retrieving revision 1.23
diff -u -p -r1.23 Makefile
--- Makefile	5 Jun 2015 06:00:22 -0000	1.23
+++ Makefile	19 Jun 2015 21:39:25 -0000
@@ -2,8 +2,7 @@
 
 COMMENT=	PHP interface to memcached
 
-DISTNAME=	memcache-3.0.6
-REVISION=	6
+DISTNAME=	memcache-3.0.8
 MAINTAINER=	William Yodlowsky <[email protected]>
 
 # PHP
@@ -16,5 +15,13 @@ CONFIGURE_ARGS+=	--with-zlib-dir=/usr
 
 post-configure:
 	@perl -pi -e 's,(finish_cmds=").*,\1" #,g' ${WRKSRC}/libtool
+
+# A running memcached server is needed
+TEST_IS_INTERACTIVE=	Yes
+
+do-test:
+	cd ${WRKSRC} && \
+	cp ${FILESDIR}/connect.inc . && \
+	env NO_INTERACTION=Yes TEST_PHP_EXECUTABLE=${MODPHP_BIN} ${MODPHP_BIN} ${WRKSRC}/run-tests.php -d extension=modules/memcache.so
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /var/cvs/ports/www/pecl-memcache/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo	18 Jan 2015 03:15:48 -0000	1.6
+++ distinfo	19 Jun 2015 10:52:00 -0000
@@ -1,2 +1,2 @@
-SHA256 (memcache-3.0.6.tgz) = z2hx8JRO44AixfhJEPMG2DsPUVZLvAhiSiFeBthIZhg=
-SIZE (memcache-3.0.6.tgz) = 54717
+SHA256 (memcache-3.0.8.tgz) = LK5bQj/7/TOiWYKYSfYADU2wGN6+Pins8wVvBmQugxE=
+SIZE (memcache-3.0.8.tgz) = 70523
Index: files/connect.inc
===================================================================
RCS file: files/connect.inc
diff -N files/connect.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/connect.inc	19 Jun 2015 21:37:42 -0000
@@ -0,0 +1,9 @@
+<?php
+# $OpenBSD$
+# Configuration file for regression tests
+$host="localhost";
+$port=11211;
+$host2="localhost";
+$port2=11211;
+$memcache = memcache_connect($host, $port);
+?>

Reply via email to