Skip to content

Commit

Permalink
Migrate ParserTests to cabal-install/parser-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgotoh committed Aug 22, 2024
1 parent ab8d570 commit aa8d3bb
Show file tree
Hide file tree
Showing 21 changed files with 180 additions and 159 deletions.
19 changes: 19 additions & 0 deletions cabal-install/cabal-install.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,25 @@ test-suite unit-tests
tree-diff,
QuickCheck >= 2.14.3 && <2.16

-- Tests for the project file parser
test-suite parser-tests
import: warnings, base-dep, cabal-dep, cabal-syntax-dep, cabal-install-solver-dep
default-language: Haskell2010
ghc-options: -rtsopts -threaded

type: exitcode-stdio-1.0
main-is: Tests.hs
hs-source-dirs: parser-tests
build-depends:
cabal-install,
containers,
directory,
filepath,
network-uri >= 2.6.2.0 && <2.7,
tasty >= 1.2.3 && <1.6,
tasty-hunit >= 0.10,
other-modules:
Tests.ParserTests

-- Tests to run with a limited stack and heap size
-- The test suite name must be keep short cause a longer one
Expand Down
7 changes: 7 additions & 0 deletions cabal-install/parser-tests/Tests.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Main where

import Tests.ParserTests (parserTests)
import Test.Tasty (defaultMain)

main :: IO ()
main = defaultMain parserTests

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions cabal-testsuite/cabal-testsuite.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ executable test-runtime-deps
build-depends:
, Cabal
, Cabal-syntax
, cabal-install
, cabal-install-solver
, Cabal-hooks
, base
, bytestring
Expand All @@ -136,7 +134,6 @@ executable test-runtime-deps
, directory
, exceptions
, filepath
, network-uri
, process
, time
, transformers
Expand Down

0 comments on commit aa8d3bb

Please sign in to comment.