Skip to content

Commit

Permalink
Renamed test packages
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-kolinek committed May 29, 2017
1 parent e4dc577 commit 54dc3bd
Show file tree
Hide file tree
Showing 36 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions test/integration/tests/717-sdist-test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ main = do
-- keep old behavior
stack ["sdist"]
-- successful sdist with --test-tarball
stack ["sdist", "packageb", "--test-tarball"]
stack ["sdist", "package-with-working-th", "--test-tarball"]
-- fails because package contains TH which depends on files which are not put into sdist tarball
stackErr ["sdist", "packagea", "--test-tarball"]
stackErr ["sdist", "package-with-th", "--test-tarball"]
-- same, but inside a subdir
stackErr ["sdist", "packagecd/packagec", "--test-tarball"]
stackErr ["sdist", "subdirs/failing-in-subdir", "--test-tarball"]
-- depends on packagea and packagec - these would fail if they were the target of sdist,
-- but since they are just dependencies, the operation should succeed
stack ["sdist", "packagecd/packaged", "--test-tarball"]
stack ["sdist", "subdirs/dependent-on-failing-packages", "--test-tarball"]
-- fails because a test depends on files which are not put into sdist tarball
stackErr ["sdist", "packagee", "--test-tarball"]
stackErr ["sdist", "package-with-failing-test", "--test-tarball"]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: packagee
name: package-with-failing-test
version: 0.1.0.0
synopsis: Some package
description: Some package
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: packagea
name: package-with-th
version: 0.1.0.0
synopsis: Some package
description: Some package
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: packageb
name: package-with-working-th
version: 0.1.0.0
synopsis: Some package
description: Some package
Expand Down
12 changes: 6 additions & 6 deletions test/integration/tests/717-sdist-test/files/stack.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
resolver: lts-8.15
packages:
- packagea
- packageb
- packagee
- location: packagecd
- package-with-th
- package-with-working-th
- package-with-failing-test
- location: subdirs
subdirs:
- packagec
- packaged
- dependent-on-failing-packages
- failing-in-subdir
extra-deps: []
flags: {}
extra-package-dbs: []
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: packaged
name: dependent-on-failing-packages
version: 0.1.0.0
synopsis: Some package
description: Some package
Expand All @@ -18,6 +18,6 @@ library
exposed-modules: LibD
build-depends: base >= 4.7 && < 5,
template-haskell,
packagea,
packagec
package-with-th,
failing-in-subdir
default-language: Haskell2010
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: packagec
name: failing-in-subdir
version: 0.1.0.0
synopsis: Some package
description: Some package
Expand All @@ -16,7 +16,7 @@ cabal-version: >=1.10
library
hs-source-dirs: src
exposed-modules: LibC,
THC
THInSubdir
build-depends: base >= 4.7 && < 5,
template-haskell
default-language: Haskell2010
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module LibC
( someFuncC
) where

import THC
import THInSubdir
import Language.Haskell.TH

someFuncC :: IO ()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module THC (thFuncC) where
module THInSubdir (thFuncC) where

import Language.Haskell.TH

Expand Down

0 comments on commit 54dc3bd

Please sign in to comment.