commit 0a9c573e333b807df846621e339e4c660d45d5da
Author: Elan Ruusamäe <[email protected]>
Date:   Tue Nov 22 21:41:47 2016 +0200

    add run-test wrapper
    
    to be able to re-run failed tests with proper env

 php-pecl-msgpack.spec | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
---
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-msgpack.git/commitdiff/0a9c573e333b807df846621e339e4c660d45d5da

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to