summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-07-14 21:28:50 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-07-14 21:28:50 +0200
commit8e7ac74ad9dbd15a874c66632f6da22f6b23d9c6 (patch)
tree9ca19909a123829858c8cb5e236f1b2341f996ed /test/integration
parent78485ab210b815c21ce55cb0cecb834ba5158e18 (diff)
parent118192bfd764d03af4cfcfc10eb9c38e7cc98721 (diff)
merge with debian-sid 0.8.15.2
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-resolve-by-keep-new-recommends20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/integration/test-resolve-by-keep-new-recommends b/test/integration/test-resolve-by-keep-new-recommends
new file mode 100755
index 000000000..8134b76aa
--- /dev/null
+++ b/test/integration/test-resolve-by-keep-new-recommends
@@ -0,0 +1,20 @@
+#!/bin/sh
+set -e
+
+TESTDIR=$(readlink -f $(dirname $0))
+. $TESTDIR/framework
+setupenvironment
+configarchitecture "i386"
+
+insertinstalledpackage 'foo' 'i386' '1.0'
+insertpackage 'unstable' 'foo' 'i386' '2.0' 'Recommends: bar'
+
+setupaptarchive
+
+UPGRADE_KEEP="Reading package lists...
+Building dependency tree...
+The following packages have been kept back:
+ foo
+0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded."
+testequal "$UPGRADE_KEEP" aptget upgrade -s
+