(cabal check) Add "No internal name clash" test
[cabal.git] / cabal-testsuite / PackageTests / ShowBuildInfo / Complex / single.test.hs
blob5b083d69c160dc8374f564e6e8a1ad13c30a8166
1 {-# LANGUAGE OverloadedStrings #-}
2 import Test.Cabal.Prelude
3 import Test.Cabal.DecodeShowBuildInfo
5 main = cabalTest $ withRepo "repo" $ do
6 runShowBuildInfo ["exe:Complex"] >> withPlan (do
7 recordBuildInfo "Complex" (exe "Complex")
8 assertComponent "Complex" (exe "Complex") defCompAssertion
9 { modules = ["Other", "Paths_Complex"]
10 , sourceFiles = ["Main.lhs"]
11 , sourceDirs = ["app"]
14 runShowBuildInfo ["lib:Complex"] >> withPlan (do
15 recordBuildInfo "Complex" mainLib
16 assertComponent "Complex" mainLib defCompAssertion
17 { modules = ["A", "B", "C", "D", "Paths_Complex"]
18 , sourceDirs = ["src", "doesnt-exist"]
21 runShowBuildInfo ["benchmark:complex-benchmarks"] >> withPlan (do
22 recordBuildInfo "Complex" (bench "complex-benchmarks")
23 assertComponent "Complex" (bench "complex-benchmarks") defCompAssertion
24 { modules = ["Paths_Complex"]
25 , sourceFiles = ["Main.hs"]
26 , sourceDirs = ["benchmark"]
29 runShowBuildInfo ["test:func-test"] >> withPlan (do
30 recordBuildInfo "Complex" (test "func-test")
31 assertComponent "Complex" (test "func-test") defCompAssertion
32 { sourceFiles = ["FuncMain.hs"]
33 , sourceDirs = ["test"]
36 runShowBuildInfo ["test:unit-test"] >> withPlan (do
37 recordBuildInfo "Complex" (test "unit-test")
38 assertComponent "Complex" (test "unit-test") defCompAssertion
39 { sourceFiles = ["UnitMain.hs"]
40 , sourceDirs = ["test"]