-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-design test-cases for show-build-info
- Loading branch information
Showing
33 changed files
with
586 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
cabal-version: 2.4 | ||
name: A | ||
version: 0.1.0.0 | ||
license: BSD-3-Clause | ||
|
||
library | ||
exposed-modules: A | ||
build-depends: base >=4 | ||
hs-source-dirs: src | ||
default-language: Haskell2010 | ||
|
||
executable A | ||
main-is: Main.hs | ||
build-depends: base >=4 | ||
hs-source-dirs: src | ||
default-language: Haskell2010 | ||
|
||
test-suite A-tests | ||
type: exitcode-stdio-1.0 | ||
main-is: Test.hs | ||
build-depends: base >=4, A | ||
hs-source-dirs: src | ||
default-language: Haskell2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
cabal-version: 2.4 | ||
name: B | ||
version: 0.1.0.0 | ||
license: BSD-3-Clause | ||
|
||
library | ||
exposed-modules: B | ||
build-depends: base >=4.0.0.0, A | ||
hs-source-dirs: lib | ||
default-language: Haskell2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module B where | ||
|
||
foo :: Int -> Int | ||
foo = id |
21 changes: 21 additions & 0 deletions
21
cabal-testsuite/PackageTests/ShowBuildInfo/A/build-info-all.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# cabal build | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- A-0.1.0.0 (lib) (first run) | ||
- A-0.1.0.0 (exe:A) (first run) | ||
- B-0.1.0.0 (lib) (first run) | ||
- A-0.1.0.0 (test:A-tests) (first run) | ||
Configuring library for A-0.1.0.0.. | ||
Preprocessing library for A-0.1.0.0.. | ||
Building library for A-0.1.0.0.. | ||
Configuring executable 'A' for A-0.1.0.0.. | ||
Preprocessing executable 'A' for A-0.1.0.0.. | ||
Building executable 'A' for A-0.1.0.0.. | ||
Configuring library for B-0.1.0.0.. | ||
Preprocessing library for B-0.1.0.0.. | ||
Building library for B-0.1.0.0.. | ||
Configuring test suite 'A-tests' for A-0.1.0.0.. | ||
Warning: The package has an extraneous version range for a dependency on an internal library: A >=0 && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used. | ||
Preprocessing test suite 'A-tests' for A-0.1.0.0.. | ||
Building test suite 'A-tests' for A-0.1.0.0.. |
28 changes: 28 additions & 0 deletions
28
cabal-testsuite/PackageTests/ShowBuildInfo/A/build-info-all.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
import Test.Cabal.Prelude | ||
import Test.Cabal.DecodeShowBuildInfo | ||
|
||
main = cabalTest $ do | ||
runShowBuildInfo ["all", "--enable-tests"] | ||
withPlan $ do | ||
assertComponent "A" (exe "A") | ||
defCompAssertion | ||
{ sourceFiles = ["Main.hs"] | ||
, sourceDirs = ["src"] | ||
} | ||
assertComponent "A" mainLib | ||
defCompAssertion | ||
{ modules = ["A"] | ||
, sourceDirs = ["src"] | ||
} | ||
|
||
assertComponent "B" mainLib | ||
defCompAssertion | ||
{ modules = ["B"] | ||
, sourceDirs = ["lib"] | ||
} | ||
assertComponent "A" (test "A-tests") | ||
defCompAssertion | ||
{ sourceFiles = ["Test.hs"] | ||
, sourceDirs = ["src"] | ||
} |
8 changes: 8 additions & 0 deletions
8
cabal-testsuite/PackageTests/ShowBuildInfo/A/build-info-exe.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# cabal build | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- A-0.1.0.0 (exe:A) (first run) | ||
Configuring executable 'A' for A-0.1.0.0.. | ||
Preprocessing executable 'A' for A-0.1.0.0.. | ||
Building executable 'A' for A-0.1.0.0.. |
14 changes: 14 additions & 0 deletions
14
cabal-testsuite/PackageTests/ShowBuildInfo/A/build-info-exe.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
import Test.Cabal.Prelude | ||
import Test.Cabal.DecodeShowBuildInfo | ||
|
||
main = cabalTest $ do | ||
runShowBuildInfo ["exe:A"] | ||
withPlan $ do | ||
assertComponent "A" (exe "A") | ||
defCompAssertion | ||
{ sourceFiles = ["Main.hs"] | ||
, sourceDirs = ["src"] | ||
-- does not list lib as a target | ||
, compilerArgsPred = all (/= "A-0.1.0.0-inplace") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
packages: . ./B/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A where | ||
|
||
foo = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Main where | ||
|
||
main = return () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module Main where | ||
|
||
main :: IO () | ||
main = return () |
72 changes: 72 additions & 0 deletions
72
cabal-testsuite/PackageTests/ShowBuildInfo/Complex/Complex.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
cabal-version: 2.4 | ||
name: Complex | ||
version: 0.1.0.0 | ||
license: MIT | ||
|
||
library | ||
build-depends: base | ||
hs-source-dirs: src doesnt-exist | ||
default-language: Haskell2010 | ||
exposed-modules: | ||
A | ||
B | ||
|
||
autogen-modules: Paths_Complex | ||
other-modules: | ||
C | ||
D | ||
Paths_Complex | ||
|
||
ghc-options: -Wall | ||
|
||
executable Complex | ||
main-is: Main.lhs | ||
build-depends: | ||
, base | ||
, Complex | ||
|
||
hs-source-dirs: app | ||
autogen-modules: Paths_Complex | ||
other-modules: | ||
Other | ||
Paths_Complex | ||
|
||
ghc-options: | ||
-threaded -rtsopts "-with-rtsopts=-N -T" -Wredundant-constraints | ||
|
||
default-language: Haskell2010 | ||
|
||
test-suite unit-test | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
build-depends: | ||
, another-framework | ||
, base | ||
|
||
main-is: UnitMain.hs | ||
default-language: Haskell2010 | ||
|
||
test-suite func-test | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
build-depends: | ||
, base | ||
, Complex | ||
, test-framework | ||
|
||
main-is: FuncMain.hs | ||
default-language: Haskell2010 | ||
|
||
benchmark complex-benchmarks | ||
type: exitcode-stdio-1.0 | ||
main-is: Main.hs | ||
other-modules: Paths_Complex | ||
autogen-modules: Paths_Complex | ||
hs-source-dirs: benchmark | ||
ghc-options: -Wall -rtsopts -threaded -with-rtsopts=-N | ||
build-depends: | ||
, base | ||
, Complex | ||
, criterion ^>=1.1.4 | ||
|
||
default-language: Haskell2010 |
8 changes: 8 additions & 0 deletions
8
cabal-testsuite/PackageTests/ShowBuildInfo/Complex/app/Main.lhs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
> module Main where | ||
> | ||
> import A | ||
> import Other | ||
> | ||
> main = do | ||
> print foo | ||
> print bar |
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/ShowBuildInfo/Complex/app/Other.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Other where | ||
|
||
bar = () |
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/ShowBuildInfo/Complex/benchmark/Main.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Main where | ||
|
||
main = pure () |
4 changes: 4 additions & 0 deletions
4
cabal-testsuite/PackageTests/ShowBuildInfo/Complex/cabal.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages: . | ||
|
||
tests: True | ||
benchmarks: True |
8 changes: 8 additions & 0 deletions
8
...PackageTests/ShowBuildInfo/Complex/repo/another-framework-0.8.1.1/another-framework.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: another-framework | ||
version: 0.8.1.1 | ||
build-type: Simple | ||
cabal-version: >= 1.10 | ||
|
||
library | ||
build-depends: base | ||
default-language: Haskell2010 |
8 changes: 8 additions & 0 deletions
8
cabal-testsuite/PackageTests/ShowBuildInfo/Complex/repo/criterion-1.1.4.0/criterion.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: criterion | ||
version: 1.1.4.0 | ||
build-type: Simple | ||
cabal-version: >= 1.10 | ||
|
||
library | ||
build-depends: base, ghc-prim | ||
default-language: Haskell2010 |
8 changes: 8 additions & 0 deletions
8
...suite/PackageTests/ShowBuildInfo/Complex/repo/test-framework-0.8.1.1/test-framework.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: test-framework | ||
version: 0.8.1.1 | ||
build-type: Simple | ||
cabal-version: >= 1.10 | ||
|
||
library | ||
build-depends: base | ||
default-language: Haskell2010 |
70 changes: 70 additions & 0 deletions
70
cabal-testsuite/PackageTests/ShowBuildInfo/Complex/single.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# cabal v2-update | ||
Downloading the latest package list from test-local-repo | ||
# cabal build | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- Complex-0.1.0.0 (lib) (first run) | ||
- Complex-0.1.0.0 (exe:Complex) (first run) | ||
Configuring library for Complex-0.1.0.0.. | ||
Warning: 'hs-source-dirs: doesnt-exist' directory does not exist. | ||
Preprocessing library for Complex-0.1.0.0.. | ||
Building library for Complex-0.1.0.0.. | ||
Configuring executable 'Complex' for Complex-0.1.0.0.. | ||
Warning: The package has an extraneous version range for a dependency on an internal library: Complex >=0 && ==0.1.0.0, Complex >=0 && ==0.1.0.0, Complex >=0 && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used. | ||
Warning: 'hs-source-dirs: doesnt-exist' directory does not exist. | ||
Preprocessing executable 'Complex' for Complex-0.1.0.0.. | ||
Building executable 'Complex' for Complex-0.1.0.0.. | ||
# show-build-info Complex exe:Complex | ||
{"cabal-version":"<CABALVER>","compiler":{"flavour":"ghc","compiler-id":"ghc-<GHCVER>","path":"<GHCPATH>"},"components":[{"type":"exe","name":"exe:Complex","unit-id":"Complex-0.1.0.0-inplace-Complex","compiler-args":["-fbuilding-cabal-package","-O","-outputdir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-odir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-hidir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-stubdir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-i","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-iapp","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build/Complex/autogen","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build/global-autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build/Complex/autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build/global-autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-optP-include","-optP<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build/Complex/autogen/cabal_macros.h","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","<ROOT>/single.dist/home/.cabal/store/ghc-<GHCVER>/package.db","-package-db","<ROOT>/single.dist/work/./dist/packagedb/ghc-<GHCVER>","-package-id","<PACKAGEDEP>","-package-id","<PACKAGEDEP>","-XHaskell2010","-threaded","-rtsopts","-with-rtsopts=-N -T","-Wredundant-constraints"],"modules":["Other","Paths_Complex"],"src-files":["Main.lhs"],"hs-src-dirs":["app"],"src-dir":"<ROOT>/","cabal-file":"./Complex.cabal"}]} | ||
# cabal build | ||
Up to date | ||
# show-build-info Complex lib | ||
{"cabal-version":"<CABALVER>","compiler":{"flavour":"ghc","compiler-id":"ghc-<GHCVER>","path":"<GHCPATH>"},"components":[{"type":"lib","name":"lib","unit-id":"Complex-0.1.0.0-inplace","compiler-args":["-fbuilding-cabal-package","-O","-outputdir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-odir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-hidir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-stubdir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-i","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-isrc","-idoesnt-exist","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build/autogen","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build/global-autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build/autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build/global-autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-optP-include","-optP<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build/autogen/cabal_macros.h","-this-unit-id","Complex-0.1.0.0-inplace","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","<ROOT>/single.dist/home/.cabal/store/ghc-<GHCVER>/package.db","-package-db","<ROOT>/single.dist/work/./dist/packagedb/ghc-<GHCVER>","-package-id","<PACKAGEDEP>","-XHaskell2010","-Wall"],"modules":["A","B","C","D","Paths_Complex"],"src-files":[],"hs-src-dirs":["src","doesnt-exist"],"src-dir":"<ROOT>/","cabal-file":"./Complex.cabal"}]} | ||
# cabal build | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- criterion-1.1.4.0 (lib) (requires build) | ||
- Complex-0.1.0.0 (bench:complex-benchmarks) (first run) | ||
Configuring library for criterion-1.1.4.0.. | ||
Preprocessing library for criterion-1.1.4.0.. | ||
Building library for criterion-1.1.4.0.. | ||
Installing library in <PATH> | ||
Configuring benchmark 'complex-benchmarks' for Complex-0.1.0.0.. | ||
Warning: The package has an extraneous version range for a dependency on an internal library: Complex >=0 && ==0.1.0.0, Complex >=0 && ==0.1.0.0, Complex >=0 && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used. | ||
Warning: 'hs-source-dirs: doesnt-exist' directory does not exist. | ||
Preprocessing benchmark 'complex-benchmarks' for Complex-0.1.0.0.. | ||
Building benchmark 'complex-benchmarks' for Complex-0.1.0.0.. | ||
# show-build-info Complex bench:complex-benchmarks | ||
{"cabal-version":"<CABALVER>","compiler":{"flavour":"ghc","compiler-id":"ghc-<GHCVER>","path":"<GHCPATH>"},"components":[{"type":"bench","name":"bench:complex-benchmarks","unit-id":"Complex-0.1.0.0-inplace-complex-benchmarks","compiler-args":["-fbuilding-cabal-package","-O","-outputdir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-odir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-hidir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-stubdir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-i","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-ibenchmark","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build/complex-benchmarks/autogen","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build/global-autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build/complex-benchmarks/autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build/global-autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-optP-include","-optP<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build/complex-benchmarks/autogen/cabal_macros.h","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","<ROOT>/single.dist/home/.cabal/store/ghc-<GHCVER>/package.db","-package-db","<ROOT>/single.dist/work/./dist/packagedb/ghc-<GHCVER>","-package-id","<PACKAGEDEP>","-package-id","<PACKAGEDEP>","-package-id","<PACKAGEDEP>","-XHaskell2010","-Wall","-rtsopts","-threaded","-with-rtsopts=-N"],"modules":["Paths_Complex"],"src-files":["Main.hs"],"hs-src-dirs":["benchmark"],"src-dir":"<ROOT>/","cabal-file":"./Complex.cabal"}]} | ||
# cabal build | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- test-framework-0.8.1.1 (lib) (requires build) | ||
- Complex-0.1.0.0 (test:func-test) (first run) | ||
Configuring library for test-framework-0.8.1.1.. | ||
Preprocessing library for test-framework-0.8.1.1.. | ||
Building library for test-framework-0.8.1.1.. | ||
Installing library in <PATH> | ||
Configuring test suite 'func-test' for Complex-0.1.0.0.. | ||
Warning: The package has an extraneous version range for a dependency on an internal library: Complex >=0 && ==0.1.0.0, Complex >=0 && ==0.1.0.0, Complex >=0 && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used. | ||
Warning: 'hs-source-dirs: doesnt-exist' directory does not exist. | ||
Preprocessing test suite 'func-test' for Complex-0.1.0.0.. | ||
Building test suite 'func-test' for Complex-0.1.0.0.. | ||
# show-build-info Complex test:func-test | ||
{"cabal-version":"<CABALVER>","compiler":{"flavour":"ghc","compiler-id":"ghc-<GHCVER>","path":"<GHCPATH>"},"components":[{"type":"test","name":"test:func-test","unit-id":"Complex-0.1.0.0-inplace-func-test","compiler-args":["-fbuilding-cabal-package","-O","-outputdir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-odir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-hidir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-stubdir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-i","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-itest","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build/func-test/autogen","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build/global-autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build/func-test/autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build/global-autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-optP-include","-optP<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build/func-test/autogen/cabal_macros.h","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","<ROOT>/single.dist/home/.cabal/store/ghc-<GHCVER>/package.db","-package-db","<ROOT>/single.dist/work/./dist/packagedb/ghc-<GHCVER>","-package-id","<PACKAGEDEP>","-package-id","<PACKAGEDEP>","-package-id","<PACKAGEDEP>","-XHaskell2010"],"modules":[],"src-files":["FuncMain.hs"],"hs-src-dirs":["test"],"src-dir":"<ROOT>/","cabal-file":"./Complex.cabal"}]} | ||
# cabal build | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- another-framework-0.8.1.1 (lib) (requires build) | ||
- Complex-0.1.0.0 (test:unit-test) (first run) | ||
Configuring library for another-framework-0.8.1.1.. | ||
Preprocessing library for another-framework-0.8.1.1.. | ||
Building library for another-framework-0.8.1.1.. | ||
Installing library in <PATH> | ||
Configuring test suite 'unit-test' for Complex-0.1.0.0.. | ||
Warning: 'hs-source-dirs: doesnt-exist' directory does not exist. | ||
Preprocessing test suite 'unit-test' for Complex-0.1.0.0.. | ||
Building test suite 'unit-test' for Complex-0.1.0.0.. | ||
# show-build-info Complex test:unit-test | ||
{"cabal-version":"<CABALVER>","compiler":{"flavour":"ghc","compiler-id":"ghc-<GHCVER>","path":"<GHCPATH>"},"components":[{"type":"test","name":"test:unit-test","unit-id":"Complex-0.1.0.0-inplace-unit-test","compiler-args":["-fbuilding-cabal-package","-O","-outputdir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-odir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-hidir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-stubdir","<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-i","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-itest","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build/unit-test/autogen","-i<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build/global-autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build/unit-test/autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build/global-autogen","-I<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-optP-include","-optP<ROOT>/single.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build/unit-test/autogen/cabal_macros.h","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","<ROOT>/single.dist/home/.cabal/store/ghc-<GHCVER>/package.db","-package-db","<ROOT>/single.dist/work/./dist/packagedb/ghc-<GHCVER>","-package-id","<PACKAGEDEP>","-package-id","<PACKAGEDEP>","-XHaskell2010"],"modules":[],"src-files":["UnitMain.hs"],"hs-src-dirs":["test"],"src-dir":"<ROOT>/","cabal-file":"./Complex.cabal"}]} |
Oops, something went wrong.