Skip to content

Commit 159259d

Browse files
committed
Specify temp directory for tests
Improve test params
1 parent 7063932 commit 159259d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

php/BuildPhp/public/Invoke-PhpTests.ps1

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ function Invoke-PhpTests {
4848

4949
New-Item "$buildDirectory" -ItemType "directory" -Force > $null 2>&1
5050

51+
New-Item "$buildDirectory\tmp" -ItemType "directory" -Force > $null 2>&1
52+
5153
Set-Location "$buildDirectory"
5254

5355
Add-TestRequirements -PhpVersion $PhpVersion -Arch $Arch -Ts $Ts -VsVersion $VsData.vs -TestsDirectory $testsDirectory -ArtifactsDirectory $currentDirectory\artifacts
@@ -76,7 +78,18 @@ function Invoke-PhpTests {
7678

7779
$settings = Get-TestSettings -PhpVersion $PhpVersion
7880

79-
php $settings.runner $settings.progress "-g" "FAIL,BORK,WARN,LEAK" "-r" "tests-to-run.txt"
81+
php `
82+
$settings.runner `
83+
$settings.progress `
84+
"-g" "FAIL,BORK,WARN,LEAK" `
85+
"-q" `
86+
"--offline" `
87+
"--show-diff" `
88+
"--show-slow" "1000" `
89+
"--set-timeout" "120" `
90+
"--temp-source" "$buildDirectory\tmp" `
91+
"--temp-target" "$buildDirectory\tmp" `
92+
"-r" "tests-to-run.txt"
8093

8194
Copy-Item "$buildDirectory\test-$Arch-$Ts-$Opcache.xml" $currentDirectory
8295

0 commit comments

Comments
 (0)