From ef49490394890040ec933068a79f6b4b09d5439c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 17 Mar 2014 15:21:38 +0100 Subject: php-pecl-qb: display failed test diff --- php-pecl-qb.spec | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'php-pecl-qb.spec') diff --git a/php-pecl-qb.spec b/php-pecl-qb.spec index a6c5a75..ebab82e 100644 --- a/php-pecl-qb.spec +++ b/php-pecl-qb.spec @@ -152,7 +152,7 @@ fi %check -# Need investigation +# Need investigation - https://github.com/chung-leong/qb/issues/25 %if 0%{?rhel} < 7 && 0%{?fedora} < 19 %ifarch %{ix86} rm ?TS/tests/intrinsic-cos.phpt @@ -168,11 +168,20 @@ cd NTS --modules | grep %{pecl_name} : Upstream test suite for NTS extension -TEST_PHP_EXECUTABLE=%{__php} \ -TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \ -NO_INTERACTION=1 \ -REPORT_EXIT_STATUS=1 \ -%{__php} -n run-tests.php +export TEST_PHP_EXECUTABLE=%{__php} +export TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" +export NO_INTERACTION=1 +export REPORT_EXIT_STATUS=1 +if ! %{__php} run-tests.php +then + for i in tests/*diff + do + echo "---- FAILURE in $i" + cat $i + echo -n "\n----" + done + exit 1 +fi %if %{with_zts} cd ../ZTS @@ -211,5 +220,6 @@ rm -rf %{buildroot} %changelog * Mon Mar 17 2014 Remi Collet - 2.1.1-1 - initial package, version 2.1.1 (stable) +- https://github.com/chung-leong/qb/issues/23 - Bad archive - https://github.com/chung-leong/qb/issues/24 - ZTS broken -- https://github.com/chung-leong/qb/issues/23 - Bad archive \ No newline at end of file +- https://github.com/chung-leong/qb/issues/25 - Failed tests \ No newline at end of file -- cgit