[Windows] win: add vcredist 2010 test (#4160)

This commit is contained in:
Aleksandr Chebotov
2021-09-29 09:40:01 +03:00
committed by GitHub
parent efcefca087
commit b930b3d9d8
4 changed files with 21 additions and 2 deletions

View File

@@ -12,4 +12,6 @@ if (Test-IsWin19) {
$ArgumentList = ("/install", "/quiet", "/norestart")
Install-Binary -Url $Vc2010x86URI -Name $Vc2010x86Name -ArgumentList $ArgumentList
Install-Binary -Url $Vc2010x64URI -Name $Vc2010x64Name -ArgumentList $ArgumentList
}
}
Invoke-PesterTests -TestFile "Tools" -TestName "VCRedist"

View File

@@ -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) {
It "WebPlatformInstaller" {
"WebPICMD" | Should -ReturnZeroExitCode

View File

@@ -143,6 +143,8 @@
},
{
"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"
},
{

View File

@@ -144,7 +144,6 @@
{
"type": "powershell",
"scripts": [
"{{ template_dir }}/scripts/Installers/Install-VCRedist.ps1",
"{{ template_dir }}/scripts/Installers/Install-Docker.ps1",
"{{ template_dir }}/scripts/Installers/Install-PowershellCore.ps1"
]