mirror of
https://github.com/actions/runner-images.git
synced 2026-01-07 18:58:13 +08:00
* Pester Tests Approach implementation. * changes for netPath
This commit is contained in:
22
images/win/scripts/Tests/MSYS2.Tests.ps1
Normal file
22
images/win/scripts/Tests/MSYS2.Tests.ps1
Normal file
@@ -0,0 +1,22 @@
|
||||
BeforeAll {
|
||||
$msys2BinDir = "C:\msys64\usr\bin"
|
||||
$msys2mingwDir = "C:\msys64\mingw64\bin"
|
||||
}
|
||||
|
||||
Describe "MSYS2" {
|
||||
It "<ToolName>" -TestCases @(
|
||||
@{ ToolName = "bash.exe" }
|
||||
@{ ToolName = "tar.exe" }
|
||||
@{ ToolName = "make.exe" }
|
||||
) {
|
||||
Join-Path $msys2BinDir $ToolName | Should -Exist
|
||||
}
|
||||
|
||||
It "<ToolName>" -TestCases @(
|
||||
@{ ToolName = "gcc.exe" }
|
||||
@{ ToolName = "cmake.exe" }
|
||||
@{ ToolName = "g++.exe" }
|
||||
) {
|
||||
Join-Path $msys2mingwDir $ToolName | Should -Exist
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user