Skip to content

Commit

Permalink
prepend known bin folders to the path for nmake test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Oct 27, 2016
1 parent e586c7c commit 1be8339
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion win32/build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions win32/build/confutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1be8339

Please sign in to comment.