[packages/php-pecl-mongodb] always run module load test
glen
glen at pld-linux.org
Tue Oct 17 19:36:36 CEST 2017
commit c485d9ea3958f4304836cc37168d463c5f78d12a
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Tue Oct 17 20:32:31 2017 +0300
always run module load test
php-pecl-mongodb.spec | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl-mongodb.spec b/php-pecl-mongodb.spec
index e09a677..c6c9cf1 100644
--- a/php-pecl-mongodb.spec
+++ b/php-pecl-mongodb.spec
@@ -68,8 +68,7 @@ phpize
%{__make}
-%if %{with tests}
-# simple module load test
+# simple module load test, always enabled
%{__php} -n -q \
-d extension_dir=modules \
-d extension=%{php_extensiondir}/json.so \
@@ -78,10 +77,18 @@ phpize
-m > modules.log
grep %{modname} modules.log
+%if %{with tests}
+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="json"
+ PHP_TEST_SHARED_SYSTEM_EXTENSIONS="json spl" \
+ 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-mongodb.git/commitdiff/29b44cd39f32f1b1f4103630d9d22e8354565bee
More information about the pld-cvs-commit
mailing list