cabal-check testsuite: add Package/File tests
#8250
Merged
cabal-check testsuite: add Package/File tests
#8250