]> git.saurik.com Git - apt.git/commitdiff
add a very simple testcase for the lp#985852 fix in the previous commit
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 19 Apr 2012 20:41:25 +0000 (22:41 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 19 Apr 2012 20:41:25 +0000 (22:41 +0200)
test/integration/test-ubuntu-bug-985852-pre-depends-or-group-ordering [new file with mode: 0755]

diff --git a/test/integration/test-ubuntu-bug-985852-pre-depends-or-group-ordering b/test/integration/test-ubuntu-bug-985852-pre-depends-or-group-ordering
new file mode 100755 (executable)
index 0000000..462acad
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+set -e
+
+TESTDIR=$(readlink -f $(dirname $0))
+. $TESTDIR/framework
+setupenvironment
+configarchitecture 'amd64'
+
+insertinstalledpackage 'custom' 'amd64' '1.0' 'Pre-Depends: grub-pc | grub'
+insertinstalledpackage 'grub' 'amd64' '1.0'
+insertpackage 'unstable' 'custom' 'amd64' '2.0' 'Pre-Depends: grub-pc | grub'
+
+setupaptarchive
+
+testequal 'Reading package lists...
+Building dependency tree...
+The following packages will be upgraded:
+  custom
+1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+Inst custom [1.0] (2.0 unstable [amd64])
+Conf custom (2.0 unstable [amd64])' aptget dist-upgrade -s