Testsuite: pass -i argument to runghc invocations
This commit modifies the generation of runghc commands to pass an additional -i argument to account for the change in working directory. This ensures that, in the testsuite, runghc is able to see other modules. For example, an invocation of runghc to run a Custom Setup script will now properly see the modules imported, e.g. if one has a directory structure like test.cabal Setup.hs SetupDep.hs and Setup.hs imports SetupDep.hs. (cherry picked from commit b2b9c2f6)
parent
4193f06f
Branches mergify/bp/3.12/pr-9518
No related tags found
Showing
- cabal-testsuite/PackageTests/SetupDep/Setup.hs 6 additions, 0 deletionscabal-testsuite/PackageTests/SetupDep/Setup.hs
- cabal-testsuite/PackageTests/SetupDep/SetupDep.hs 6 additions, 0 deletionscabal-testsuite/PackageTests/SetupDep/SetupDep.hs
- cabal-testsuite/PackageTests/SetupDep/cabal.project 1 addition, 0 deletionscabal-testsuite/PackageTests/SetupDep/cabal.project
- cabal-testsuite/PackageTests/SetupDep/setup-dep.cabal 16 additions, 0 deletionscabal-testsuite/PackageTests/SetupDep/setup-dep.cabal
- cabal-testsuite/PackageTests/SetupDep/setup.out 5 additions, 0 deletionscabal-testsuite/PackageTests/SetupDep/setup.out
- cabal-testsuite/PackageTests/SetupDep/setup.test.hs 4 additions, 0 deletionscabal-testsuite/PackageTests/SetupDep/setup.test.hs
- cabal-testsuite/src/Test/Cabal/Script.hs 15 additions, 6 deletionscabal-testsuite/src/Test/Cabal/Script.hs
- cabal-testsuite/src/Test/Cabal/Server.hs 1 addition, 1 deletioncabal-testsuite/src/Test/Cabal/Server.hs
Please register or sign in to comment