Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal On branch : master
http://hackage.haskell.org/trac/ghc/changeset/f2743a162e1ecbf5a485d0e13e2969f9896813e4 >--------------------------------------------------------------- commit f2743a162e1ecbf5a485d0e13e2969f9896813e4 Author: Thomas Tuegel <[email protected]> Date: Tue Feb 7 19:39:58 2012 +0000 Handle test and benchmark dependencies through the resolver properly. Previously, test and benchmark dependencies were handled by editing the package description to include or exclude those stanzas before running the dependency resolver. Test and benchmark dependencies could only be installed for source packages because no package description is available for named packages before dependency resolution. Now, test and benchmark stanzas are enabled or disabled through constraints passed to the dependency resolver. This way, we can install dependencies for the test suites of target packages without propagating '--enable-tests' through the entire dependency tree; i.e., tests and benchmarks, when enabled, are built only for target packages. Later, this will allow us to automatically run test suites and, e.g., install only upon their success. .../Distribution/Client/BuildReports/Anonymous.hs | 2 +- .../Distribution/Client/BuildReports/Storage.hs | 4 +- cabal-install/Distribution/Client/Configure.hs | 10 ++-- .../Distribution/Client/Dependency/TopDown.hs | 36 +++++++++------ .../Client/Dependency/TopDown/Types.hs | 8 ++- .../Distribution/Client/Dependency/Types.hs | 3 +- cabal-install/Distribution/Client/Fetch.hs | 2 +- cabal-install/Distribution/Client/Install.hs | 50 +++++++------------ cabal-install/Distribution/Client/InstallPlan.hs | 7 +-- .../Distribution/Client/InstallSymlink.hs | 6 +- cabal-install/Distribution/Client/Targets.hs | 1 + cabal-install/Distribution/Client/Types.hs | 22 +++++++- 12 files changed, 84 insertions(+), 67 deletions(-) Diff suppressed because of size. To see it, use: git show f2743a162e1ecbf5a485d0e13e2969f9896813e4 _______________________________________________ Cvs-libraries mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-libraries
