]> git.pld-linux.org Git - packages/php-pecl-xhprof.git/commitdiff
update module load testing
authorElan Ruusamäe <glen@delfi.ee>
Sun, 23 Jun 2013 09:58:59 +0000 (12:58 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 23 Jun 2013 09:58:59 +0000 (12:58 +0300)
php-pecl-xhprof.spec

index b850dfa6638c2f995c6302429937422229c70d25..4ee81870bfe4b2c02ba327071b8eb0d06eee6016 100644 (file)
@@ -12,7 +12,7 @@ Source1:      %{modname}.ini
 Source2:       apache.conf
 URL:           http://pecl.php.net/package/xhprof
 BuildRequires: %{php_name}-devel >= 4:5.2.0
-BuildRequires: rpmbuild(macros) >= 1.650
+BuildRequires: rpmbuild(macros) >= 1.666
 %{?requires_php_extension}
 # https://bugs.php.net/61262
 ExclusiveArch: %{ix86} %{x8664}
@@ -74,10 +74,11 @@ cd -
 
 %if %{with tests}
 # simple module load test
-%{__php} --no-php-ini \
-       --define extension_dir=extension/modules \
-       --define extension=%{modname}.so \
-       --modules | grep %{modname}
+%{__php} -n -q \
+       -d extension_dir=extension/modules \
+       -d extension=%{modname}.so \
+       -m > modules.log
+grep %{modname} modules.log
 %endif
 
 %install
This page took 0.058794 seconds and 4 git commands to generate.