[packages/php] always create run-tests.sh for testing, even if not testing
glen
glen at pld-linux.org
Thu Aug 23 23:14:54 CEST 2012
commit 2a34e61b7cfe8213b1ad4f134aa06e05aefd319c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Aug 24 00:14:06 2012 +0300
always create run-tests.sh for testing, even if not testing
php.spec | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/php.spec b/php.spec
index 53c95ee..dc7cc60 100644
--- a/php.spec
+++ b/php.spec
@@ -2333,11 +2333,6 @@ cp -pf Makefile.cli Makefile
exit 1
%endif
-%if %{with tests}
-# Run tests, using the CLI SAPI
-cp -pf php_config.h.cli main/php_config.h
-cp -pf Makefile.cli Makefile
-
cat <<'EOF' > run-tests.sh
#!/bin/sh
export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
@@ -2348,6 +2343,12 @@ unset TZ LANG LC_ALL || :
RUN_TESTS_SETTINGS="-q $*"
EOF
chmod +x run-tests.sh
+
+%if %{with tests}
+# Run tests, using the CLI SAPI
+cp -pf php_config.h.cli main/php_config.h
+cp -pf Makefile.cli Makefile
+
./run-tests.sh -w failed.log -s test.log
# collect failed tests into cleanup script used in prep.
More information about the pld-cvs-commit
mailing list