Add test cases that reproduce #7241.
commit1e62b823e491e00d519e2bbcac1cdd434b8cdfc0
authorPhil de Joux <philderbeast@gmail.com>
Fri, 17 Jun 2022 19:48:32 +0000 (17 15:48 -0400)
committerPhil de Joux <philderbeast@gmail.com>
Sat, 20 Jan 2024 12:56:20 +0000 (20 07:56 -0500)
treec108bcb4f9144760a985b1db021cecbcb1ae6211
parent1a8b93c1f1717dd454ff50546f890da734bbf45d
Add test cases that reproduce #7241.

- Move project sdist tests to cabal-testsuite
- Add --ignore-project test
- Duplicate tests but without cabal.project
- Add a cabal.project one folder up
- Add a package Z in the root
- Rerun --accept with more immediate parent project
- Add a readme for the tests
- Fix problems with uv package, update expected output
- Add U and V modules
- Explain what is wrong with cabal.dot-uv.test.hs
- Add a note on cabal.no-project.test.hs
- Explain what is wrong with cabal.sub-pq.test.hs
- Explain what is wrong with cabal.sub-rs.test.hs
- Explain what is wrong with cabal.dot-uv.test.hs
- Leave a note explaining cabal.no-project.test.hs
- Leave a note explaining cabal.project.test.hs
- Leave a note explaining cabal.sub-pq.test.hs
- Explain what is wrong with cabal.sub-rs.test.hs
- Patches for project respecting behaviour
- Explain root ignore-project and no-project tests
- Add *.v2.test.hs variants exercising v2-sdist
- Add v2 patches, test out not using <ROOT>
92 files changed:
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/U.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/V.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.dot-uv.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.dot-uv.patch [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.dot-uv.project [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.dot-uv.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.dot-uv.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.dot-uv.v2.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.ignore-project.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.ignore-project.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.ignore-project.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.ignore-project.v2.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.no-project.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.no-project.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.no-project.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.no-project.v2.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-pq.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-pq.patch [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-pq.project [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-pq.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-pq.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-pq.v2.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-rs.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-rs.patch [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-rs.project [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-rs.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-rs.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/cabal.sub-rs.v2.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/p/P.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/p/p.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/q/Q.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/q/q.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/r/R.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/r/r.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/s/S.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/s/s.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-No/uv.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/U.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/V.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.dot-uv.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.dot-uv.patch [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.dot-uv.project [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.dot-uv.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.dot-uv.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.dot-uv.v2.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.ignore-project.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.ignore-project.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.ignore-project.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.ignore-project.v2.patch [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.ignore-project.v2.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.no-project.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.no-project.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.no-project.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.no-project.v2.patch [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.no-project.v2.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.project [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.project.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.project.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.project.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.project.v2.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-pq.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-pq.project [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-pq.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-pq.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-pq.v2.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-rs.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-rs.patch [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-rs.project [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-rs.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-rs.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/cabal.sub-rs.v2.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/p/P.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/p/p.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/q/Q.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/q/q.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/r/R.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/r/r.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/s/S.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/s/s.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Projects-Default-Yes/uv.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/README.md [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/Z.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.ignore-project.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.ignore-project.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.ignore-project.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.ignore-project.v2.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.no-project.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.no-project.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.no-project.v2.out [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.no-project.v2.test.hs [new file with mode: 0755]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/cabal.project [new file with mode: 0644]
cabal-testsuite/PackageTests/SDist/Respect-Project-File/z.cabal [new file with mode: 0644]