From dbd7e410e46a58d70e5f58bdd1c6b0f59d86c4d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Justus=20Sagem=C3=BCller?= Date: Wed, 24 Jul 2024 21:22:36 +0200 Subject: [PATCH] Move test suite into linearmap-hmatrix. --- linearmap-category.cabal | 15 ++------------ linearmap-hmatrix/linearmap-hmatrix.cabal | 20 +++++++++++++++++++ .../test/linearmap-category}/test.hs | 0 3 files changed, 22 insertions(+), 13 deletions(-) rename {test/tasty => linearmap-hmatrix/test/linearmap-category}/test.hs (100%) diff --git a/linearmap-category.cabal b/linearmap-category.cabal index d23c1ef..d609601 100644 --- a/linearmap-category.cabal +++ b/linearmap-category.cabal @@ -98,16 +98,5 @@ library -- hs-source-dirs: default-language: Haskell2010 -test-suite tasty - main-is: test.hs - type: exitcode-stdio-1.0 - hs-source-dirs: test/tasty - build-depends: base, linearmap-category, vector-space - , QuickCheck - , manifolds-core - , linear, vector - , constrained-categories - , tasty <1.6, tasty-quickcheck <0.11 - ghc-options: -threaded "-with-rtsopts -N8 -M2G" - default-language: Haskell2010 - +-- The test suite is part of the linearmap-hmatrix subpackage +-- (linearmap-hmatrix/test/linearmap-category/) diff --git a/linearmap-hmatrix/linearmap-hmatrix.cabal b/linearmap-hmatrix/linearmap-hmatrix.cabal index fa486ba..cc01995 100644 --- a/linearmap-hmatrix/linearmap-hmatrix.cabal +++ b/linearmap-hmatrix/linearmap-hmatrix.cabal @@ -35,6 +35,26 @@ library , QuickCheck default-language: Haskell2010 +-- Test suite for the main linearmap-category package. +-- This should in principle be part of that package itself, +-- but some of the tests use HMatrix for reference purposes and +-- therefore depend on linearmap-hmatrix. Because that in turn +-- depends on linearmap-category, Cabal complains about a +-- cyclic dependency although in principle it would be possible +-- to build everything regardless. +test-suite linearmap-category-test + main-is: test.hs + type: exitcode-stdio-1.0 + hs-source-dirs: test/linearmap-category + build-depends: base, linearmap-category, vector-space + , QuickCheck + , manifolds-core + , linear, vector + , constrained-categories + , tasty <1.6, tasty-quickcheck <0.11 + ghc-options: -threaded "-with-rtsopts -N8 -M2G" + default-language: Haskell2010 + test-suite linearmap-hmatrix-test main-is: test.hs type: exitcode-stdio-1.0 diff --git a/test/tasty/test.hs b/linearmap-hmatrix/test/linearmap-category/test.hs similarity index 100% rename from test/tasty/test.hs rename to linearmap-hmatrix/test/linearmap-category/test.hs