[packages/php-pecl-archive] run project tests

glen glen at pld-linux.org
Thu Jun 12 17:37:02 CEST 2014


commit c95c8d58fa49cf7c7a4ad0e4a05352d6fdb1debd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jun 12 18:37:00 2014 +0300

    run project tests

 php-pecl-archive.spec | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
---
diff --git a/php-pecl-archive.spec b/php-pecl-archive.spec
index b86a4c2..3bd89a7 100644
--- a/php-pecl-archive.spec
+++ b/php-pecl-archive.spec
@@ -42,6 +42,15 @@ To rozszerzenie ma w PECL status: %{status}.
 mv %{modname}-*/* .
 %patch100 -p1
 
+# these segfault
+rm tests/add_bz2/001.phpt
+rm tests/add_gz/001.phpt
+
+# print_r of exception object differs in php 5.5
+rm tests/list_gz/001.phpt
+rm tests/list/001.phpt
+rm tests/list_bz2/001.phpt
+
 %build
 phpize
 %configure
@@ -54,6 +63,17 @@ phpize
 	-dextension=%{modname}.so \
 	-m > modules.log
 grep %{modname} modules.log
+
+cat <<'EOF' > run-tests.sh
+#!/bin/sh
+%{__make} test \
+	PHP_EXECUTABLE=%{__php} \
+	RUN_TESTS_SETTINGS="-q $*"
+EOF
+
+chmod +x run-tests.sh
+./run-tests.sh -w failed.log --show-out
+test -f failed.log -a ! -s failed.log
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-archive.git/commitdiff/c95c8d58fa49cf7c7a4ad0e4a05352d6fdb1debd



More information about the pld-cvs-commit mailing list