From: Elan Ruusamäe Date: Tue, 22 Nov 2016 19:41:47 +0000 (+0200) Subject: add run-test wrapper X-Git-Tag: auto/th/php-pecl-msgpack-2.0.1-1~4 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=0a9c573e333b807df846621e339e4c660d45d5da;p=packages%2Fphp-pecl-msgpack.git add run-test wrapper to be able to re-run failed tests with proper env --- diff --git a/php-pecl-msgpack.spec b/php-pecl-msgpack.spec index 6ab4d22..ce346cc 100644 --- a/php-pecl-msgpack.spec +++ b/php-pecl-msgpack.spec @@ -54,10 +54,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="pcre spl session" + PHP_TEST_SHARED_SYSTEM_EXTENSIONS="pcre spl session" \ + RUN_TESTS_SETTINGS="-q $*" +EOF +chmod +x run-tests.sh + +./run-tests.sh %endif %install