Files
runner-images-sangeeth/images/win/scripts/Tests/MSYS2.Tests.ps1
Andy Mishechkin 4de7ae4bce Msys2 clang-tools-extra have been added to windows deployment (#1311)
* clang-tidy.exe has been added

* tools have been split to tools64\32
2020-07-30 07:20:19 +03:00

23 lines
581 B
PowerShell

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" }
@{ ToolName = "clang-tidy.exe" }
) {
Join-Path $msys2mingwDir $ToolName | Should -Exist
}
}