mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-28 20:38:12 +08:00
removed VS buildtools installation
This commit is contained in:
@@ -9,12 +9,12 @@ Describe "SSDTExtensions" {
|
||||
)
|
||||
|
||||
It "Extensions id=<id>" -TestCases $testExtenions {
|
||||
$version = Get-VSExtensionVersion -PackageName "${id}"
|
||||
$version = Get-VSExtensionVersion -packageName "${id}"
|
||||
$version | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
} else {
|
||||
It "Extension SSDT" {
|
||||
$version = Get-VSExtensionVersion -PackageName "SSDT"
|
||||
$version = Get-VSExtensionVersion -packageName "SSDT"
|
||||
$version | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,27 +5,17 @@ Describe "Visual Studio" {
|
||||
}
|
||||
|
||||
It "Devenv.exe" {
|
||||
$vsInstallRoot = (Get-VisualStudioProduct -ProductType "VisualStudio").InstallationPath
|
||||
$vsInstallRoot = Get-VisualStudioPath
|
||||
$devenvexePath = "${vsInstallRoot}\Common7\IDE\devenv.exe"
|
||||
$devenvexePath | Should -Exist
|
||||
}
|
||||
}
|
||||
|
||||
Context "Visual Studio components" {
|
||||
$testCases = (Get-ToolsetContent).visualStudio.workloads | ForEach-Object { @{ComponentName = $_} }
|
||||
$expectedComponents = Get-ToolsetContent | Select-Object -ExpandProperty visualStudio | Select-Object -ExpandProperty workloads
|
||||
$testCases = $expectedComponents | ForEach-Object { @{ComponentName = $_} }
|
||||
BeforeAll {
|
||||
$installedComponents = Get-VisualStudioComponents -ProductType "VisualStudio" | Select-Object -ExpandProperty Package
|
||||
}
|
||||
|
||||
It "<ComponentName>" -TestCases $testCases {
|
||||
$installedComponents | Should -Contain $ComponentName
|
||||
}
|
||||
}
|
||||
|
||||
Context "Visual Studio Build Tools components" {
|
||||
$testCases = (Get-ToolsetContent).visualStudio.buildtools_workloads | ForEach-Object { @{ComponentName = $_} }
|
||||
BeforeAll {
|
||||
$installedComponents = Get-VisualStudioComponents -ProductType "BuildTools" | Select-Object -ExpandProperty Package
|
||||
$installedComponents = Get-VisualStudioComponents | Select-Object -ExpandProperty Package
|
||||
}
|
||||
|
||||
It "<ComponentName>" -TestCases $testCases {
|
||||
|
||||
@@ -5,7 +5,7 @@ Describe "WDK" {
|
||||
}
|
||||
|
||||
It "WDK version from system" {
|
||||
$version = Get-VSExtensionVersion -PackageName "Microsoft.Windows.DriverKit"
|
||||
$version = Get-VSExtensionVersion -packageName "Microsoft.Windows.DriverKit"
|
||||
$version | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,11 +12,11 @@ Describe "Wix" {
|
||||
It "Wix Toolset version from system" {
|
||||
if (Test-IsWin19)
|
||||
{
|
||||
$exVersion = Get-VSExtensionVersion -PackageName "WixToolset.VisualStudioExtension.Dev16"
|
||||
$exVersion = Get-VSExtensionVersion -packageName "WixToolset.VisualStudioExtension.Dev16"
|
||||
}
|
||||
else
|
||||
{
|
||||
$exVersion = Get-VSExtensionVersion -PackageName "WixToolset.VisualStudioExtension.Dev15"
|
||||
$exVersion = Get-VSExtensionVersion -packageName "WixToolset.VisualStudioExtension.Dev15"
|
||||
}
|
||||
$exVersion | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user