;cli: use the test suites recompilation workaround here too (#1125)

Applying the same workaround used in the hledger-lib test suites, to
hledger's test & benchmark suites. It seems only a single other-module
was being added here (Paths_hledger.hs), but this may add a little speed
and prevent greater slowdowns in future.
This commit is contained in:
Simon Michael 2019-11-19 04:17:23 -08:00
parent f0b2eed6c2
commit a0d012a50c
2 changed files with 3 additions and 5 deletions

View File

@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 8f2e354491d77c4334484836a2b1f0f95f6810abf49fffeaebeb19d37132a15a
-- hash: 6bdd5e55ef3db9761bde530f23cd7fe97dc63e707e18129732a4d827505c6aa4
name: hledger
version: 1.15.99
@ -246,8 +246,6 @@ executable hledger
test-suite test
type: exitcode-stdio-1.0
main-is: test.hs
other-modules:
Paths_hledger
hs-source-dirs:
test
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans -optP-Wno-nonportable-include-path
@ -300,8 +298,6 @@ test-suite test
benchmark bench
type: exitcode-stdio-1.0
main-is: bench.hs
other-modules:
Paths_hledger
hs-source-dirs:
bench
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans -optP-Wno-nonportable-include-path

View File

@ -207,6 +207,7 @@ tests:
test:
source-dirs: test
main: test.hs
other-modules: [] # prevent double compilation, https://github.com/sol/hpack/issues/188
cpp-options: -DVERSION="1.15.99"
dependencies:
- hledger
@ -218,6 +219,7 @@ benchmarks:
buildable: false
source-dirs: bench
main: bench.hs
other-modules: [] # prevent double compilation, https://github.com/sol/hpack/issues/188
dependencies:
- hledger
- criterion