mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-30 21:38:26 +08:00
[Windows] Implement new directories hierarchy (#8616)
This commit is contained in:
committed by
GitHub
parent
84a7deae24
commit
d1f2c9a3be
13
images/windows/scripts/tests/WDK.Tests.ps1
Normal file
13
images/windows/scripts/tests/WDK.Tests.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
Describe "WDK" {
|
||||
It "WDK exists" {
|
||||
$regKey = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
|
||||
$installedApplications = Get-ItemProperty -Path $regKey
|
||||
$WDKVersion = $installedApplications | Where-Object DisplayName -eq 'Windows Driver Kit' | Select-Object -First 1 -ExpandProperty DisplayVersion
|
||||
$WDKVersion | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
|
||||
It "Windows Driver Kit VSIX extension" {
|
||||
$version = Get-VSExtensionVersion -packageName "Microsoft.Windows.DriverKit"
|
||||
$version | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user