Skip to content

Commit

Permalink
Use sequentialTestGroup to describe dependencies in clash-testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnbastiaan committed Jun 2, 2023
1 parent 63202ec commit 84afb71
Show file tree
Hide file tree
Showing 13 changed files with 89 additions and 123 deletions.
4 changes: 4 additions & 0 deletions .ci/stack-8.10.7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ extra-deps:
- docopt-0.7.0.7@sha256:a3d2eac54cd77d8c0b306ff96fb57be55542f143d81766aa1ae51458ad790dbe,3655
- prettyprinter-interp-0.2.0.0@sha256:45299b61bd6c27d594c1a72b5a8dd5734e791a59828725e4f4e420f3cc37232b,2016
- infinite-list-0.1@sha256:4de250517ce75e128c766fbc1f23b5a778ea964e695e47f8e83e0f3b293091bf,2383
- git: https://github.com/UnkindPartition/tasty.git
commit: e0e71bc40fcc1fa410f98a5963b9ed8eefa1e92d
subdirs:
- core
4 changes: 4 additions & 0 deletions .ci/stack-8.6.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ extra-deps:
- string-interpolate-0.3.1.2@sha256:4d0987f453c66040aa8e482fe28a7d3cdc9d8df01b698bc92f42a592cfb337db,4268
- prettyprinter-interp-0.2.0.0@sha256:45299b61bd6c27d594c1a72b5a8dd5734e791a59828725e4f4e420f3cc37232b,2016
- infinite-list-0.1@sha256:4de250517ce75e128c766fbc1f23b5a778ea964e695e47f8e83e0f3b293091bf,2383
- git: https://github.com/UnkindPartition/tasty.git
commit: e0e71bc40fcc1fa410f98a5963b9ed8eefa1e92d
subdirs:
- core
4 changes: 4 additions & 0 deletions .ci/stack-8.8.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ extra-deps:
- string-interpolate-0.3.1.2@sha256:4d0987f453c66040aa8e482fe28a7d3cdc9d8df01b698bc92f42a592cfb337db,4268
- prettyprinter-interp-0.2.0.0@sha256:45299b61bd6c27d594c1a72b5a8dd5734e791a59828725e4f4e420f3cc37232b,2016
- infinite-list-0.1@sha256:4de250517ce75e128c766fbc1f23b5a778ea964e695e47f8e83e0f3b293091bf,2383
- git: https://github.com/UnkindPartition/tasty.git
commit: e0e71bc40fcc1fa410f98a5963b9ed8eefa1e92d
subdirs:
- core
4 changes: 4 additions & 0 deletions .ci/stack-9.0.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ packages:
extra-deps:
- prettyprinter-interp-0.2.0.0@sha256:45299b61bd6c27d594c1a72b5a8dd5734e791a59828725e4f4e420f3cc37232b,2016
- infinite-list-0.1@sha256:4de250517ce75e128c766fbc1f23b5a778ea964e695e47f8e83e0f3b293091bf,2383
- git: https://github.com/UnkindPartition/tasty.git
commit: e0e71bc40fcc1fa410f98a5963b9ed8eefa1e92d
subdirs:
- core
4 changes: 4 additions & 0 deletions .ci/stack-9.2.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ extra-deps:
- hashable-1.3.5.0@sha256:3a2beeafb220f9de706568a7e4a5b3c762cc4c9f25c94d7ef795b8c2d6a691d7,4240
- prettyprinter-interp-0.2.0.0@sha256:45299b61bd6c27d594c1a72b5a8dd5734e791a59828725e4f4e420f3cc37232b,2016
- infinite-list-0.1@sha256:4de250517ce75e128c766fbc1f23b5a778ea964e695e47f8e83e0f3b293091bf,2383
- git: https://github.com/UnkindPartition/tasty.git
commit: e0e71bc40fcc1fa410f98a5963b9ed8eefa1e92d
subdirs:
- core
9 changes: 8 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ allow-newer:
vector-binary-instances:base,
cryptohash-sha256:base,
hashable,
haskell-src-meta:template-haskell,
string-interpolate:template-haskell,
string-interpolate:text,
haskell-src-meta:template-haskell
tasty-hedgehog:tasty,

-- Works around: https://github.com/recursion-schemes/recursion-schemes/issues/128. This
-- shouldn't harm (runtime) performance of Clash, as we only use recursion-schemes with
Expand All @@ -82,3 +83,9 @@ source-repository-package
type: git
location: https://github.com/christiaanb/hint.git
tag: 7803c34c8ae1d83c0f7c13fe6b30fcb3abd0ac51

source-repository-package
type: git
location: https://github.com/UnkindPartition/tasty.git
tag: e0e71bc40fcc1fa410f98a5963b9ed8eefa1e92d
subdir: core
2 changes: 1 addition & 1 deletion clash-cores/clash-cores.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ test-suite unittests
clash-lib,
clash-prelude-hedgehog,
deepseq,
tasty >= 1.2 && < 1.5,
tasty >= 1.2 && < 1.6,
tasty-hunit,
tasty-quickcheck,
tasty-th,
Expand Down
2 changes: 1 addition & 1 deletion clash-lib/clash-lib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ test-suite unittests
lens,
pretty-show,
quickcheck-text,
tasty >= 1.2 && < 1.5,
tasty >= 1.2 && < 1.6,
tasty-hunit,
tasty-quickcheck,
tasty-th,
Expand Down
2 changes: 1 addition & 1 deletion clash-prelude/clash-prelude.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ test-suite unittests
hedgehog >= 1.0.3 && < 1.3,
hint >= 0.7 && < 0.10,
quickcheck-classes-base >= 0.6 && < 1.0,
tasty >= 1.2 && < 1.5,
tasty >= 1.2 && < 1.6,
tasty-hedgehog >= 1.2.0,
tasty-hunit,
tasty-th,
Expand Down
4 changes: 4 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ extra-deps:
- ./clash-cosim
- prettyprinter-interp-0.2.0.0@sha256:45299b61bd6c27d594c1a72b5a8dd5734e791a59828725e4f4e420f3cc37232b,2016
- infinite-list-0.1@sha256:4de250517ce75e128c766fbc1f23b5a778ea964e695e47f8e83e0f3b293091bf,2383
- git: https://github.com/UnkindPartition/tasty.git
commit: e0e71bc40fcc1fa410f98a5963b9ed8eefa1e92d
subdirs:
- core
4 changes: 2 additions & 2 deletions tests/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ clashTestRoot testTrees =
clashTestGroup "." testTrees []

-- | `clashTestGroup` and `clashTestRoot` make sure that each test knows its
-- fully qualified test name at construction time. This is used to create
-- dependency patterns.
-- fully qualified test name at construction time. This is used to pass -i flags
-- to Clash as the test layout matches the layout in @shouldwork/@.
clashTestGroup
:: TestName
-> [[TestName] -> TestTree]
Expand Down
2 changes: 1 addition & 1 deletion tests/clash-testsuite.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ common basic-config
optparse-applicative,
process,
tagged,
tasty,
tasty >= 1.5,
tasty-hunit,
temporary,
text,
Expand Down
Loading

0 comments on commit 84afb71

Please sign in to comment.