-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add *.v2.test.hs variants exercising v2-sdist
- Loading branch information
1 parent
6747878
commit 8eeb8b8
Showing
27 changed files
with
138 additions
and
4 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.dot-uv.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/uv-0.1.tar.gz |
6 changes: 6 additions & 0 deletions
6
...suite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.dot-uv.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- cabal.dot-uv.project has "packages: .". That package is uv.cabal and "cabal | ||
-- v2-sdist" writes sdist/uv-0.1.tar.gz. This is correct. | ||
main = cabalTest . withProjectFile "cabal.dot-uv.project" $ do | ||
cabal "v2-sdist" ["all"] |
2 changes: 2 additions & 0 deletions
2
...e/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.ignore-project.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to /home/philderbeast/dev/src/cabalism/cabal/cabal-testsuite/PackageTests/SDist/Respect-Project-File/dist-newstyle/sdist/p-0.1.tar.gz |
8 changes: 8 additions & 0 deletions
8
...ckageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.ignore-project.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- This test should have written sdist/uv-0.1.tar.gz for the uv.cabal package | ||
-- but instead it probed up the directory tree, found a default cabal.project | ||
-- and wrote sdist/p-0.1.tar.gz. That is incorrect. It didn't ignore the | ||
-- project. | ||
main = cabalTest $ do | ||
cabal "v2-sdist" ["all", "--ignore-project"] |
2 changes: 2 additions & 0 deletions
2
...suite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.no-project.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to /home/philderbeast/dev/src/cabalism/cabal/cabal-testsuite/PackageTests/SDist/Respect-Project-File/dist-newstyle/sdist/p-0.1.tar.gz |
9 changes: 9 additions & 0 deletions
9
...e/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.no-project.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- When no project is given, "cabal v2-sdist" probes up the directory tree, | ||
-- finds a default cabal.project and writes sdist/p-0.1.tar.gz. That is | ||
-- acceptable. An alternative and reasonable expectation (but not the behaviour | ||
-- seen) is that project probing would not occur and "cabal v2-sdist" would work | ||
-- on the local uv.cabal package. | ||
main = cabalTest $ do | ||
cabal "v2-sdist" ["all"] |
3 changes: 3 additions & 0 deletions
3
...testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-pq.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/p-0.1.tar.gz | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/q-0.1.tar.gz |
6 changes: 6 additions & 0 deletions
6
...suite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-pq.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- cabal.sub-pq.project has "packages: p/ q/" and "cabal v2-sdist" writes | ||
-- sdist/p-0.1.tar.gz and sdist/q-0.1.tar.gz. This is correct. | ||
main = cabalTest . withProjectFile "cabal.sub-pq.project" $ do | ||
cabal "v2-sdist" ["all"] |
3 changes: 3 additions & 0 deletions
3
...testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-rs.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/r-0.1.tar.gz | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/s-0.1.tar.gz |
6 changes: 6 additions & 0 deletions
6
...suite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-rs.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- cabal.sub-rs.project has "packages: r/ s/" and "cabal v2-sdist" writes | ||
-- sdist/r-0.1.tar.gz and sdist/s-0.1.tar.gz. This is correct. | ||
main = cabalTest . withProjectFile "cabal.sub-rs.project" $ do | ||
cabal "v2-sdist" ["all"] |
2 changes: 2 additions & 0 deletions
2
...estsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.dot-uv.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/uv-0.1.tar.gz |
6 changes: 6 additions & 0 deletions
6
...uite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.dot-uv.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- cabal.dot-uv.project has "packages: .". That package is uv.cabal and "cabal | ||
-- v2-sdist" writes sdist/p-0.1.tar.gz and sdist/q-0.1.tar.gz. That is correct. | ||
main = cabalTest . withProjectFile "cabal.dot-uv.project" $ do | ||
cabal "v2-sdist" ["all"] |
3 changes: 3 additions & 0 deletions
3
.../PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.ignore-project.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/p-0.1.tar.gz | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/q-0.1.tar.gz |
7 changes: 7 additions & 0 deletions
7
...kageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.ignore-project.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- This test doesn't ignore the project. It should have written | ||
-- sdist/uv-0.1.tar.gz for the uv.cabal package but instead it wrote | ||
-- sdist/p-0.1.tar.gz and sdist/q-0.1.tar.gz. | ||
main = cabalTest $ do | ||
cabal "v2-sdist" ["all", "--ignore-project"] |
3 changes: 3 additions & 0 deletions
3
...uite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.no-project.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/p-0.1.tar.gz | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/q-0.1.tar.gz |
7 changes: 7 additions & 0 deletions
7
.../PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.no-project.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- When no project is given, "cabal v2-sdist" finds a default cabal.project that | ||
-- has "packages: p/ q/" and writes sdist/p-0.1.tar.gz and sdist/q-0.1.tar.gz. | ||
-- This is correct. | ||
main = cabalTest $ do | ||
cabal "v2-sdist" ["all"] |
3 changes: 3 additions & 0 deletions
3
...stsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.project.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/p-0.1.tar.gz | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/q-0.1.tar.gz |
6 changes: 6 additions & 0 deletions
6
...ite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.project.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- The given cabal.project has has "packages: p/ q/" and "cabal v2-sdist" writes | ||
-- sdist/p-0.1.tar.gz and sdist/q-0.1.tar.gz. This is correct. | ||
main = cabalTest . withProjectFile "cabal.project" $ do | ||
cabal "v2-sdist" ["all"] |
3 changes: 3 additions & 0 deletions
3
...estsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-pq.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/p-0.1.tar.gz | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/q-0.1.tar.gz |
6 changes: 6 additions & 0 deletions
6
...uite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-pq.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- cabal.sub-pq.project has "packages: p/ q/" and "cabal v2-sdist" writes | ||
-- sdist/p-0.1.tar.gz and sdist/q-0.1.tar.gz. This is correct. | ||
main = cabalTest . withProjectFile "cabal.sub-pq.project" $ do | ||
cabal "v2-sdist" ["all"] |
3 changes: 3 additions & 0 deletions
3
...estsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-rs.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/r-0.1.tar.gz | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/s-0.1.tar.gz |
6 changes: 6 additions & 0 deletions
6
...uite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-rs.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- cabal.sub-rs.project has "packages: r/ s/" and "cabal v2-sdist" writes | ||
-- sdist/r-0.1.tar.gz and sdist/s-0.1.tar.gz. That is correct. | ||
main = cabalTest . withProjectFile "cabal.sub-rs.project" $ do | ||
cabal "v2-sdist" ["all"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.ignore-project.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# cabal sdist | ||
Wrote tarball sdist to <ROOT>/cabal.ignore-project.v2.dist/work/./dist/sdist/z-0.1.tar.gz |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.ignore-project.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- This test correctly writes sdist/z-0.1.tar.gz for the z.cabal package. | ||
main = cabalTest $ do | ||
cabal "sdist" ["all", "--ignore-project"] |
2 changes: 2 additions & 0 deletions
2
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.no-project.v2.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# cabal v2-sdist | ||
Wrote tarball sdist to <ROOT>/dist-newstyle/sdist/p-0.1.tar.gz |
7 changes: 7 additions & 0 deletions
7
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.no-project.v2.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Test.Cabal.Prelude | ||
|
||
-- When no project is given, "cabal v2-sdist" finds a default cabal.project that | ||
-- has "packages: Projects-Default-No/p" and writes sdist/p-0.1.tar.gz. This is | ||
-- correct. | ||
main = cabalTest $ do | ||
cabal "v2-sdist" ["all"] |