mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 02:18:40 +08:00
Migrate validation to Pester (#1249)
* remove Validate-* scripts * Remove references to validation scripts from .json files * Separate "It"s by new lines * Remove new line before the first "It" * Separate "It"s by new lines * remove 32-bit WinAppDriver check * remove explicit variable definition Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
This commit is contained in:
11
images/win/scripts/Tests/WDK.Tests.ps1
Normal file
11
images/win/scripts/Tests/WDK.Tests.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
Describe "WDK" {
|
||||
It "WDK exists" {
|
||||
$WDKVersion = (Get-CimInstance -ClassName Win32_Product -Filter "Name = 'Windows Driver Kit'").Version
|
||||
$WDKVersion| Should -Not -BeNullOrEmpty
|
||||
}
|
||||
|
||||
It "WDK version from system" {
|
||||
$version = Get-VSExtensionVersion -packageName "Microsoft.Windows.DriverKit"
|
||||
$version | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user