]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-612099-multiarch-conflicts
merged from debian-sid
[apt.git] / test / integration / test-bug-612099-multiarch-conflicts
CommitLineData
6a910c9d
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
ea65d079 7configarchitecture 'i386' 'amd64'
6a910c9d
DK
8
9buildsimplenativepackage 'libc6' 'i386' '1.0' 'stable'
10buildsimplenativepackage 'libc6' 'amd64' '1.0' 'stable'
11buildsimplenativepackage 'libc6' 'all' '2.0' 'testing'
12
13buildsimplenativepackage 'foobar' 'i386' '1.0' 'stable' 'Depends: libc6'
14buildsimplenativepackage 'foobar' 'amd64' '1.0' 'stable' 'Depends: libc6'
15
16setupaptarchive
17
6a910c9d
DK
18aptget install libc6:i386 -t stable -y -qq 2>&1 > /dev/null
19testdpkginstalled libc6
20testequal 'Reading package lists...
21Building dependency tree...
22Reading state information...
23The following packages will be REMOVED:
24 libc6
25The following NEW packages will be installed:
26 libc6:amd64
270 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
28Remv libc6 [1.0]
29Inst libc6:amd64 (1.0 stable [amd64])
30Conf libc6:amd64 (1.0 stable [amd64])' aptget install libc6:amd64 -s -t stable
31
32testequal 'Reading package lists...
33Building dependency tree...
34Reading state information...
35The following NEW packages will be installed:
36 foobar
370 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
38Inst foobar (1.0 stable [i386])
39Conf foobar (1.0 stable [i386])' aptget install foobar -st stable
40
41testequal 'Reading package lists...
42Building dependency tree...
43Reading state information...
44The following extra packages will be installed:
45 libc6:amd64
46The following packages will be REMOVED:
47 libc6
48The following NEW packages will be installed:
49 foobar:amd64 libc6:amd64
500 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
51Remv libc6 [1.0]
52Inst libc6:amd64 (1.0 stable [amd64])
53Inst foobar:amd64 (1.0 stable [amd64])
54Conf libc6:amd64 (1.0 stable [amd64])
55Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64 -st stable
56
6a910c9d
DK
57testequal 'Reading package lists...
58Building dependency tree...
59Reading state information...
6a910c9d 60The following NEW packages will be installed:
28166356
DK
61 foobar
62The following packages will be upgraded:
63 libc6
641 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
ca238ede 65Inst libc6 [1.0] (2.0 testing [all])
6a910c9d 66Inst foobar (1.0 stable [i386])
ca238ede 67Conf libc6 (2.0 testing [all])
6a910c9d
DK
68Conf foobar (1.0 stable [i386])' aptget install foobar/stable libc6 -st testing
69
6a910c9d
DK
70testequal 'Reading package lists...
71Building dependency tree...
72Reading state information...
28166356 73The following packages will be upgraded:
6a910c9d 74 libc6
28166356 751 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ca238ede
DK
76Inst libc6 [1.0] (2.0 testing [all])
77Conf libc6 (2.0 testing [all])' aptget upgrade -t testing -s
6a910c9d
DK
78aptget upgrade -y -qq 2>&1 > /dev/null
79testdpkginstalled libc6
80
81testequal 'Reading package lists...
82Building dependency tree...
83Reading state information...
84The following NEW packages will be installed:
85 foobar
860 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
28166356 87Inst foobar (1.0 stable [i386])
6a910c9d
DK
88Conf foobar (1.0 stable [i386])' aptget install foobar/stable -st testing
89
90testequal 'Reading package lists...
91Building dependency tree...
92Reading state information...
28166356
DK
93The following extra packages will be installed:
94 libc6:amd64
95The following packages will be REMOVED:
96 libc6
6a910c9d 97The following NEW packages will be installed:
28166356
DK
98 foobar:amd64 libc6:amd64
990 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
100Remv libc6 [2.0]
101Inst libc6:amd64 (1.0 stable [amd64])
6a910c9d 102Inst foobar:amd64 (1.0 stable [amd64])
28166356 103Conf libc6:amd64 (1.0 stable [amd64])
6a910c9d
DK
104Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64/stable -st testing
105
106
6a910c9d
DK
107testequal "Reading package lists...
108Building dependency tree...
109Reading state information...
110Selected version '1.0' (stable [i386]) for 'libc6'
28166356 111The following packages will be DOWNGRADED:
6a910c9d 112 libc6
28166356
DK
1130 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
114Inst libc6 [2.0] (1.0 stable [i386])
6a910c9d
DK
115Conf libc6 (1.0 stable [i386])" aptget install libc6/stable -s -q=0
116
117
118buildsimplenativepackage 'libc6-same' 'i386' '1.0' 'stable' 'Multi-Arch: same'
119buildsimplenativepackage 'libc6-same' 'amd64' '1.0' 'stable' 'Multi-Arch: same'
120buildsimplenativepackage 'libc6-same' 'all' '2.0' 'testing'
121
122buildsimplenativepackage 'foobar-same' 'i386' '1.0' 'stable' 'Depends: libc6-same'
123buildsimplenativepackage 'foobar-same' 'amd64' '1.0' 'stable' 'Depends: libc6-same'
124
125setupaptarchive
126
127aptget install libc6-same:i386 -t stable -y -qq 2>&1 > /dev/null
128testdpkginstalled libc6-same
129
130testequal 'Reading package lists...
131Building dependency tree...
132Reading state information...
133The following NEW packages will be installed:
134 foobar-same
1350 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
136Inst foobar-same (1.0 stable [i386])
137Conf foobar-same (1.0 stable [i386])' aptget install foobar-same -st stable
138
139testequal 'Reading package lists...
140Building dependency tree...
141Reading state information...
142The following extra packages will be installed:
143 libc6-same:amd64
144The following NEW packages will be installed:
145 foobar-same:amd64 libc6-same:amd64
1460 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
147Inst libc6-same:amd64 (1.0 stable [amd64])
148Inst foobar-same:amd64 (1.0 stable [amd64])
149Conf libc6-same:amd64 (1.0 stable [amd64])
150Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64 -st stable
151
152testequal 'Reading package lists...
153Building dependency tree...
154Reading state information...
155The following NEW packages will be installed:
156 libc6-same:amd64
1570 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
158Inst libc6-same:amd64 (1.0 stable [amd64])
159Conf libc6-same:amd64 (1.0 stable [amd64])' aptget install libc6-same:amd64 -s -t stable
160
161# FIXME: We should test installing libc6-same:amd64 here, but dpkg doesn't allow it currently
162
6a910c9d
DK
163testequal 'Reading package lists...
164Building dependency tree...
165Reading state information...
28166356 166The following packages will be upgraded:
6a910c9d 167 libc6-same
28166356 1681 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ca238ede
DK
169Inst libc6-same [1.0] (2.0 testing [all])
170Conf libc6-same (2.0 testing [all])' aptget upgrade -t testing -s
6a910c9d
DK
171aptget upgrade -y -qq 2>&1 > /dev/null
172testdpkginstalled libc6-same
173
6a910c9d
DK
174testequal "Reading package lists...
175Building dependency tree...
176Reading state information...
177Selected version '1.0' (stable [i386]) for 'libc6-same'
28166356 178The following packages will be DOWNGRADED:
6a910c9d 179 libc6-same
28166356
DK
1800 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
181Inst libc6-same [2.0] (1.0 stable [i386])
6a910c9d
DK
182Conf libc6-same (1.0 stable [i386])" aptget install libc6-same/stable -s -q=0
183
184testequal 'Reading package lists...
185Building dependency tree...
186Reading state information...
187The following NEW packages will be installed:
188 foobar-same
1890 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
28166356 190Inst foobar-same (1.0 stable [i386])
6a910c9d
DK
191Conf foobar-same (1.0 stable [i386])' aptget install foobar-same/stable -st testing
192
193testequal 'Reading package lists...
194Building dependency tree...
195Reading state information...
28166356
DK
196The following extra packages will be installed:
197 libc6-same:amd64
198The following packages will be REMOVED:
199 libc6-same
6a910c9d 200The following NEW packages will be installed:
28166356
DK
201 foobar-same:amd64 libc6-same:amd64
2020 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
203Remv libc6-same [2.0]
204Inst libc6-same:amd64 (1.0 stable [amd64])
6a910c9d 205Inst foobar-same:amd64 (1.0 stable [amd64])
28166356 206Conf libc6-same:amd64 (1.0 stable [amd64])
6a910c9d 207Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64/stable -st testing