]> git.pld-linux.org Git - packages/php-pecl-msgpack.git/commitdiff
add run-test wrapper
authorElan Ruusamäe <glen@delfi.ee>
Tue, 22 Nov 2016 19:41:47 +0000 (21:41 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 22 Nov 2016 19:41:47 +0000 (21:41 +0200)
to be able to re-run failed tests with proper env

php-pecl-msgpack.spec

index 6ab4d223cd3a62873c7bbeb5c41f0334f11fc21a..ce346cc46beed135d4176c57f5a4ea34f9fcca1a 100644 (file)
@@ -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
This page took 0.09335 seconds and 4 git commands to generate.