Add test cases that reproduce #7241.
[cabal.git] / cabal-testsuite / PackageTests / ExternalCommandSetup / setup.cabal.hs
blobd6bea04003f2f57e8dff9196ac3d35e8a312bc0e
1 import Test.Cabal.Prelude
2 import System.Environment
4 main = setupTest $ do
5 withPackageDb $ do
6 withDirectory "aaaa" $ setup_install []
7 r <- runInstalledExe' "cabal-aaaa" []
8 env <- getTestEnv
9 let exe_path = testPrefixDir env </> "bin"
10 addToPath exe_path $ do
11 res <- fails $ withDirectory "custom" $ setup' "aaaa" []
12 assertOutputContains "unrecognised command" res