[projects/template-specs] php: another version of tests run

glen glen at pld-linux.org
Thu Jul 17 21:15:27 CEST 2014


commit 023d66442b231edb42f0197d0d2e1c915e2baa69
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jul 17 22:15:08 2014 +0300

    php: another version of tests run

 php-pecl.spec | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
---
diff --git a/php-pecl.spec b/php-pecl.spec
index b20bba4..04bf0d0 100644
--- a/php-pecl.spec
+++ b/php-pecl.spec
@@ -45,6 +45,20 @@ grep %{modname} modules.log
 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
 %{__make} test \
 	PHP_EXECUTABLE=%{__php}
+
+# or:
+cat <<'EOF' > run-tests.sh
+#!/bin/sh
+export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
+%{__make} test \
+	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/projects/template-specs.git/commitdiff/023d66442b231edb42f0197d0d2e1c915e2baa69



More information about the pld-cvs-commit mailing list