mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
* Add test. * wip * Fix merge regression * Combine drv, drv.source and drv.dist for doctest * Skip cabal-doctests test when cross compiling * Add the --no-magic flag to the .cabal file for the cabal-doctests test. This appears to be necessary on OSX. The --no-magic flag stops the doctest executable from expanding path arguments, trying to locate the package db, etc. This shouldn't be necessary with cabal-doctest, since all the necessary options to pass to doctest are computed when running the Setup.hs script. See https://github.com/input-output-hk/haskell.nix/pull/427#issuecomment-605761780. * Fix cabal-doctest support * Skip cabal-doctest test plan cross compiling * More fixes for cabal-doctest * Skip cabal-doctest tests when cross compiling Co-authored-by: Moritz Angermann <moritz.angermann@gmail.com> Co-authored-by: Hamish Mackenzie <Hamish.Mackenzie@iohk.io> Co-authored-by: Hamish Mackenzie <Hamish.K.Mackenzie@gmail.com>
32 lines
643 B
Plaintext
32 lines
643 B
Plaintext
cabal-version: 1.12
|
|
|
|
name: cabal-doctests-test
|
|
version: 0.1.0.0
|
|
build-type: Custom
|
|
|
|
custom-setup
|
|
setup-depends:
|
|
base >= 4 && <5,
|
|
Cabal,
|
|
cabal-doctest >= 1 && <1.1
|
|
|
|
library
|
|
hs-source-dirs: src
|
|
exposed-modules: Lib
|
|
other-modules: Paths_cabal_doctests_test
|
|
build-depends:
|
|
base >=4.7 && <5,
|
|
aeson
|
|
default-language: Haskell2010
|
|
|
|
test-suite doctests
|
|
hs-source-dirs: doctests
|
|
x-doctest-options: --no-magic
|
|
type: exitcode-stdio-1.0
|
|
main-is: Doctests.hs
|
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N
|
|
build-depends:
|
|
base >=4.7 && <5
|
|
, doctest
|
|
default-language: Haskell2010
|