[packages/php-pecl-sqlite] run tests
glen
glen at pld-linux.org
Sun Apr 27 14:28:42 CEST 2014
commit 863f87c89550ce153567e9872986aa5c771e2bea
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Apr 27 15:28:10 2014 +0300
run tests
php-pecl-sqlite.spec | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/php-pecl-sqlite.spec b/php-pecl-sqlite.spec
index 058d8b7..c8bfc5e 100644
--- a/php-pecl-sqlite.spec
+++ b/php-pecl-sqlite.spec
@@ -32,6 +32,7 @@ BuildRequires: sqlite-devel
%if %{with tests}
BuildRequires: %{php_name}-cli
BuildRequires: %{php_name}-pdo
+BuildRequires: %{php_name}-session
BuildRequires: %{php_name}-spl
%endif
%{?requires_php_extension}
@@ -65,6 +66,15 @@ dysku.
%setup -qc
mv sqlite/* .
+# pdo tests not included
+%{__rm} tests/pdo/common.phpt
+
+# fix later
+mv tests/bug38759.phpt{,.skip}
+mv tests/sqlite_oo_026.phpt{,.skip}
+mv tests/sqlite_session_001.phpt{,.skip}
+mv tests/sqlite_session_002.phpt{,.skip}
+
%build
ver=$(awk '/#define PHP_SQLITE_MODULE_VERSION/ {print $3}' sqlite.c | xargs)
if test "$ver" != "%{sqlitever}"; then
@@ -89,9 +99,18 @@ phpize
-m > modules.log
grep -i %{modname} modules.log
+cat <<'EOF' > run-tests.sh
+#!/bin/sh
export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
%{__make} test \
- PHP_EXECUTABLE=%{__php}
+ PHP_EXECUTABLE=%{__php} \
+ PHP_TEST_SHARED_SYSTEM_EXTENSIONS="spl pdo session" \
+ RUN_TESTS_SETTINGS="-q $*"
+EOF
+
+chmod +x run-tests.sh
+./run-tests.sh -w failed.log
+test -f failed.log -a ! -s failed.log
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-sqlite.git/commitdiff/863f87c89550ce153567e9872986aa5c771e2bea
More information about the pld-cvs-commit
mailing list