mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-19 21:03:51 -07:00
Run tests as doctests
This commit is contained in:
parent
f0a2e688c4
commit
259b1a5dc6
12 changed files with 1691 additions and 1531 deletions
|
@ -33,9 +33,10 @@ Extra-Source-Files:
|
|||
|
||||
custom-setup
|
||||
setup-depends:
|
||||
base >= 4 && <5,
|
||||
process >= 1.0 && <1.7,
|
||||
Cabal >= 1.10 && <2.3
|
||||
base >= 4 && <5,
|
||||
process >= 1.0 && <1.7,
|
||||
cabal-doctest >= 1.0.6 && <1.1,
|
||||
Cabal >= 1.10 && <2.5
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
|
@ -57,7 +58,6 @@ library
|
|||
mtl >= 2.2.1,
|
||||
parsec,
|
||||
regex-tdfa,
|
||||
QuickCheck >= 2.7.4,
|
||||
-- When cabal supports it, move this to setup-depends:
|
||||
process
|
||||
exposed-modules:
|
||||
|
@ -98,18 +98,17 @@ executable shellcheck
|
|||
regex-tdfa
|
||||
main-is: shellcheck.hs
|
||||
|
||||
test-suite test-shellcheck
|
||||
type: exitcode-stdio-1.0
|
||||
build-depends:
|
||||
aeson,
|
||||
base >= 4 && < 5,
|
||||
bytestring,
|
||||
ShellCheck,
|
||||
containers,
|
||||
directory,
|
||||
mtl >= 2.2.1,
|
||||
parsec,
|
||||
QuickCheck >= 2.7.4,
|
||||
regex-tdfa
|
||||
main-is: test/shellcheck.hs
|
||||
test-suite doctests
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: doctests.hs
|
||||
build-depends:
|
||||
base,
|
||||
doctest >= 0.16.0 && <0.17,
|
||||
QuickCheck >=2.11 && <2.13,
|
||||
ShellCheck,
|
||||
template-haskell
|
||||
|
||||
x-doctest-options: --fast
|
||||
|
||||
ghc-options: -Wall -threaded
|
||||
hs-source-dirs: test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue