|
|
|
@ -389,6 +389,50 @@ jobs: |
|
|
|
throw "Unexpected Windows smoke output: $stdout" |
|
|
|
throw "Unexpected Windows smoke output: $stdout" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Run Windows Nano smoke test |
|
|
|
|
|
|
|
shell: pwsh |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
$ErrorActionPreference = 'Stop' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$env:PHPRC = Join-Path $env:PHP_HOME 'php.ini' |
|
|
|
|
|
|
|
$env:PATH = "$env:PHPX_HOME\build;$env:PATH" |
|
|
|
|
|
|
|
$nanoExe = Join-Path '${{ github.workspace }}' 'tests\windows\smoke\windows_nano_smoke.exe' |
|
|
|
|
|
|
|
& .\tpc.exe tests\windows\smoke\project.yml --nano --output $nanoExe --job 1 --no-progress |
|
|
|
|
|
|
|
if ($LASTEXITCODE -ne 0) { |
|
|
|
|
|
|
|
throw "Windows Nano smoke project compilation failed with exit code $LASTEXITCODE" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Remove-Item Env:PHPRC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (-not (Test-Path $nanoExe)) { |
|
|
|
|
|
|
|
throw "Windows Nano smoke executable was not generated: $nanoExe" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$processInfo = [Diagnostics.ProcessStartInfo]::new() |
|
|
|
|
|
|
|
$processInfo.FileName = $nanoExe |
|
|
|
|
|
|
|
$processInfo.ArgumentList.Add('zts') |
|
|
|
|
|
|
|
$processInfo.UseShellExecute = $false |
|
|
|
|
|
|
|
$processInfo.RedirectStandardOutput = $true |
|
|
|
|
|
|
|
$processInfo.RedirectStandardError = $true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$process = [Diagnostics.Process]::new() |
|
|
|
|
|
|
|
$process.StartInfo = $processInfo |
|
|
|
|
|
|
|
if (-not $process.Start()) { |
|
|
|
|
|
|
|
throw 'Unable to start the Windows Nano smoke executable' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$stdout = $process.StandardOutput.ReadToEnd() |
|
|
|
|
|
|
|
$stderr = $process.StandardError.ReadToEnd() |
|
|
|
|
|
|
|
$process.WaitForExit() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Write-Host "Windows Nano smoke stdout: $stdout" |
|
|
|
|
|
|
|
Write-Host "Windows Nano smoke stderr: $stderr" |
|
|
|
|
|
|
|
Write-Host "Windows Nano smoke exit code: $($process.ExitCode)" |
|
|
|
|
|
|
|
if ($process.ExitCode -ne 0) { |
|
|
|
|
|
|
|
throw "Windows Nano smoke executable failed with exit code $($process.ExitCode)" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if ($stdout.Trim() -ne 'windows-smoke-ok:zts') { |
|
|
|
|
|
|
|
throw "Unexpected Windows Nano smoke output: $stdout" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
- name: Package tested Windows compiler |
|
|
|
- name: Package tested Windows compiler |
|
|
|
if: startsWith(github.ref, 'refs/tags/') |
|
|
|
if: startsWith(github.ref, 'refs/tags/') |
|
|
|
shell: pwsh |
|
|
|
shell: pwsh |
|
|
|
@ -497,6 +541,7 @@ jobs: |
|
|
|
path: | |
|
|
|
path: | |
|
|
|
tpc.exe |
|
|
|
tpc.exe |
|
|
|
tests/windows/smoke/windows_smoke.exe |
|
|
|
tests/windows/smoke/windows_smoke.exe |
|
|
|
|
|
|
|
tests/windows/smoke/windows_nano_smoke.exe |
|
|
|
tests/windows/smoke/build/**/*.cc |
|
|
|
tests/windows/smoke/build/**/*.cc |
|
|
|
tests/windows/smoke/build/**/*.h |
|
|
|
tests/windows/smoke/build/**/*.h |
|
|
|
tests/windows/smoke/build/**/*.rsp |
|
|
|
tests/windows/smoke/build/**/*.rsp |
|
|
|
|