[packages/php/PHP_5_4] always create run-tests.sh for testing, even if not testing

glen glen at pld-linux.org
Thu Aug 23 23:14:12 CEST 2012


commit 336b95c5421e8adc8a9f3fe0ac123a2d03f35d1f
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 d518e92..f1f87ab 100644
--- a/php.spec
+++ b/php.spec
@@ -2320,11 +2320,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
@@ -2335,6 +2330,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