(cabal check) Add "No internal name clash" test
[cabal.git] / cabal-testsuite / PackageTests / ShowBuildInfo / A / build-info-all.test.hs
blob8fdc04e7a2ac71b18a06710ab947e2ed2f57f360
1 {-# LANGUAGE OverloadedStrings #-}
2 import Test.Cabal.Prelude
3 import Test.Cabal.DecodeShowBuildInfo
5 main = cabalTest $ do
6 runShowBuildInfo ["all", "--enable-tests"]
7 withPlan $ do
8 assertComponent "A" (exe "A")
9 defCompAssertion
10 { sourceFiles = ["Main.hs"]
11 , sourceDirs = ["src"]
13 assertComponent "A" mainLib
14 defCompAssertion
15 { modules = ["A"]
16 , sourceDirs = ["src"]
19 assertComponent "B" mainLib
20 defCompAssertion
21 { modules = ["B"]
22 , sourceDirs = ["lib"]
24 assertComponent "A" (test "A-tests")
25 defCompAssertion
26 { sourceFiles = ["Test.hs"]
27 , sourceDirs = ["src"]