forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
84 additions
and
74 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
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
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
7 changes: 4 additions & 3 deletions
7
cabal-testsuite/PackageTests/Backpack/Includes2/enable-coverage.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest $ do | ||
skipUnlessGhcVersion ">= 8.1" | ||
-- #6397 | ||
cabal "test" ["--enable-coverage"] | ||
skipUnlessGhcVersion ">= 8.1" | ||
-- #6397 | ||
cabal "test" ["--enable-coverage"] |
14 changes: 9 additions & 5 deletions
14
cabal-testsuite/PackageTests/MultipleLibraries/Successful/cabal.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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import Test.Cabal.Prelude | ||
main = cabalTest $ | ||
cabal' "v2-run" ["pkg-abc:program"] >>= assertOutputContains "pkg-def:publib" | ||
|
||
-- # #8609 | ||
cabal' "v2-test" ["--enable-coverage", "all"] | ||
|
||
main = | ||
cabalTest $ | ||
cabal' "v2-run" ["pkg-abc:program"] | ||
>>= assertOutputContains | ||
"pkg-def:publib" | ||
-- # #8609 | ||
cabal' | ||
"v2-test" | ||
["--enable-coverage", "all"] |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Test.Cabal.Prelude | ||
main = cabalTest $ cabal "test" ["--enable-coverage"] | ||
|
||
main = cabalTest $ cabal "test" ["--enable-coverage"] |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module U2F.Types where | ||
|
||
data Curve = SEC_p256r1 deriving Show | ||
data Curve = SEC_p256r1 deriving (Show) |
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 |
---|---|---|
|
@@ -3,4 +3,3 @@ import U2F.Types | |
|
||
main = print ourCurve | ||
main :: IO () | ||
|
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest $ cabal "test" ["--enable-coverage"] |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module Top where | ||
|
||
import Inn | ||
|
||
foo :: String | ||
|
23 changes: 12 additions & 11 deletions
23
cabal-testsuite/PackageTests/TestSuiteTests/ExeV10/setup-no-markup.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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
import Test.Cabal.Prelude | ||
import Distribution.Simple.Hpc | ||
import Test.Cabal.Prelude | ||
|
||
-- Ensures that even if a .tix file happens to be left around | ||
-- markup isn't generated. | ||
main = setupAndCabalTest $ do | ||
dist_dir <- fmap testDistDir getTestEnv | ||
let tixFile = tixFilePath dist_dir Vanilla "test-Short" | ||
withEnv [("HPCTIXFILE", Just tixFile)] $ do | ||
setup_build | ||
[ "--enable-tests" | ||
, "--ghc-option=-fhpc" | ||
, "--ghc-option=-hpcdir" | ||
, "--ghc-option=" ++ dist_dir ++ "/hpc/vanilla" ] | ||
setup "test" ["test-Short", "--show-details=direct"] | ||
shouldNotExist $ htmlDir dist_dir Vanilla </> "hpc_index.html" | ||
dist_dir <- fmap testDistDir getTestEnv | ||
let tixFile = tixFilePath dist_dir Vanilla "test-Short" | ||
withEnv [("HPCTIXFILE", Just tixFile)] $ do | ||
setup_build | ||
[ "--enable-tests" | ||
, "--ghc-option=-fhpc" | ||
, "--ghc-option=-hpcdir" | ||
, "--ghc-option=" ++ dist_dir ++ "/hpc/vanilla" | ||
] | ||
setup "test" ["test-Short", "--show-details=direct"] | ||
shouldNotExist $ htmlDir dist_dir Vanilla </> "hpc_index.html" |