install the latest version
This commit is contained in:
@@ -5,9 +5,4 @@
|
|||||||
|
|
||||||
Choco-Install -PackageName mingw
|
Choco-Install -PackageName mingw
|
||||||
|
|
||||||
# Make a copy of mingw32-make.exe to make.exe, which is a more discoverable name
|
|
||||||
# and so the same command line can be used on Windows as on macOS and Linux
|
|
||||||
$path = where.exe mingw32-make.exe | Get-Item
|
|
||||||
Copy-Item -Path $path -Destination (Join-Path $path.Directory 'make.exe')
|
|
||||||
|
|
||||||
Invoke-PesterTests -TestFile "Tools" -TestName "Mingw64"
|
Invoke-PesterTests -TestFile "Tools" -TestName "Mingw64"
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ function Get-KindVersion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Get-MinGWVersion {
|
function Get-MinGWVersion {
|
||||||
(gcc --version | Select-String -Pattern "MinGW-W64 project") -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
(gcc --version | Select-String -Pattern "GCC") -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||||
$mingwVersion = $Matches.Version
|
$mingwVersion = $Matches.Version
|
||||||
return "Mingw-w64 $mingwVersion"
|
return "Mingw-w64 $mingwVersion"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,7 +127,6 @@ Describe "Mingw64" {
|
|||||||
It "<ToolName>" -TestCases @(
|
It "<ToolName>" -TestCases @(
|
||||||
@{ ToolName = "gcc" }
|
@{ ToolName = "gcc" }
|
||||||
@{ ToolName = "g++" }
|
@{ ToolName = "g++" }
|
||||||
@{ ToolName = "make" }
|
|
||||||
) {
|
) {
|
||||||
"$ToolName --version" | Should -ReturnZeroExitCode
|
"$ToolName --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user