Add test cases that reproduce #7241.
[cabal.git] / cabal-testsuite / PackageTests / SPDX / cabal-old-build.test.hs
blobf88f6249197ac837b2c616b989efd11f9a938114
1 import Test.Cabal.Prelude
2 main = setupAndCabalTest $ withPackageDb $ do
3 setup_install []
4 recordMode DoNotRecord $ do
5 ghc84 <- isGhcVersion ">= 8.4"
6 let lic = if ghc84 then "BSD-3-Clause" else "BSD3"
7 ghcPkg' "field" ["my", "license"] >>= assertOutputContains lic