]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
php: another version of tests run
authorElan Ruusamäe <glen@delfi.ee>
Thu, 17 Jul 2014 19:15:08 +0000 (22:15 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 17 Jul 2014 19:15:08 +0000 (22:15 +0300)
php-pecl.spec

index b20bba4f47676922dec9283e1f94b7bb4bc2ead8..04bf0d0de0970d905271bf7a6df48e31602a837d 100644 (file)
@@ -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
This page took 0.121225 seconds and 4 git commands to generate.