Changes of Revision 6
[-] | Changed | php-pecl-msgpack-php7.spec |
x 1
2 %global pecl_name msgpack 3 %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} 4 %global ini_name 40-%{pecl_name}.ini 5 - 6 +%global with_tests 0 7 %if 0 8 %global with_msgpack 1 9 %else 10
11 --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ 12 --modules | grep %{pecl_name} 13 14 +%if %{with_tests} 15 : Upstream test suite for NTS extension 16 TEST_PHP_EXECUTABLE=%{__php} \ 17 TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{pecl_name}.so" \ 18 NO_INTERACTION=1 \ 19 REPORT_EXIT_STATUS=1 \ 20 %{__php} -n run-tests.php --show-diff 21 +%endif 22 23 %if %{with_zts} 24 cd ../ZTS 25
26 --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ 27 --modules | grep %{pecl_name} 28 29 +%if %{with_tests} 30 : Upstream test suite for ZTS extension 31 TEST_PHP_EXECUTABLE=%{__ztsphp} \ 32 TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{pecl_name}.so" \ 33
34 REPORT_EXIT_STATUS=1 \ 35 %{__ztsphp} -n run-tests.php --show-diff 36 %endif 37 +%endif 38 39 40 %if 0%{?fedora} < 24 41 |