testsuite: Introduce Cabal-tests library for common testsuite functions
I noticed that Distribution.Utils.TempTestDir was only used in the testsuite but defined in the Cabal library. Rather than expose this in the public interface of the `Cabal` library, it is cleaner to refactor it into a separate library (`Cabal-tests`) which can be used by any testsuite component. Also, in future it gives a clearer place to put utility functions which need to be shared across the testsuite but not exposed in Cabal. Cabal-tests can also freely add dependencies (such as exceptions) which we might want to avoid adding to the Cabal library. Fixes #9453
Showing
- Cabal-tests/Cabal-tests.cabal 7 additions, 0 deletionsCabal-tests/Cabal-tests.cabal
- Cabal-tests/lib/Test/Utils/TempTestDir.hs 1 addition, 1 deletionCabal-tests/lib/Test/Utils/TempTestDir.hs
- Cabal/Cabal.cabal 0 additions, 1 deletionCabal/Cabal.cabal
- cabal-install/cabal-install.cabal 2 additions, 0 deletionscabal-install/cabal-install.cabal
- cabal-install/tests/UnitTests/Distribution/Client/FetchUtils.hs 1 addition, 1 deletion...install/tests/UnitTests/Distribution/Client/FetchUtils.hs
- cabal-install/tests/UnitTests/Distribution/Client/Get.hs 1 addition, 1 deletioncabal-install/tests/UnitTests/Distribution/Client/Get.hs
- cabal-install/tests/UnitTests/Distribution/Client/VCS.hs 1 addition, 1 deletioncabal-install/tests/UnitTests/Distribution/Client/VCS.hs
- cabal-testsuite/cabal-testsuite.cabal 1 addition, 0 deletionscabal-testsuite/cabal-testsuite.cabal
- cabal-testsuite/src/Test/Cabal/Monad.hs 1 addition, 1 deletioncabal-testsuite/src/Test/Cabal/Monad.hs
- cabal-testsuite/src/Test/Cabal/Prelude.hs 1 addition, 1 deletioncabal-testsuite/src/Test/Cabal/Prelude.hs
- changelog.d/issue-9453 12 additions, 0 deletionschangelog.d/issue-9453
changelog.d/issue-9453
0 → 100644
Please register or sign in to comment