Commit Graph

13 Commits

Author SHA1 Message Date
Aleksandr Chebotov
55a07214fe [Windows] Update cabal pester test (#5121)
* [Windows] Update cabal pester test

* Add CABAL_DIR test
2022-02-22 19:20:26 +03:00
Julian Ospald
1fb7d122d1 Expose ghcup binary to PATH on windows (#4264)
* Expose ghcup binary to PATH on windows

The bootstrap-haskell.ps1 script uses
'[System.EnvironmentVariableTarget]::User' instead of
'[System.EnvironmentVariableTarget]::Machine', so it appears
ghcup env vars and PATH update never make it. Do these manually
for now.

* Set CABAL_DIR and make sure config is adjusted

The config adjustment usually includes adding msys2 directories,
so cabal can find `pkg-config` and libraries, e.g.:

+ C: \ghcup\msys64\mingw64\bin
+ extra-include-dirs: C:\ghcup\msys64\mingw64\include
+ extra-lib-dirs: C:\ghcup\msys64\mingw64\lib
- extra-prog-path: C:\cabal\bin
+ extra-prog-path: C:\ghcup\bin,

* Expose cabal dir to PATH as well

* Use Set-SystemVariable

* Fix tests

* Use hardcoded cabal dir

* Fix bootstrap-haskell

* Move test after installation

* Print ghcup installation message

* Don't adjust cabal.config (to include mingw paths)

This may break setups.
2021-12-10 11:23:44 +03:00
Mikhail Timofeev
395eb43c2b Added a condition for the $binGhcPath to not depend on the exact Haskell version (#3537) 2021-06-07 20:49:36 +03:00
Mikhail Timofeev
a7c8d209c6 [windows] Add a test to make sure version 9 is the default one (#3377) 2021-05-14 12:20:12 +03:00
Mikhail Timofeev
8cdcef0d00 Initialize ChocolateyToolsLocation variable and fix tests (#2874) 2021-03-08 22:43:58 +03:00
Mikhail Timofeev
a9b5e80521 Fix testcase name 2020-10-18 21:45:48 +03:00
Mikhail Timofeev
12d5315961 add ghcdefault cases 2020-10-18 21:14:39 +03:00
Mikhail Timofeev
57a08bac71 add correct path to install haskell 2020-10-18 20:52:32 +03:00
Mikhail Timofeev
1d84a5ea79 fix test to work with haskell revisions 2020-10-18 20:07:40 +03:00
Aleksandr Chebotov
3356fa7bd0 add assert MatchCommandOutput 2020-07-13 13:39:56 +03:00
Aleksandr Chebotov
f8bf39d9ad fixed browser tests 2020-07-13 12:10:55 +03:00
Aleksandr Chebotov
81865d867e add webdriver tests 2020-07-13 12:10:54 +03:00
Aleksandr Chebotov
8608a1070e Migration to Pester tests 2020-07-13 12:10:54 +03:00