Skip to content

Commit

Permalink
Consolidate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mlang committed Jan 8, 2025
1 parent baef1ed commit 7156b05
Show file tree
Hide file tree
Showing 7 changed files with 172 additions and 292 deletions.
50 changes: 5 additions & 45 deletions chessIO.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ executable polyplay
, vector-instances
default-language: Haskell2010

test-suite perft
test-suite tests
type: exitcode-stdio-1.0
main-is: Perft.hs
main-is: tests.hs
other-modules:
Paths_chessIO
hs-source-dirs:
test/perft
test
ghc-options: -O2 -threaded -rtsopts "-with-rtsopts=-N -s"
build-depends:
MonadRandom
Expand All @@ -176,48 +176,6 @@ test-suite perft
, chessIO
, containers
, deepseq
, directory
, extra
, file-embed
, hashable
, lens
, megaparsec >=9.0
, mono-traversable
, o-clock
, parallel
, prettyprinter >=1.7.0
, process
, random
, stm
, template-haskell >=2.9.0.0
, text
, th-compat >=0.1.2
, th-lift-instances
, time
, unordered-containers
, vector
, vector-binary-instances
, vector-instances
default-language: Haskell2010

test-suite polyglot
type: exitcode-stdio-1.0
main-is: Polyglot.hs
other-modules:
Paths_chessIO
hs-source-dirs:
test/polyglot
ghc-options: -O2
build-depends:
HUnit
, MonadRandom
, attoparsec
, base >=4.10 && <5
, binary
, bytestring
, chessIO
, containers
, deepseq
, extra
, file-embed
, hashable
Expand All @@ -229,6 +187,8 @@ test-suite polyglot
, process
, random
, stm
, tasty
, tasty-hunit
, template-haskell >=2.9.0.0
, text
, th-compat >=0.1.2
Expand Down
17 changes: 5 additions & 12 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,11 @@ executables:
- time

tests:
perft:
main: Perft.hs
source-dirs: test/perft
tests:
main: tests.hs
source-dirs: test
ghc-options: -threaded -rtsopts "-with-rtsopts=-N -s"
dependencies:
- chessIO
- directory
- parallel
- time
polyglot:
main: Polyglot.hs
source-dirs: test/polyglot
dependencies:
- HUnit
- chessIO
- tasty
- tasty-hunit
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-23.0
resolver: lts-23.3
packages:
- .
flags:
Expand Down
91 changes: 0 additions & 91 deletions test/perft/Perft.hs

This file was deleted.

126 changes: 0 additions & 126 deletions test/perft/perftsuite.epd

This file was deleted.

17 changes: 0 additions & 17 deletions test/polyglot/Polyglot.hs

This file was deleted.

Loading

0 comments on commit 7156b05

Please sign in to comment.