Fix update PATH with the TestApp directoy for ProcessTest

This commit is contained in:
Francis ANDRE
2018-10-05 15:31:16 +02:00
parent 4cd077101b
commit 3e242f741a
5 changed files with 70 additions and 79 deletions

View File

@@ -42,6 +42,17 @@ model {
testSuites {
MySQLTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
testing $.components.TestSuite
binaries.all {
String PATH = tasks.run.environment.get("Path")
if (targetPlatform.name.equals("win32")) {
PATH = "$mysql32Home" + "/bin;$PATH"
} else
if (targetPlatform.name.equals("win64")) {
PATH = "$mysql64Home" + "/bin;$PATH"
}
tasks.run.environment "Path", PATH
}
}
}
binaries {