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.
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
-
mentioned in commit 9aaf1fac
-
mentioned in commit haskell/cabal@145644cf
Please register or sign in to comment