Skip to content

Commit

Permalink
[Windows] Update cabal pester test (#5121)
Browse files Browse the repository at this point in the history
* [Windows] Update cabal pester test

* Add CABAL_DIR test
  • Loading branch information
al-cheb authored Feb 22, 2022
1 parent bb7ee95 commit 55a0721
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions images/win/scripts/Tests/Haskell.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ Describe "Haskell" {
"cabal --version" | Should -ReturnZeroExitCode
}

It "cabal config was modified and exists" {
$env:CABAL_DIR | Should -Exist
"cabal user-config diff" | Should -ReturnZeroExitCode
It "cabal folder does not exist" {
$env:CABAL_DIR | Should -Not -Exist
}

It "CABAL_DIR environment variable exists" {
Get-EnvironmentVariable CABAL_DIR | Should -BeExactly "C:\cabal"
}

It "ghcup is installed" {
Expand Down

0 comments on commit 55a0721

Please sign in to comment.