summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-07-14 11:03:55 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-07-14 11:03:55 +0200
commit953b348cb02fcdccb597b6988f904bfdb696e92e (patch)
tree95985d30ba16e13a6e1f5d99f79e896a744196bf /test/integration
parent457bea86ba07fc0cfcb08bcf9f81f5858975f916 (diff)
make ResolveByKeep() more clever and hold back packages that would go into a broken policy state by the upgrade
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
+