Commit 5a2b2360 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Revert "Test for copy --assume-deps-up-to-date"

This reverts commit 4ea94c45.
parent b1b3d344
......@@ -175,8 +175,6 @@ extra-source-files:
tests/PackageTests/ConfigureComponent/Test/testlib/TestLib.hs
tests/PackageTests/ConfigureComponent/Test/testlib/testlib.cabal
tests/PackageTests/ConfigureComponent/Test/tests/Test.hs
tests/PackageTests/CopyAssumeDepsUpToDate/CopyAssumeDepsUpToDate.cabal
tests/PackageTests/CopyAssumeDepsUpToDate/Main.hs
tests/PackageTests/CopyComponent/Exe/Main.hs
tests/PackageTests/CopyComponent/Exe/Main2.hs
tests/PackageTests/CopyComponent/Exe/myprog.cabal
......
name: CopyAssumeDepsUpToDate
version: 0.1.0.0
license: BSD3
author: Edward Z. Yang
maintainer: ezyang@cs.stanford.edu
build-type: Simple
cabal-version: >=1.10
data-files: data
executable myprog
main-is: Main.hs
other-modules: Paths_CopyAssumeDepsUpToDate
build-depends: base
default-language: Haskell2010
module Main where
import Paths_CopyAssumeDepsUpToDate
main :: IO ()
main = do
data_fn <- getDataFileName "data"
putStrLn data_fn -- for debugging
data_contents <- readFile data_fn
putStrLn data_contents
......@@ -544,32 +544,6 @@ tests config = do
runExe' "myprog" []
>>= assertOutputContains "a1 b2"
-- Test copy --assume-deps-up-to-date
mtc "CopyAssumeDepsUpToDate" $ \step -> do
withPackageDb $ do
step "Initial build"
cabal_build []
step "Executable cannot find data file"
pkg_dir <- packageDir
shouldFail (runExe' "myprog" [])
>>= assertOutputContains "does not exist"
prefix_dir <- prefixDir
shouldNotExist $ prefix_dir </> "bin" </> "myprog"
step "Install data file"
liftIO $ writeFile (pkg_dir </> "data") "aaa"
cabal "copy" ["--assume-deps-up-to-date"]
shouldNotExist $ prefix_dir </> "bin" </> "myprog"
runExe' "myprog" []
>>= assertOutputContains "aaa"
step "Install executable"
liftIO $ writeFile (pkg_dir </> "data") "bbb"
cabal "copy" ["--assume-deps-up-to-date", "myprog"]
runInstalledExe' "myprog" []
>>= assertOutputContains "aaa"
-- Test error message we report when a non-buildable target is
-- requested to be built
-- TODO: We can give a better error message here, see #3858.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment