mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 14:17:22 +00:00
[Windows] win: add vcredist 2010 test (#4160)
This commit is contained in:
committed by
GitHub
parent
efcefca087
commit
b930b3d9d8
@@ -13,3 +13,5 @@ if (Test-IsWin19) {
|
|||||||
Install-Binary -Url $Vc2010x86URI -Name $Vc2010x86Name -ArgumentList $ArgumentList
|
Install-Binary -Url $Vc2010x86URI -Name $Vc2010x86Name -ArgumentList $ArgumentList
|
||||||
Install-Binary -Url $Vc2010x64URI -Name $Vc2010x64Name -ArgumentList $ArgumentList
|
Install-Binary -Url $Vc2010x64URI -Name $Vc2010x64Name -ArgumentList $ArgumentList
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Invoke-PesterTests -TestFile "Tools" -TestName "VCRedist"
|
||||||
|
|||||||
@@ -165,6 +165,22 @@ Describe "Vcpkg" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "VCRedist" -Skip:(Test-IsWin22) {
|
||||||
|
It "vcredist_140" -Skip:(Test-IsWin19) {
|
||||||
|
"C:\Windows\System32\vcruntime140.dll" | Should -Exist
|
||||||
|
}
|
||||||
|
|
||||||
|
It "vcredist_2010_x64" -Skip:(Test-IsWin16) {
|
||||||
|
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1D8E6291-B0D5-35EC-8441-6616F567A0F7}" | Should -Exist
|
||||||
|
"C:\Windows\System32\msvcr100.dll" | Should -Exist
|
||||||
|
}
|
||||||
|
|
||||||
|
It "vcredist_2010_x64" -Skip:(Test-IsWin16) {
|
||||||
|
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1D8E6291-B0D5-35EC-8441-6616F567A0F7}" | Should -Exist
|
||||||
|
"C:\Windows\System32\msvcr100.dll" | Should -Exist
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Describe "WebPlatformInstaller" -Skip:(Test-IsWin22) {
|
Describe "WebPlatformInstaller" -Skip:(Test-IsWin22) {
|
||||||
It "WebPlatformInstaller" {
|
It "WebPlatformInstaller" {
|
||||||
"WebPICMD" | Should -ReturnZeroExitCode
|
"WebPICMD" | Should -ReturnZeroExitCode
|
||||||
|
|||||||
@@ -143,6 +143,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "windows-restart",
|
"type": "windows-restart",
|
||||||
|
"check_registry": true,
|
||||||
|
"restart_check_command": "powershell -command \"& {if (-not (Get-Process TiWorker.exe -ErrorAction SilentlyContinue)) { Write-Output 'Restart complete' }}\"",
|
||||||
"restart_timeout": "30m"
|
"restart_timeout": "30m"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -144,7 +144,6 @@
|
|||||||
{
|
{
|
||||||
"type": "powershell",
|
"type": "powershell",
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"{{ template_dir }}/scripts/Installers/Install-VCRedist.ps1",
|
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Docker.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Docker.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-PowershellCore.ps1"
|
"{{ template_dir }}/scripts/Installers/Install-PowershellCore.ps1"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user