[packages/php-pecl-memcache] run tests with memcached
glen
glen at pld-linux.org
Wed Nov 23 03:29:08 CET 2016
commit b1a4ab93cfd0bc50b7e22daa2b16322804cd54d2
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Nov 23 04:29:03 2016 +0200
run tests with memcached
php-pecl-memcache.spec | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/php-pecl-memcache.spec b/php-pecl-memcache.spec
index 3447069..1401601 100644
--- a/php-pecl-memcache.spec
+++ b/php-pecl-memcache.spec
@@ -33,6 +33,7 @@ BuildRequires: %{php_name}-cli
BuildRequires: %{php_name}-pcre
BuildRequires: %{php_name}-session
BuildRequires: %{php_name}-spl
+BuildRequires: memcached
%endif
%{?requires_php_extension}
Requires: %{php_name}-session
@@ -92,6 +93,9 @@ mv pecl-%{modname}-*/{.??*,*} .
%patch0 -p1
%patch1 -p1
+# locks up on carme, likely due udp very long timeout
+rm tests/039.phpt
+
%build
packagexml2cl package.xml > ChangeLog
phpize
@@ -120,6 +124,10 @@ exec %{__make} test \
EOF
chmod +x run-tests.sh
+# Launch the Memcached service and stop it on exit
+%{_sbindir}/memcached -p 11211 -U 11211 -d -P $PWD/memcached.pid
+trap 'kill $(cat memcached.pid)' EXIT INT
+
./run-tests.sh
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-memcache.git/commitdiff/b1a4ab93cfd0bc50b7e22daa2b16322804cd54d2
More information about the pld-cvs-commit
mailing list