diff --git a/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/a/A.hs b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/a/A.hs new file mode 100644 index 00000000000..900eaa39291 --- /dev/null +++ b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/a/A.hs @@ -0,0 +1,4 @@ +module A where + +a :: () +a = () diff --git a/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/a/Setup.hs b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/a/Setup.hs new file mode 100644 index 00000000000..9a994af677b --- /dev/null +++ b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/a/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/a/a.cabal b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/a/a.cabal new file mode 100644 index 00000000000..2726f156eed --- /dev/null +++ b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/a/a.cabal @@ -0,0 +1,18 @@ +name: a +version: 0.1.0.0 +license: BSD3 +license-file: LICENSE +author: Echo Nolan +category: TestSuite +build-type: Simple +cabal-version: >=1.10 + +library + exposed-modules: A + build-depends: base + default-language: Haskell2010 + +Test-Suite tests + type: exitcode-stdio-1.0 + main-is: test.hs + build-depends: b diff --git a/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/b/B.hs b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/b/B.hs new file mode 100644 index 00000000000..9a55f80e2f5 --- /dev/null +++ b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/b/B.hs @@ -0,0 +1,4 @@ +module B where + +b :: () +b = () diff --git a/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/b/Setup.hs b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/b/Setup.hs new file mode 100644 index 00000000000..9a994af677b --- /dev/null +++ b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/b/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/b/b.cabal b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/b/b.cabal new file mode 100644 index 00000000000..aff9248cf67 --- /dev/null +++ b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/b/b.cabal @@ -0,0 +1,13 @@ +name: b +version: 0.1.0.0 +license: BSD3 +license-file: LICENSE +author: Echo Nolan +category: TestSuite +build-type: Simple +cabal-version: >=1.10 + +library + exposed-modules: B + build-depends: base, a + default-language: Haskell2010 diff --git a/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/testsuite-dependencies-are-independent.sh b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/testsuite-dependencies-are-independent.sh new file mode 100644 index 00000000000..cabf0f37b20 --- /dev/null +++ b/cabal-install/tests/IntegrationTests/circular-testsuite/should_run/testsuite-dependencies-are-independent.sh @@ -0,0 +1,14 @@ +# Helper to run Cabal +cabal() { + $CABAL $CABAL_ARGS "$@" +} + +die() { + echo "die: $@" + exit 1 +} + +cabal sandbox init +cabal sandbox add-source a +cabal sandbox add-source b +cabal install --enable-tests a