Skip to content

Commit

Permalink
Accept parser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alt-romes committed Feb 27, 2024
1 parent d4d94ac commit 6a9c45b
Show file tree
Hide file tree
Showing 42 changed files with 5,619 additions and 4,881 deletions.
128 changes: 70 additions & 58 deletions Cabal-tests/tests/ParserTests/regressions/Octree-0.5.expr
Original file line number Diff line number Diff line change
Expand Up @@ -154,26 +154,30 @@ GenericPackageDescription {
(OrLaterVersion
(mkVersion [2, 4, 0]))
mainLibSet],
targetPrivateBuildDepends = [],
mixins = []}},
condTreeConstraints = [
Dependency
(PackageName "base")
(IntersectVersionRanges
condTreeConstraints =
Dependencies {
publicDependencies = [
Dependency
(PackageName "base")
(IntersectVersionRanges
(OrLaterVersion
(mkVersion [4, 0]))
(EarlierVersion
(mkVersion [4, 7])))
mainLibSet,
Dependency
(PackageName "AC-Vector")
(OrLaterVersion
(mkVersion [4, 0]))
(EarlierVersion
(mkVersion [4, 7])))
mainLibSet,
Dependency
(PackageName "AC-Vector")
(OrLaterVersion
(mkVersion [2, 3, 0]))
mainLibSet,
Dependency
(PackageName "QuickCheck")
(OrLaterVersion
(mkVersion [2, 4, 0]))
mainLibSet],
(mkVersion [2, 3, 0]))
mainLibSet,
Dependency
(PackageName "QuickCheck")
(OrLaterVersion
(mkVersion [2, 4, 0]))
mainLibSet],
privateDependencies = []},
condTreeComponents = []},
condSubLibraries = [],
condForeignLibs = [],
Expand Down Expand Up @@ -259,27 +263,31 @@ GenericPackageDescription {
(OrLaterVersion
(mkVersion [2, 4, 0]))
mainLibSet],
targetPrivateBuildDepends = [],
mixins = []},
testCodeGenerators = []},
condTreeConstraints = [
Dependency
(PackageName "base")
(IntersectVersionRanges
condTreeConstraints =
Dependencies {
publicDependencies = [
Dependency
(PackageName "base")
(IntersectVersionRanges
(OrLaterVersion
(mkVersion [4, 0]))
(EarlierVersion
(mkVersion [4, 7])))
mainLibSet,
Dependency
(PackageName "AC-Vector")
(OrLaterVersion
(mkVersion [4, 0]))
(EarlierVersion
(mkVersion [4, 7])))
mainLibSet,
Dependency
(PackageName "AC-Vector")
(OrLaterVersion
(mkVersion [2, 3, 0]))
mainLibSet,
Dependency
(PackageName "QuickCheck")
(OrLaterVersion
(mkVersion [2, 4, 0]))
mainLibSet],
(mkVersion [2, 3, 0]))
mainLibSet,
Dependency
(PackageName "QuickCheck")
(OrLaterVersion
(mkVersion [2, 4, 0]))
mainLibSet],
privateDependencies = []},
condTreeComponents = []},
_×_
(UnqualComponentName "readme")
Expand Down Expand Up @@ -364,30 +372,34 @@ GenericPackageDescription {
(PackageName "markdown-unlit")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
targetPrivateBuildDepends = [],
mixins = []},
testCodeGenerators = []},
condTreeConstraints = [
Dependency
(PackageName "base")
(IntersectVersionRanges
condTreeConstraints =
Dependencies {
publicDependencies = [
Dependency
(PackageName "base")
(IntersectVersionRanges
(OrLaterVersion
(mkVersion [4, 0]))
(EarlierVersion
(mkVersion [4, 7])))
mainLibSet,
Dependency
(PackageName "AC-Vector")
(OrLaterVersion
(mkVersion [4, 0]))
(EarlierVersion
(mkVersion [4, 7])))
mainLibSet,
Dependency
(PackageName "AC-Vector")
(OrLaterVersion
(mkVersion [2, 3, 0]))
mainLibSet,
Dependency
(PackageName "QuickCheck")
(OrLaterVersion
(mkVersion [2, 4, 0]))
mainLibSet,
Dependency
(PackageName "markdown-unlit")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
(mkVersion [2, 3, 0]))
mainLibSet,
Dependency
(PackageName "QuickCheck")
(OrLaterVersion
(mkVersion [2, 4, 0]))
mainLibSet,
Dependency
(PackageName "markdown-unlit")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
privateDependencies = []},
condTreeComponents = []}],
condBenchmarks = []}
14 changes: 9 additions & 5 deletions Cabal-tests/tests/ParserTests/regressions/anynone.expr
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,16 @@ GenericPackageDescription {
(PackageName "base")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
targetPrivateBuildDepends = [],
mixins = []}},
condTreeConstraints = [
Dependency
(PackageName "base")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
condTreeConstraints =
Dependencies {
publicDependencies = [
Dependency
(PackageName "base")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
privateDependencies = []},
condTreeComponents = []},
condSubLibraries = [],
condForeignLibs = [],
Expand Down
6 changes: 5 additions & 1 deletion Cabal-tests/tests/ParserTests/regressions/big-version.expr
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,12 @@ GenericPackageDescription {
PerCompilerFlavor [] [],
customFieldsBI = [],
targetBuildDepends = [],
targetPrivateBuildDepends = [],
mixins = []}},
condTreeConstraints = [],
condTreeConstraints =
Dependencies {
publicDependencies = [],
privateDependencies = []},
condTreeComponents = []},
condSubLibraries = [],
condForeignLibs = [],
Expand Down
136 changes: 84 additions & 52 deletions Cabal-tests/tests/ParserTests/regressions/common-conditional.expr
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,16 @@ GenericPackageDescription {
(PackageName "ghc-prim")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
targetPrivateBuildDepends = [],
mixins = []}},
condTreeConstraints = [
Dependency
(PackageName "ghc-prim")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
condTreeConstraints =
Dependencies {
publicDependencies = [
Dependency
(PackageName "ghc-prim")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
privateDependencies = []},
condTreeComponents = [
CondBranch {
condBranchCondition =
Expand Down Expand Up @@ -203,20 +207,24 @@ GenericPackageDescription {
(PackageName "containers")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
targetPrivateBuildDepends = [],
mixins = []}},
condTreeConstraints = [
Dependency
(PackageName "base")
(IntersectVersionRanges
(OrLaterVersion
(mkVersion [4, 10]))
(EarlierVersion
(mkVersion [4, 11])))
mainLibSet,
Dependency
(PackageName "containers")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
condTreeConstraints =
Dependencies {
publicDependencies = [
Dependency
(PackageName "base")
(IntersectVersionRanges
(OrLaterVersion
(mkVersion [4, 10]))
(EarlierVersion
(mkVersion [4, 11])))
mainLibSet,
Dependency
(PackageName "containers")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
privateDependencies = []},
condTreeComponents = [
CondBranch {
condBranchCondition =
Expand Down Expand Up @@ -286,12 +294,16 @@ GenericPackageDescription {
(PackageName "Win32")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
targetPrivateBuildDepends = [],
mixins = []}},
condTreeConstraints = [
Dependency
(PackageName "Win32")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
condTreeConstraints =
Dependencies {
publicDependencies = [
Dependency
(PackageName "Win32")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
privateDependencies = []},
condTreeComponents = []},
condBranchIfFalse = Nothing}]},
condBranchIfFalse = Nothing}]},
Expand Down Expand Up @@ -364,13 +376,17 @@ GenericPackageDescription {
(PackageName "HUnit")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
targetPrivateBuildDepends = [],
mixins = []},
testCodeGenerators = []},
condTreeConstraints = [
Dependency
(PackageName "HUnit")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
condTreeConstraints =
Dependencies {
publicDependencies = [
Dependency
(PackageName "HUnit")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
privateDependencies = []},
condTreeComponents = [
CondBranch {
condBranchCondition =
Expand Down Expand Up @@ -436,9 +452,13 @@ GenericPackageDescription {
PerCompilerFlavor [] [],
customFieldsBI = [],
targetBuildDepends = [],
targetPrivateBuildDepends = [],
mixins = []},
testCodeGenerators = []},
condTreeConstraints = [],
condTreeConstraints =
Dependencies {
publicDependencies = [],
privateDependencies = []},
condTreeComponents = []},
condBranchIfFalse = Nothing},
CondBranch {
Expand Down Expand Up @@ -517,21 +537,25 @@ GenericPackageDescription {
(PackageName "containers")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
targetPrivateBuildDepends = [],
mixins = []},
testCodeGenerators = []},
condTreeConstraints = [
Dependency
(PackageName "base")
(IntersectVersionRanges
(OrLaterVersion
(mkVersion [4, 10]))
(EarlierVersion
(mkVersion [4, 11])))
mainLibSet,
Dependency
(PackageName "containers")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
condTreeConstraints =
Dependencies {
publicDependencies = [
Dependency
(PackageName "base")
(IntersectVersionRanges
(OrLaterVersion
(mkVersion [4, 10]))
(EarlierVersion
(mkVersion [4, 11])))
mainLibSet,
Dependency
(PackageName "containers")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
privateDependencies = []},
condTreeComponents = [
CondBranch {
condBranchCondition =
Expand Down Expand Up @@ -601,13 +625,17 @@ GenericPackageDescription {
(PackageName "Win32")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
targetPrivateBuildDepends = [],
mixins = []},
testCodeGenerators = []},
condTreeConstraints = [
Dependency
(PackageName "Win32")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
condTreeConstraints =
Dependencies {
publicDependencies = [
Dependency
(PackageName "Win32")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
privateDependencies = []},
condTreeComponents = []},
condBranchIfFalse = Nothing},
CondBranch {
Expand Down Expand Up @@ -678,13 +706,17 @@ GenericPackageDescription {
(PackageName "Win32")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
targetPrivateBuildDepends = [],
mixins = []},
testCodeGenerators = []},
condTreeConstraints = [
Dependency
(PackageName "Win32")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
condTreeConstraints =
Dependencies {
publicDependencies = [
Dependency
(PackageName "Win32")
(OrLaterVersion (mkVersion [0]))
mainLibSet],
privateDependencies = []},
condTreeComponents = []},
condBranchIfFalse = Nothing}]},
condBranchIfFalse = Nothing}]}],
Expand Down
Loading

0 comments on commit 6a9c45b

Please sign in to comment.