Skip to content

Commit 3b8a89e

Browse files
committed
fix for windows ci :(
1 parent 22d1f58 commit 3b8a89e

File tree

10 files changed

+629
-99
lines changed

10 files changed

+629
-99
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# cabal v2-update
2+
Downloading the latest package list from test-local-repo
3+
# cabal build
4+
Configuration is affected by the following files:
5+
- cabal.project
6+
Resolving dependencies...
7+
Build profile: -w ghc-<GHCVER> -O1
8+
In order, the following will be built:
9+
- Complex-0.1.0.0 (lib) (first run)
10+
- Complex-0.1.0.0 (exe:Complex) (first run)
11+
Configuring library for Complex-0.1.0.0...
12+
Warning: [unknown-directory] 'hs-source-dirs: doesnt-exist' specifies a directory which does not exist.
13+
Preprocessing library for Complex-0.1.0.0...
14+
Building library for Complex-0.1.0.0...
15+
Configuring executable 'Complex' for Complex-0.1.0.0...
16+
Warning: [unknown-directory] 'hs-source-dirs: doesnt-exist' specifies a directory which does not exist.
17+
Preprocessing executable 'Complex' for Complex-0.1.0.0...
18+
Building executable 'Complex' for Complex-0.1.0.0...
19+
# show-build-info Complex exe:Complex
20+
{"cabal-lib-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","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-odir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-hidir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-hiedir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build/extra-compilation-artifacts/hie","-stubdir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-i","-iapp","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build/Complex/autogen","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build/global-autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build/Complex/autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build/global-autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build","-optP-include","-optPsingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/x/Complex/build/Complex/autogen/cabal_macros.h","-optc-O1","-optcxx-O1","-opta-O1","-this-unit-id","Complex-0.1.0.0-inplace-Complex","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","<ROOT>/single-2.dist/home/.cabal/store/ghc-<GHCVER>/package.db","-package-db","<ROOT>/single-2.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"}]}
21+
# cabal build
22+
Configuration is affected by the following files:
23+
- cabal.project
24+
Up to date
25+
# show-build-info Complex lib
26+
{"cabal-lib-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","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-odir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-hidir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-hiedir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build/extra-compilation-artifacts/hie","-stubdir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-i","-isrc","-idoesnt-exist","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build/autogen","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build/global-autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build/autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build/global-autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build","-optP-include","-optPsingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/build/autogen/cabal_macros.h","-optc-O1","-optcxx-O1","-opta-O1","-this-unit-id","Complex-0.1.0.0-inplace","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","<ROOT>/single-2.dist/home/.cabal/store/ghc-<GHCVER>/package.db","-package-db","<ROOT>/single-2.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"}]}
27+
# cabal build
28+
Configuration is affected by the following files:
29+
- cabal.project
30+
Build profile: -w ghc-<GHCVER> -O1
31+
In order, the following will be built:
32+
- criterion-1.1.4.0 (lib) (requires build)
33+
- Complex-0.1.0.0 (bench:complex-benchmarks) (first run)
34+
Configuring library for criterion-1.1.4.0...
35+
Preprocessing library for criterion-1.1.4.0...
36+
Building library for criterion-1.1.4.0...
37+
Installing library in <PATH>
38+
Configuring benchmark 'complex-benchmarks' for Complex-0.1.0.0...
39+
Warning: [unknown-directory] 'hs-source-dirs: doesnt-exist' specifies a directory which does not exist.
40+
Preprocessing benchmark 'complex-benchmarks' for Complex-0.1.0.0...
41+
Building benchmark 'complex-benchmarks' for Complex-0.1.0.0...
42+
# show-build-info Complex bench:complex-benchmarks
43+
{"cabal-lib-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","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-odir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-hidir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-hiedir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build/extra-compilation-artifacts/hie","-stubdir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-i","-ibenchmark","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build/complex-benchmarks/autogen","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build/global-autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build/complex-benchmarks/autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build/global-autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build","-optP-include","-optPsingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/b/complex-benchmarks/build/complex-benchmarks/autogen/cabal_macros.h","-optc-O1","-optcxx-O1","-opta-O1","-this-unit-id","Complex-0.1.0.0-inplace-complex-benchmarks","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","<ROOT>/single-2.dist/home/.cabal/store/ghc-<GHCVER>/package.db","-package-db","<ROOT>/single-2.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"}]}
44+
# cabal build
45+
Configuration is affected by the following files:
46+
- cabal.project
47+
Build profile: -w ghc-<GHCVER> -O1
48+
In order, the following will be built:
49+
- test-framework-0.8.1.1 (lib) (requires build)
50+
- Complex-0.1.0.0 (test:func-test) (first run)
51+
Configuring library for test-framework-0.8.1.1...
52+
Preprocessing library for test-framework-0.8.1.1...
53+
Building library for test-framework-0.8.1.1...
54+
Installing library in <PATH>
55+
Configuring test suite 'func-test' for Complex-0.1.0.0...
56+
Warning: [unknown-directory] 'hs-source-dirs: doesnt-exist' specifies a directory which does not exist.
57+
Preprocessing test suite 'func-test' for Complex-0.1.0.0...
58+
Building test suite 'func-test' for Complex-0.1.0.0...
59+
# show-build-info Complex test:func-test
60+
{"cabal-lib-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","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-odir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-hidir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-hiedir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build/extra-compilation-artifacts/hie","-stubdir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-i","-itest","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build/func-test/autogen","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build/global-autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build/func-test/autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build/global-autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build","-optP-include","-optPsingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/func-test/build/func-test/autogen/cabal_macros.h","-optc-O1","-optcxx-O1","-opta-O1","-this-unit-id","Complex-0.1.0.0-inplace-func-test","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","<ROOT>/single-2.dist/home/.cabal/store/ghc-<GHCVER>/package.db","-package-db","<ROOT>/single-2.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"}]}
61+
# cabal build
62+
Configuration is affected by the following files:
63+
- cabal.project
64+
Build profile: -w ghc-<GHCVER> -O1
65+
In order, the following will be built:
66+
- another-framework-0.8.1.1 (lib) (requires build)
67+
- Complex-0.1.0.0 (test:unit-test) (first run)
68+
Configuring library for another-framework-0.8.1.1...
69+
Preprocessing library for another-framework-0.8.1.1...
70+
Building library for another-framework-0.8.1.1...
71+
Installing library in <PATH>
72+
Configuring test suite 'unit-test' for Complex-0.1.0.0...
73+
Warning: [unknown-directory] 'hs-source-dirs: doesnt-exist' specifies a directory which does not exist.
74+
Preprocessing test suite 'unit-test' for Complex-0.1.0.0...
75+
Building test suite 'unit-test' for Complex-0.1.0.0...
76+
# show-build-info Complex test:unit-test
77+
{"cabal-lib-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","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-odir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-hidir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-hiedir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build/extra-compilation-artifacts/hie","-stubdir","single-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-i","-itest","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build/unit-test/autogen","-isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build/global-autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build/unit-test/autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build/global-autogen","-Isingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build","-optP-include","-optPsingle-2.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/Complex-0.1.0.0/t/unit-test/build/unit-test/autogen/cabal_macros.h","-optc-O1","-optcxx-O1","-opta-O1","-this-unit-id","Complex-0.1.0.0-inplace-unit-test","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","<ROOT>/single-2.dist/home/.cabal/store/ghc-<GHCVER>/package.db","-package-db","<ROOT>/single-2.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"}]}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{-# LANGUAGE OverloadedStrings #-}
2+
3+
import Test.Cabal.DecodeShowBuildInfo
4+
import Test.Cabal.Prelude
5+
6+
main = do
7+
cabalTest $ do
8+
-- the With GHC-9.2+ output contains -this-unit-id
9+
skipUnlessGhcVersion "^>= 9.2"
10+
withRepo "repo" $ do
11+
runShowBuildInfo ["exe:Complex"]
12+
>> withPlan
13+
( do
14+
recordBuildInfo "Complex" (exe "Complex")
15+
assertComponent
16+
"Complex"
17+
(exe "Complex")
18+
defCompAssertion
19+
{ modules = ["Other", "Paths_Complex"]
20+
, sourceFiles = ["Main.lhs"]
21+
, sourceDirs = ["app"]
22+
}
23+
)
24+
25+
runShowBuildInfo ["lib:Complex"]
26+
>> withPlan
27+
( do
28+
recordBuildInfo "Complex" mainLib
29+
assertComponent
30+
"Complex"
31+
mainLib
32+
defCompAssertion
33+
{ modules = ["A", "B", "C", "D", "Paths_Complex"]
34+
, sourceDirs = ["src", "doesnt-exist"]
35+
}
36+
)
37+
38+
runShowBuildInfo ["benchmark:complex-benchmarks"]
39+
>> withPlan
40+
( do
41+
recordBuildInfo "Complex" (bench "complex-benchmarks")
42+
assertComponent
43+
"Complex"
44+
(bench "complex-benchmarks")
45+
defCompAssertion
46+
{ modules = ["Paths_Complex"]
47+
, sourceFiles = ["Main.hs"]
48+
, sourceDirs = ["benchmark"]
49+
}
50+
)
51+
52+
runShowBuildInfo ["test:func-test"]
53+
>> withPlan
54+
( do
55+
recordBuildInfo "Complex" (test "func-test")
56+
assertComponent
57+
"Complex"
58+
(test "func-test")
59+
defCompAssertion
60+
{ sourceFiles = ["FuncMain.hs"]
61+
, sourceDirs = ["test"]
62+
}
63+
)
64+
65+
runShowBuildInfo ["test:unit-test"]
66+
>> withPlan
67+
( do
68+
recordBuildInfo "Complex" (test "unit-test")
69+
assertComponent
70+
"Complex"
71+
(test "unit-test")
72+
defCompAssertion
73+
{ sourceFiles = ["UnitMain.hs"]
74+
, sourceDirs = ["test"]
75+
}
76+
)
Lines changed: 65 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{-# LANGUAGE OverloadedStrings #-}
2-
import Test.Cabal.Prelude
3-
import Test.Cabal.DecodeShowBuildInfo
2+
3+
import Test.Cabal.DecodeShowBuildInfo
4+
import Test.Cabal.Prelude
45

56
main = do
67
skipIfWindows "-pgmc introduces output differences between gcc and mingw"
@@ -9,39 +10,69 @@ main = do
910
-- the With GHC-9.4+ output contains -pgmc by default
1011
skipUnlessGhcVersion ">= 9.4"
1112
withRepo "repo" $ do
12-
runShowBuildInfo ["exe:Complex"] >> withPlan (do
13-
recordBuildInfo "Complex" (exe "Complex")
14-
assertComponent "Complex" (exe "Complex") defCompAssertion
15-
{ modules = ["Other", "Paths_Complex"]
16-
, sourceFiles = ["Main.lhs"]
17-
, sourceDirs = ["app"]
18-
})
13+
runShowBuildInfo ["exe:Complex"]
14+
>> withPlan
15+
( do
16+
recordBuildInfo "Complex" (exe "Complex")
17+
assertComponent
18+
"Complex"
19+
(exe "Complex")
20+
defCompAssertion
21+
{ modules = ["Other", "Paths_Complex"]
22+
, sourceFiles = ["Main.lhs"]
23+
, sourceDirs = ["app"]
24+
}
25+
)
1926

20-
runShowBuildInfo ["lib:Complex"] >> withPlan (do
21-
recordBuildInfo "Complex" mainLib
22-
assertComponent "Complex" mainLib defCompAssertion
23-
{ modules = ["A", "B", "C", "D", "Paths_Complex"]
24-
, sourceDirs = ["src", "doesnt-exist"]
25-
})
27+
runShowBuildInfo ["lib:Complex"]
28+
>> withPlan
29+
( do
30+
recordBuildInfo "Complex" mainLib
31+
assertComponent
32+
"Complex"
33+
mainLib
34+
defCompAssertion
35+
{ modules = ["A", "B", "C", "D", "Paths_Complex"]
36+
, sourceDirs = ["src", "doesnt-exist"]
37+
}
38+
)
2639

27-
runShowBuildInfo ["benchmark:complex-benchmarks"] >> withPlan (do
28-
recordBuildInfo "Complex" (bench "complex-benchmarks")
29-
assertComponent "Complex" (bench "complex-benchmarks") defCompAssertion
30-
{ modules = ["Paths_Complex"]
31-
, sourceFiles = ["Main.hs"]
32-
, sourceDirs = ["benchmark"]
33-
})
40+
runShowBuildInfo ["benchmark:complex-benchmarks"]
41+
>> withPlan
42+
( do
43+
recordBuildInfo "Complex" (bench "complex-benchmarks")
44+
assertComponent
45+
"Complex"
46+
(bench "complex-benchmarks")
47+
defCompAssertion
48+
{ modules = ["Paths_Complex"]
49+
, sourceFiles = ["Main.hs"]
50+
, sourceDirs = ["benchmark"]
51+
}
52+
)
3453

35-
runShowBuildInfo ["test:func-test"] >> withPlan (do
36-
recordBuildInfo "Complex" (test "func-test")
37-
assertComponent "Complex" (test "func-test") defCompAssertion
38-
{ sourceFiles = ["FuncMain.hs"]
39-
, sourceDirs = ["test"]
40-
})
54+
runShowBuildInfo ["test:func-test"]
55+
>> withPlan
56+
( do
57+
recordBuildInfo "Complex" (test "func-test")
58+
assertComponent
59+
"Complex"
60+
(test "func-test")
61+
defCompAssertion
62+
{ sourceFiles = ["FuncMain.hs"]
63+
, sourceDirs = ["test"]
64+
}
65+
)
4166

42-
runShowBuildInfo ["test:unit-test"] >> withPlan (do
43-
recordBuildInfo "Complex" (test "unit-test")
44-
assertComponent "Complex" (test "unit-test") defCompAssertion
45-
{ sourceFiles = ["UnitMain.hs"]
46-
, sourceDirs = ["test"]
47-
})
67+
runShowBuildInfo ["test:unit-test"]
68+
>> withPlan
69+
( do
70+
recordBuildInfo "Complex" (test "unit-test")
71+
assertComponent
72+
"Complex"
73+
(test "unit-test")
74+
defCompAssertion
75+
{ sourceFiles = ["UnitMain.hs"]
76+
, sourceDirs = ["test"]
77+
}
78+
)

0 commit comments

Comments
 (0)