From e0ca0ea88159a5e02a0badd4429635cae59e3038 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Tue, 2 Apr 2019 06:15:32 +0300 Subject: [PATCH] Add test and close #4044 --- .../integration/tests/4044-no-run-tests-config/Main.hs | 6 ++++++ .../tests/4044-no-run-tests-config/files/.gitignore | 1 + .../tests/4044-no-run-tests-config/files/Test.hs | 2 ++ .../tests/4044-no-run-tests-config/files/package.yaml | 10 ++++++++++ .../tests/4044-no-run-tests-config/files/stack.yaml | 4 ++++ .../integration/tests/copy-bins-works/files/.gitignore | 1 + 6 files changed, 24 insertions(+) create mode 100644 test/integration/tests/4044-no-run-tests-config/Main.hs create mode 100644 test/integration/tests/4044-no-run-tests-config/files/.gitignore create mode 100644 test/integration/tests/4044-no-run-tests-config/files/Test.hs create mode 100644 test/integration/tests/4044-no-run-tests-config/files/package.yaml create mode 100644 test/integration/tests/4044-no-run-tests-config/files/stack.yaml create mode 100644 test/integration/tests/copy-bins-works/files/.gitignore diff --git a/test/integration/tests/4044-no-run-tests-config/Main.hs b/test/integration/tests/4044-no-run-tests-config/Main.hs new file mode 100644 index 0000000000..81d3e5a402 --- /dev/null +++ b/test/integration/tests/4044-no-run-tests-config/Main.hs @@ -0,0 +1,6 @@ +import StackTest + +main :: IO () +main = do + stack ["test"] + stack ["build", "foo:test:foo"] diff --git a/test/integration/tests/4044-no-run-tests-config/files/.gitignore b/test/integration/tests/4044-no-run-tests-config/files/.gitignore new file mode 100644 index 0000000000..d43d807c0d --- /dev/null +++ b/test/integration/tests/4044-no-run-tests-config/files/.gitignore @@ -0,0 +1 @@ +*.cabal diff --git a/test/integration/tests/4044-no-run-tests-config/files/Test.hs b/test/integration/tests/4044-no-run-tests-config/files/Test.hs new file mode 100644 index 0000000000..72891941af --- /dev/null +++ b/test/integration/tests/4044-no-run-tests-config/files/Test.hs @@ -0,0 +1,2 @@ +main :: IO () +main = error "You shall not pass!" diff --git a/test/integration/tests/4044-no-run-tests-config/files/package.yaml b/test/integration/tests/4044-no-run-tests-config/files/package.yaml new file mode 100644 index 0000000000..ba64b2afad --- /dev/null +++ b/test/integration/tests/4044-no-run-tests-config/files/package.yaml @@ -0,0 +1,10 @@ +name: foo +version: 0 +dependencies: +- base + +library: {} + +tests: + foo: + main: Test.hs diff --git a/test/integration/tests/4044-no-run-tests-config/files/stack.yaml b/test/integration/tests/4044-no-run-tests-config/files/stack.yaml new file mode 100644 index 0000000000..c00d780c41 --- /dev/null +++ b/test/integration/tests/4044-no-run-tests-config/files/stack.yaml @@ -0,0 +1,4 @@ +build: + test-arguments: + no-run-tests: true +resolver: ghc-8.2.2 diff --git a/test/integration/tests/copy-bins-works/files/.gitignore b/test/integration/tests/copy-bins-works/files/.gitignore new file mode 100644 index 0000000000..d43d807c0d --- /dev/null +++ b/test/integration/tests/copy-bins-works/files/.gitignore @@ -0,0 +1 @@ +*.cabal