Commit 0ed1909d authored by John Ericson's avatar John Ericson
Browse files

Modify cabal-install build-tools-depends test adding bad exe

The executable is unused so it shouldn't need to be built and
cause problems.

Also, convert the test to use the testsuite
parent 6dbaa920
......@@ -85,12 +85,6 @@ Extra-Source-Files:
tests/IntegrationTests/new-build/T4017/cabal.project
tests/IntegrationTests/new-build/T4017/p/p.cabal
tests/IntegrationTests/new-build/T4017/q/q.cabal
tests/IntegrationTests/new-build/build_tool_depends.sh
tests/IntegrationTests/new-build/build_tool_depends/cabal.project
tests/IntegrationTests/new-build/build_tool_depends/client/Hello.hs
tests/IntegrationTests/new-build/build_tool_depends/client/client.cabal
tests/IntegrationTests/new-build/build_tool_depends/pre-proc/MyCustomPreprocessor.hs
tests/IntegrationTests/new-build/build_tool_depends/pre-proc/pre-proc.cabal
tests/IntegrationTests/new-build/executable/Main.hs
tests/IntegrationTests/new-build/executable/Setup.hs
tests/IntegrationTests/new-build/executable/Test.hs
......
. ./common.sh
cd build_tool_depends
cabal new-build client
packages: client
optional-packages: pre-proc
......@@ -10,3 +10,8 @@ executable zero-to-one
main-is: MyCustomPreprocessor.hs
build-depends: base, directory
default-language: Haskell2010
executable bad-do-not-build-me
main-is: MyMissingPreprocessor.hs
build-depends: base, directory
default-language: Haskell2010
import Test.Cabal.Prelude
-- Test unneed version bound on internal build-tools deps
main = cabalTest $ do
cabal "new-build" ["client"]
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