]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-507998-dist-upgrade-recommends
test exitcode as well as string equality
[apt.git] / test / integration / test-bug-507998-dist-upgrade-recommends
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'amd64'
8
9 insertinstalledpackage 'tshark' 'amd64' '1.0.4-1' 'Depends: wireshark-common'
10 insertinstalledpackage 'wireshark-common' 'amd64' '1.0.4-1' 'Recommends: wireshark (>= 1.0.4-1) | tshark (>= 1.0.4-1)'
11 insertpackage 'unstable' 'tshark' 'amd64' '1.2.1-2' 'Depends: wireshark-common (= 1.2.1-2)'
12 insertpackage 'unstable' 'wireshark-common' 'amd64' '1.2.1-2' 'Recommends: wireshark (>= 1.2.1-2) | tshark (>= 1.2.1-2)'
13 insertpackage 'unstable' 'wireshark' 'amd64' '1.2.1-2' 'Depends: wireshark-common (= 1.2.1-2)'
14
15 setupaptarchive
16
17 testsuccessequal 'Reading package lists...
18 Building dependency tree...
19 Calculating upgrade...
20 The following packages will be upgraded:
21 tshark wireshark-common
22 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
23 Inst wireshark-common [1.0.4-1] (1.2.1-2 unstable [amd64])
24 Inst tshark [1.0.4-1] (1.2.1-2 unstable [amd64])
25 Conf wireshark-common (1.2.1-2 unstable [amd64])
26 Conf tshark (1.2.1-2 unstable [amd64])' aptget dist-upgrade -s