[Pkg-haskell-commits] [package-plan] 93/457: Pass constraints to cabal install to catch test dependencies as well.
Joachim Breitner
nomeata at moszumanska.debian.org
Mon Apr 14 20:05:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
nomeata pushed a commit to branch master
in repository package-plan.
commit 8db25fd8d2c43c0a2c74e91dd91c344e72e87409
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Wed May 29 08:08:48 2013 +0000
Pass constraints to cabal install to catch test dependencies as well.
---
test-packages.pl | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/test-packages.pl b/test-packages.pl
index cfd72bb..b53692f 100644
--- a/test-packages.pl
+++ b/test-packages.pl
@@ -76,5 +76,12 @@ for my $pkg (sort keys %versions) {
close CABAL;
chmod 0444, "all-packages.cabal";
+my @params = ("cabal", "install", "--dry-run", "--force-reinstall", "--enable-tests");
+
+for my $pkg (sort keys %versions) {
+ next if (exists $comments{$pkg});
+ push @params, "--constraint", sprintf "%s (== %s)\n", $pkg, $versions{$pkg};
+}
+
print "Running cabal-install...\n";
-system("cabal install --dry-run --force-reinstall") == 0 or die "cabal install failed: $?";
+(system @params) == 0 or die "cabal install failed: $?";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/package-plan.git
More information about the Pkg-haskell-commits
mailing list