From c485d9ea3958f4304836cc37168d463c5f78d12a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 17 Oct 2017 20:32:31 +0300 Subject: [PATCH] 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 -- 2.43.0