[packages/php-pecl-timecop] create run-tests.sh in prep
glen
glen at pld-linux.org
Sat Oct 28 22:28:00 CEST 2017
commit 3ea325698b130857c3e6b1cdce64a785394e1159
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Sat Oct 28 23:27:53 2017 +0300
create run-tests.sh in prep
php-pecl-timecop.spec | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl-timecop.spec b/php-pecl-timecop.spec
index 466ea9b..5c2f86f 100644
--- a/php-pecl-timecop.spec
+++ b/php-pecl-timecop.spec
@@ -32,6 +32,16 @@ capabilities, inspired by ruby timecop gem.
%setup -qc
mv %{modname}-%{version}/* .
+cat <<'EOF' > run-tests.sh
+#!/bin/sh
+export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
+exec %{__make} test \
+ PHP_EXECUTABLE=%{__php} \
+ PHP_TEST_SHARED_SYSTEM_EXTENSIONS="" \
+ RUN_TESTS_SETTINGS="-q $*"
+EOF
+chmod +x run-tests.sh
+
%build
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_TIMECOP_VERSION/{s/.* "//;s/".*$//;p}' php_timecop.h)
@@ -54,10 +64,7 @@ phpize
grep %{modname} modules.log
%if %{with tests}
-export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
-%{__make} test \
- PHP_EXECUTABLE=%{__php} \
- PHP_TEST_SHARED_SYSTEM_EXTENSIONS=""
+./run-tests.sh
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-timecop.git/commitdiff/3ea325698b130857c3e6b1cdce64a785394e1159
More information about the pld-cvs-commit
mailing list