com php-src: prepend known bin folders to the path for nmake test runs: win32/build/Makefile win32/build/confutils.js
| From: | Anatol Belski | Date: | Thu, 27 Oct 2016 18:41:41 +0000 |
| Subject: | com php-src: prepend known bin folders to the path for nmake test runs: win32/build/Makefile win32/build/confutils.js | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95309@lists.php.net to get a copy of this message | ||
Commit: 1be8339891be8a60ad66b9128f13aa8c8b94c580
Author: Anatol Belski <ab@php.net> Thu, 27 Oct 2016 20:41:41 +0200
Parents: e586c7c61252a92da31d7aa5f5c883fb86c31352
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1be8339891be8a60ad66b9128f13aa8c8b94c580
Log:
prepend known bin folders to the path for nmake test runs
Changed paths:
M win32/build/Makefile
M win32/build/confutils.js
Diff:
diff --git a/win32/build/Makefile b/win32/build/Makefile
index 33f145f..813d92a 100644
--- a/win32/build/Makefile
+++ b/win32/build/Makefile
@@ -151,7 +151,7 @@ clean-pgo: clean-all
-del /f /q
$(BUILD_DIR)\pecl-$(PHP_VERSION_STRING)$(PHP_ZTS_ARCHIVE_POSTFIX)-Win32-$(PHP_COMPILER_SHORT)-$(PHP_ARCHITECTURE).zip
-del /f /q $(BUILD_DIR)\php-test-pack-$(PHP_VERSION_STRING).zip
-test:
+test: set-test-env
"$(BUILD_DIR)\php.exe" -d open_basedir= -d output_buffering=0 run-tests.php $(TESTS) -p
"$(BUILD_DIR)\php.exe"
build-snap: generated_files
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index e4270f7..2481b94 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -2127,6 +2127,21 @@ function generate_makefile()
}
TF.Close();
+ MF.WriteBlankLines(1);
+
+ var extra_path = PHP_PHP_BUILD + "\\bin";
+ if (PHP_EXTRA_LIBS.length) {
+ path = PHP_EXTRA_LIBS.split(';');
+ for (i = 0; i < path.length; i++) {
+ f = FSO.GetAbsolutePathName(path[i] + "\\..\\bin");
+ if (FSO.FolderExists(f)) {
+ extra_path = extra_path + ";" + f;
+ }
+ }
+ }
+ MF.WriteLine("set-test-env:");
+ MF.WriteLine(" @set PATH=" + extra_path + ";%PATH%");
+
MF.WriteBlankLines(2);
MFO.Close();