Skip to content

Commit

Permalink
Fix tests for default-package-bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Jun 26, 2024
1 parent b2e828f commit 0f17eff
Show file tree
Hide file tree
Showing 53 changed files with 180 additions and 5 deletions.
1 change: 1 addition & 0 deletions Cabal-tests/tests/NoThunks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ instance NoThunks BuildType
instance NoThunks CabalSpecVersion
instance NoThunks CompilerFlavor
instance NoThunks ConfVar
instance NoThunks DefaultBounds
instance NoThunks Dependency
instance NoThunks Executable
instance NoThunks ExecutableScope
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/Octree-0.5.expr
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/anynone.expr
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/big-version.expr
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ GenericPackageDescription {
flagDescription = "",
flagDefault = True,
flagManual = True}],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/common.expr
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/common2.expr
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/common3.expr
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/elif.expr
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/elif2.expr
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/encoding-0.8.expr
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/generics-sop.expr
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/hasktorch.expr
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ GenericPackageDescription {
"only build with Double and Long support",
flagDefault = False,
flagManual = False}],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/indentation.expr
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/indentation2.expr
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/indentation3.expr
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/issue-5055.expr
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Nothing,
condSubLibraries = [],
condForeignLibs = [],
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/issue-5846.expr
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/issue-6083-a.expr
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/issue-6083-b.expr
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/issue-6083-c.expr
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/issue-774.expr
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/leading-comma.expr
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/libpq1.expr
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ GenericPackageDescription {
flagDescription = "",
flagDefault = False,
flagManual = True}],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/libpq2.expr
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ GenericPackageDescription {
flagDescription = "",
flagDefault = False,
flagManual = True}],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/mixin-1.expr
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Nothing,
condSubLibraries = [],
condForeignLibs = [],
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/mixin-2.expr
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Nothing,
condSubLibraries = [],
condForeignLibs = [],
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/mixin-3.expr
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Nothing,
condSubLibraries = [],
condForeignLibs = [],
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/monad-param.expr
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/noVersion.expr
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ GenericPackageDescription {
flagDescription = "\28961",
flagDefault = True,
flagManual = False}],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/shake.expr
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ GenericPackageDescription {
"Obtain FileTime using portable functions",
flagDefault = False,
flagManual = True}],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/spdx-1.expr
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/spdx-2.expr
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/spdx-3.expr
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
2 changes: 2 additions & 0 deletions Cabal-tests/tests/ParserTests/regressions/version-sets.expr
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ GenericPackageDescription {
extraDocFiles = []},
gpdScannedVersion = Nothing,
genPackageFlags = [],
genDefaultPackageBounds =
Nothing,
condLibrary = Just
CondNode {
condTreeData = Library {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ tests =
longerThan = filter ((>25). length) allExplanationIdStrings

usingTooManyDashes :: [CheckExplanationIDString]
usingTooManyDashes = filter ((>2) . length . filter (=='-'))
usingTooManyDashes = filter ((>3) . length . filter (=='-'))
allExplanationIdStrings

Loading

0 comments on commit 0f17eff

Please sign in to comment.