2023-05-12 13:30:13 +02:00
|
|
|
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
2023-12-04 12:13:08 +01:00
|
|
|
|
2021-01-14 00:46:44 +07:00
|
|
|
$os = Get-OSVersion
|
|
|
|
|
|
2024-09-03 18:45:06 +02:00
|
|
|
Describe "Haskell" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia) {
|
2021-01-14 00:46:44 +07:00
|
|
|
Context "GHCup" {
|
|
|
|
|
It "GHCup" {
|
|
|
|
|
"ghcup --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Context "GHC" {
|
|
|
|
|
It "GHC" {
|
|
|
|
|
"ghc --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Context "Cabal" {
|
|
|
|
|
It "Cabal" {
|
|
|
|
|
"cabal --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-10-10 16:17:51 +02:00
|
|
|
Context "Stack" {
|
|
|
|
|
It "Stack" {
|
|
|
|
|
"stack --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Stack hook is not installed" {
|
|
|
|
|
"$HOME/.stack/hooks/ghc-install.sh" | Should -Not -Exist
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-11-10 18:05:14 +01:00
|
|
|
}
|