[packages/php-pecl-memcached] create run tests wrapper
glen
glen at pld-linux.org
Tue Nov 22 20:36:14 CET 2016
commit 2a973f5a71ad460481f7f57adcddeb42adfaab64
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Nov 22 21:34:39 2016 +0200
create run tests wrapper
so can easily re-run single test in terminal
php-pecl-memcached.spec | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/php-pecl-memcached.spec b/php-pecl-memcached.spec
index 58abaa9..a559887 100644
--- a/php-pecl-memcached.spec
+++ b/php-pecl-memcached.spec
@@ -82,10 +82,17 @@ phpize
-m > modules.log
grep %{modname} modules.log
+cat <<'EOF' > run-tests.sh
+#!/bin/sh
export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
-%{__make} test \
+exec %{__make} test \
PHP_EXECUTABLE=%{__php} \
- PHP_TEST_SHARED_SYSTEM_EXTENSIONS="spl%{?with_session: session}%{?with_igbinary: igbinary}"
+ PHP_TEST_SHARED_SYSTEM_EXTENSIONS="spl%{?with_session: session}%{?with_igbinary: igbinary}" \
+ RUN_TESTS_SETTINGS="-q $*"
+EOF
+chmod +x run-tests.sh
+
+./run-tests.sh
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-memcached.git/commitdiff/01be7f546099e60d8bff3bcb46a0273e83a47d8b
More information about the pld-cvs-commit
mailing list