Add “Ignore warning” option to cabal check
[cabal.git] / cabal-testsuite / PackageTests / WarnEarlyOverwrite / clean-install-by-copy.test.hs
blobaf7d6f336251920fa5fd475bae82fa419ad3ec10
1 import Test.Cabal.Prelude
3 main = withShorterPathForNewBuildStore $ \storeDir -> cabalTest $ do
4 let options = ["--store-dir=" ++ storeDir, "--installdir=" ++ storeDir]
5 -- Use install method copy that should surely work on Windows too but our
6 -- path normalization for testing is not good enough yet as can be seen in
7 -- this CI failure snippet diff:
8 -- -Warning: The directory <GBLTMPDIR>/ghc-<GHCVER>/incoming/new-<RAND><GBLTMPDIR>/ghc-<GHCVER>/<PACKAGE>-<HASH>/bin is not in the system search path.
9 -- -Copying 'warn-early-overwrite' to '<GBLTMPDIR>/warn-early-overwrite'
10 -- +Warning: The directory <GBLTMPDIR><GHCVER>/incoming/new-2448/Users/RUNNER~1/AppData/Local/Temp/cabal-test-store-28260/ghc-<GHCVER>/WarnEarlyOver_-0.1.0.0-4c19059e06a32b93b2812983631117e77a2d3833/bin is not in the system search path.
11 -- +Copying 'warn-early-overwrite' to '<GBLTMPDIR>'
12 skipIfWindows
13 cabalG options "v2-install" ["--install-method=copy"]