diff --git a/cabal-testsuite/PackageTests/SDist/T5195/Main.hs b/cabal-testsuite/PackageTests/SDist/T5195/Main.hs new file mode 100644 index 00000000000..4233a67ecdd --- /dev/null +++ b/cabal-testsuite/PackageTests/SDist/T5195/Main.hs @@ -0,0 +1 @@ +main = putStrLn "hi" diff --git a/cabal-testsuite/PackageTests/SDist/T5195/cabal.out b/cabal-testsuite/PackageTests/SDist/T5195/cabal.out new file mode 100644 index 00000000000..d00b2befee3 --- /dev/null +++ b/cabal-testsuite/PackageTests/SDist/T5195/cabal.out @@ -0,0 +1,2 @@ +# cabal sdist +cabal: filepath wildcard './actually-a-directory' does not match any files. diff --git a/cabal-testsuite/PackageTests/SDist/T5195/cabal.test.hs b/cabal-testsuite/PackageTests/SDist/T5195/cabal.test.hs new file mode 100644 index 00000000000..a212609220d --- /dev/null +++ b/cabal-testsuite/PackageTests/SDist/T5195/cabal.test.hs @@ -0,0 +1,6 @@ +import Test.Cabal.Prelude +main = cabalTest $ do + tmpdir <- fmap testTmpDir getTestEnv + let fn = tmpdir "sources" + res <- fails $ cabal' "sdist" ["--list-sources=" ++ fn] + assertOutputContains "filepath wildcard './actually-a-directory' does not match any files" res diff --git a/cabal-testsuite/PackageTests/SDist/T5195/t5195.cabal b/cabal-testsuite/PackageTests/SDist/T5195/t5195.cabal new file mode 100644 index 00000000000..5d9a759dd71 --- /dev/null +++ b/cabal-testsuite/PackageTests/SDist/T5195/t5195.cabal @@ -0,0 +1,10 @@ +cabal-version: 2.2 +name: t5195 +version: 0 + +extra-source-files: + ./actually-a-directory + +executable foo + default-language: Haskell2010 + main-is: Main.hs