]> git.pld-linux.org Git - packages/php.git/commitdiff
always create run-tests.sh for testing, even if not testing
authorElan Ruusamäe <glen@delfi.ee>
Thu, 23 Aug 2012 21:14:06 +0000 (00:14 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 23 Aug 2012 21:14:49 +0000 (00:14 +0300)
php.spec

index 53c95ee2641829ad167ddd8b76c4e73542a3df3b..dc7cc606b973fea895a90e028d830d06109d3821 100644 (file)
--- 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.
This page took 0.056909 seconds and 4 git commands to generate.