Skip to content
Snippets Groups Projects
Commit 4322ce74 authored by Patrick Augusto's avatar Patrick Augusto Committed by mergify-bot
Browse files

Adjusting tests' output

parent f657276d
No related branches found
No related tags found
No related merge requests found
Showing
with 71 additions and 3 deletions
......@@ -271,24 +271,27 @@ goldenCabalTests v pkgIx srcDb = testGroup ".cabal file golden tests"
(Right (ProjectSettings opts pkgDesc (Just libTarget) (Just exeTarget) (Just testTarget), _)) -> do
let pkgFields = mkPkgDescription opts pkgDesc
commonStanza = mkCommonStanza opts
libStanza = mkLibStanza opts $ libTarget {_libDependencies = mangleBaseDep libTarget _libDependencies}
exeStanza = mkExeStanza opts $ exeTarget {_exeDependencies = mangleBaseDep exeTarget _exeDependencies}
testStanza = mkTestStanza opts $ testTarget {_testDependencies = mangleBaseDep testTarget _testDependencies}
mkStanza $ pkgFields ++ [libStanza, exeStanza, testStanza]
mkStanza $ pkgFields ++ [commonStanza, libStanza, exeStanza, testStanza]
(Right (ProjectSettings opts pkgDesc (Just libTarget) Nothing (Just testTarget), _)) -> do
let pkgFields = mkPkgDescription opts pkgDesc
commonStanza = mkCommonStanza opts
libStanza = mkLibStanza opts $ libTarget {_libDependencies = mangleBaseDep libTarget _libDependencies}
testStanza = mkTestStanza opts $ testTarget {_testDependencies = mangleBaseDep testTarget _testDependencies}
mkStanza $ pkgFields ++ [libStanza, testStanza]
mkStanza $ pkgFields ++ [commonStanza, libStanza, testStanza]
(Right (ProjectSettings opts pkgDesc Nothing Nothing (Just testTarget), _)) -> do
let pkgFields = mkPkgDescription opts pkgDesc
commonStanza = mkCommonStanza opts
testStanza = mkTestStanza opts $ testTarget {_testDependencies = mangleBaseDep testTarget _testDependencies}
mkStanza $ pkgFields ++ [testStanza]
mkStanza $ pkgFields ++ [commonStanza, testStanza]
(Right (ProjectSettings _ _ l e t, _)) -> assertFailure $
show l ++ "\n" ++ show e ++ "\n" ++ show t
......
......@@ -20,7 +20,11 @@ extra-doc-files: CHANGELOG.md
-- Extra source files to be distributed with the package, such as examples, or a tutorial module.
-- extra-source-files:
common warnings
ghc-options: -Wall
library
import: warnings
exposed-modules: MyLib
-- Modules included in this library but not exported.
......@@ -33,6 +37,7 @@ library
default-language: Haskell98
executable y
import: warnings
main-is: Main.hs
-- Modules included in this executable, other than Main.
......@@ -48,6 +53,7 @@ executable y
default-language: Haskell2010
test-suite y-test
import: warnings
default-language: Haskell2010
-- Modules included in this executable, other than Main.
......
......@@ -52,7 +52,13 @@ extra-doc-files: CHANGELOG.md
-- Extra source files to be distributed with the package, such as examples, or a tutorial module.
-- extra-source-files:
common warnings
ghc-options: -Wall
library
-- Import common warning flags.
import: warnings
-- Modules exported by the library.
exposed-modules: MyLib
......@@ -72,6 +78,9 @@ library
default-language: Haskell98
executable y
-- Import common warning flags.
import: warnings
-- .hs or .lhs file containing the Main module.
main-is: Main.hs
......@@ -93,6 +102,9 @@ executable y
default-language: Haskell2010
test-suite y-test
-- Import common warning flags.
import: warnings
-- Base language which the package is written in.
default-language: Haskell2010
......
......@@ -20,7 +20,11 @@ extra-doc-files: CHANGELOG.md
-- Extra source files to be distributed with the package, such as examples, or a tutorial module.
-- extra-source-files:
common warnings
ghc-options: -Wall
library
import: warnings
exposed-modules: MyLib
-- Modules included in this library but not exported.
......@@ -33,6 +37,7 @@ library
default-language: Haskell98
test-suite y-test
import: warnings
default-language: Haskell2010
-- Modules included in this executable, other than Main.
......
......@@ -52,7 +52,13 @@ extra-doc-files: CHANGELOG.md
-- Extra source files to be distributed with the package, such as examples, or a tutorial module.
-- extra-source-files:
common warnings
ghc-options: -Wall
library
-- Import common warning flags.
import: warnings
-- Modules exported by the library.
exposed-modules: MyLib
......@@ -72,6 +78,9 @@ library
default-language: Haskell98
test-suite y-test
-- Import common warning flags.
import: warnings
-- Base language which the package is written in.
default-language: Haskell2010
......
......@@ -20,7 +20,11 @@ extra-doc-files: CHANGELOG.md
-- Extra source files to be distributed with the package, such as examples, or a tutorial module.
-- extra-source-files:
common warnings
ghc-options: -Wall
test-suite y-test
import: warnings
default-language: Haskell2010
-- Modules included in this executable, other than Main.
......
......@@ -52,7 +52,13 @@ extra-doc-files: CHANGELOG.md
-- Extra source files to be distributed with the package, such as examples, or a tutorial module.
-- extra-source-files:
common warnings
ghc-options: -Wall
test-suite y-test
-- Import common warning flags.
import: warnings
-- Base language which the package is written in.
default-language: Haskell2010
......
executable y
-- Import common warning flags.
import: warnings
-- .hs or .lhs file containing the Main module.
main-is: Main.hs
......
executable y
import: warnings
main-is: Main.hs
build-depends: base
hs-source-dirs: exe
......
executable y
import: warnings
main-is: Main.hs
build-depends: base
hs-source-dirs: exe
......
executable y
-- Import common warning flags.
import: warnings
-- .hs or .lhs file containing the Main module.
main-is: Main.hs
......
executable y
import: warnings
main-is: Main.hs
-- Modules included in this executable, other than Main.
......
library
-- Import common warning flags.
import: warnings
-- Modules exported by the library.
exposed-modules: MyLib
......
library
import: warnings
exposed-modules: MyLib
build-depends: base
hs-source-dirs: src
......
library
import: warnings
exposed-modules: MyLib
build-depends: base
hs-source-dirs: src
......
library
import: warnings
exposed-modules: MyLib
-- Modules included in this library but not exported.
......
library
-- Import common warning flags.
import: warnings
-- Modules exported by the library.
exposed-modules: MyLib
......
library
import: warnings
exposed-modules: MyLib
-- Modules included in this library but not exported.
......
test-suite y-test
-- Import common warning flags.
import: warnings
-- Base language which the package is written in.
default-language: Haskell2010
......
test-suite y-test
import: warnings
default-language: Haskell2010
-- Modules included in this executable, other than Main.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment