Skip to content

Commit ac06d79

Browse files
committed
Add another Path test
This adds a new test that verifies the output of `compiler-store-path` when the store-dir is explicitly configured.
1 parent e8a1785 commit ac06d79

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cabal-testsuite/PackageTests/Path/Compiler/cabal.out

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ compiler-flavour: ghc
1010
compiler-id: ghc-<GHCVER>
1111
compiler-path: <GHCPATH>
1212
compiler-store-path: <ROOT>/cabal.dist/home/.cabal/store/ghc-<GHCVER>
13+
# cabal path
14+
compiler-flavour: ghc
15+
compiler-id: ghc-<GHCVER>
16+
compiler-path: <GHCPATH>
17+
compiler-store-path: fake-dir/ghc-<GHCVER>

cabal-testsuite/PackageTests/Path/Compiler/cabal.test.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ main = cabalTest $ do
55
void $ cabal "path" ["-z", "--output-format=key-value", "--compiler-info"]
66
void $ cabal "path" ["-z", "--output-format=json", "--compiler-info"]
77
void $ cabal "path" ["-z", "--compiler-info"]
8+
void $ cabalG ["--store-dir=fake-dir"] "path" ["-z", "--compiler-info"]

0 commit comments

Comments
 (0)