[commit: packages/Cabal] ghc-head: Build selected test suites and benchmarks only (de17d22)

git at git.haskell.org git at git.haskell.org
Wed Sep 4 23:58:20 CEST 2013


Repository : ssh://git@git.haskell.org/Cabal

On branch  : ghc-head
Link       : http://git.haskell.org/?p=packages/Cabal.git;a=commit;h=de17d22ede00d9a24e5710c4de59fcc12fe9e2cf

>---------------------------------------------------------------

commit de17d22ede00d9a24e5710c4de59fcc12fe9e2cf
Author: Thomas Tuegel <ttuegel at gmail.com>
Date:   Sat Aug 31 11:20:13 2013 -0500

    Build selected test suites and benchmarks only
    
    Issue #1451. Passes the extra arguments to 'cabal test' or 'cabal bench'
    to the build phase so that only the requested test suites or benchmarks
    are built.


>---------------------------------------------------------------

de17d22ede00d9a24e5710c4de59fcc12fe9e2cf
 cabal-install/Main.hs |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cabal-install/Main.hs b/cabal-install/Main.hs
index 713eb05..ab5c453 100644
--- a/cabal-install/Main.hs
+++ b/cabal-install/Main.hs
@@ -611,7 +611,7 @@ testAction (testFlags, buildExFlags) extraArgs globalFlags = do
                 globalFlags noAddSource (buildNumJobs buildExFlags) checkFlags
 
   maybeWithSandboxDirOnSearchPath useSandbox $
-    build verbosity distPref mempty []
+    build verbosity distPref mempty extraArgs
 
   maybeWithSandboxDirOnSearchPath useSandbox $
     setupWrapper verbosity setupOptions Nothing
@@ -639,7 +639,7 @@ benchmarkAction (benchmarkFlags, buildExFlags) extraArgs globalFlags = do
                 checkFlags
 
   maybeWithSandboxDirOnSearchPath useSandbox $
-    build verbosity distPref mempty []
+    build verbosity distPref mempty extraArgs
 
   maybeWithSandboxDirOnSearchPath useSandbox $
     setupWrapper verbosity setupOptions Nothing





More information about the ghc-commits mailing list