1import Test.Cabal.Prelude 2main = setupAndCabalTest $ withPackageDb $ do 3 -- skip for GHC-8.4 and GHC-head until their Cabal modules are updated. 4 skipUnless =<< ghcVersionIs (< mkVersion [8,3]) 5 6 setup_install [] 7 recordMode DoNotRecord $ do 8 ghc84 <- ghcVersionIs (>= mkVersion [8,4]) 9 let lic = if ghc84 then "BSD-3-Clause" else "BSD3" 10 ghcPkg' "field" ["my", "license"] >>= assertOutputContains lic 11