]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-618288-multiarch-same-lockstep
* apt-pkg/packagemanager.cc, apt-pkg/pkgcache.cc:
[apt.git] / test / integration / test-bug-618288-multiarch-same-lockstep
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'amd64' 'i386'
8
9 insertinstalledpackage 'libsame' 'i386,amd64' '1' 'Multi-Arch: same' 'required'
10 insertinstalledpackage 'apt' 'i386' '1' 'Depends: libsame (= 1)
11 Essential: yes' 'required'
12 insertinstalledpackage 'apt2' 'amd64' '1' 'Depends: libsame (= 1)
13 Essential: yes' 'required'
14 buildsimplenativepackage 'libsame' 'i386,amd64' '2' 'unstable' 'Multi-Arch: same' '' 'required'
15 buildsimplenativepackage 'apt' 'i386' '2' 'unstable' 'Depends: libsame (= 2)' '' 'required'
16 buildsimplenativepackage 'apt2' 'amd64' '2' 'unstable' 'Depends: libsame (= 2)' '' 'required'
17
18 setupaptarchive
19
20 testequal 'Reading package lists...
21 Building dependency tree...
22 The following packages will be upgraded:
23 apt:i386 apt2 libsame libsame:i386
24 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
25 Inst libsame [1] (2 unstable [amd64]) [libsame:amd64 on libsame:i386] [libsame:i386 on libsame:amd64] [libsame:i386 apt2:amd64 ]
26 Inst libsame:i386 [1] (2 unstable [i386]) [apt2:amd64 apt:i386 ]
27 Conf libsame:i386 (2 unstable [i386]) [apt2:amd64 apt:i386 ]
28 Conf libsame (2 unstable [amd64]) [apt2:amd64 apt:i386 ]
29 Inst apt2 [1] (2 unstable [amd64]) [apt:i386 ]
30 Conf apt2 (2 unstable [amd64]) [apt:i386 ]
31 Inst apt:i386 [1] (2 unstable [i386])
32 Conf apt:i386 (2 unstable [i386])' aptget dist-upgrade -s