aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2019-02-11 23:17:49 +0100
committerDaniel Gröber <dxld@darkboxed.org>2019-02-11 23:17:49 +0100
commit5196a7c382a1a03e2d460c7ca9112424a58cfbd0 (patch)
tree6c8c85875dc8d49d40c57f7e44fb88435339b772 /tests
parent5463f8ccdecbdd23ae47c2a956e906eb6b83a724 (diff)
Some helper compilation test coverage comments
[ci skip]
Diffstat (limited to 'tests')
-rw-r--r--tests/CompileTest.hs8
-rw-r--r--tests/GhcSession.hs4
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/CompileTest.hs b/tests/CompileTest.hs
index 4ad5804..ea5202e 100644
--- a/tests/CompileTest.hs
+++ b/tests/CompileTest.hs
@@ -2,7 +2,13 @@
{-| This test tries to compile the Helper against every supported version of the
Cabal library. Since we compile the Helper at runtime, on the user's machine,
- it is very important to make sure this will not fail.
+ it is very important to make sure this will not fail to compile.
+
+ This test only covers using v2-build to install the requested Cabal library
+ version because it has the best build product caching (keeps CI times
+ down). We could also use stack since it has a global package cache but we
+ don't support that because stack always comes with the right Cabal library
+ version available for a given resolver anyways.
-}
import System.Environment (getArgs)
diff --git a/tests/GhcSession.hs b/tests/GhcSession.hs
index bee7fed..80e9d17 100644
--- a/tests/GhcSession.hs
+++ b/tests/GhcSession.hs
@@ -91,6 +91,10 @@ main = do
cabal_file = makeRelative topdir cabal_file0 in
TC (TF topdir projdir cabal_file) (parseVer "0") (parseVer "0") [read pt]
[] ->
+ -- below V2 is sorted before Stack and V1 since we rely on v2-build's
+ -- fucking awesome store cache to keep CI times down.
+ --
+ -- TODO: Better test coverage for helper compilation with the other two!
[ TC (TN "exelib") (parseVer "1.10") (parseVer "0") []
, TC (TN "exeintlib") (parseVer "2.0") (parseVer "0") []
, TC (TN "fliblib") (parseVer "2.0") (parseVer "0") []