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

Port multiple-source to cabal-testsuite


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 473e4c61
......@@ -46,11 +46,6 @@ Extra-Source-Files:
tests/IntegrationTests/freeze/freezes_transitive_dependencies.sh
tests/IntegrationTests/freeze/my.cabal
tests/IntegrationTests/freeze/runs_without_error.sh
tests/IntegrationTests/multiple-source/finds_second_source_of_multiple_source.sh
tests/IntegrationTests/multiple-source/p/Setup.hs
tests/IntegrationTests/multiple-source/p/p.cabal
tests/IntegrationTests/multiple-source/q/Setup.hs
tests/IntegrationTests/multiple-source/q/q.cabal
tests/IntegrationTests/sandbox-reinstalls/p/Main.hs
tests/IntegrationTests/sandbox-reinstalls/p/p.cabal
tests/IntegrationTests/sandbox-reinstalls/q/Q.hs
......
. ./common.sh
# Create the sandbox
cabal sandbox init
# Add the sources
cabal sandbox add-source p
cabal sandbox add-source q
# Install the second package
cabal install q
# cabal sandbox init
Writing a default package environment file to <ROOT>/cabal.dist/cabal.sandbox.config
Creating a new sandbox at <ROOT>/cabal.dist/sandbox
# cabal sandbox add-source
# cabal sandbox add-source
# cabal install
Resolving dependencies...
Configuring q-0.1.0.0...
Preprocessing library for q-0.1.0.0..
Building library for q-0.1.0.0..
Installing library in <PATH>
Installed q-0.1.0.0
import Test.Cabal.Prelude
main = cabalTest $ do
withSandbox $ do
cabal_sandbox "add-source" ["p"]
cabal_sandbox "add-source" ["q"]
cabal "install" ["q"]
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