]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-612099-multiarch-conflicts
Merge remote-tracking branch 'upstream/debian/experimental' into feature/acq-trans
[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
0440d936 18testsuccess aptget install libc6:i386 -t stable -y
53ea1b56 19testdpkginstalled libc6:i386
6a910c9d
DK
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...
2a884c61 73Calculating upgrade...
28166356 74The following packages will be upgraded:
6a910c9d 75 libc6
28166356 761 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ca238ede
DK
77Inst libc6 [1.0] (2.0 testing [all])
78Conf libc6 (2.0 testing [all])' aptget upgrade -t testing -s
53ea1b56
DK
79# FIXME: on amd64 systems this test wouldn't run with a real upgrade
80# as APT (here i386) disagree about the native architecture, so
81# we fake it here:
7a2690a3 82#aptget upgrade -y -qq >/dev/null 2>&1
0440d936
DK
83testsuccess aptget purge libc6 -y
84testsuccess aptget install libc6:i386 -y
53ea1b56 85testdpkginstalled libc6:all
6a910c9d
DK
86
87testequal 'Reading package lists...
88Building dependency tree...
89Reading state information...
90The following NEW packages will be installed:
91 foobar
920 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
28166356 93Inst foobar (1.0 stable [i386])
6a910c9d
DK
94Conf foobar (1.0 stable [i386])' aptget install foobar/stable -st testing
95
96testequal 'Reading package lists...
97Building dependency tree...
98Reading state information...
28166356
DK
99The following extra packages will be installed:
100 libc6:amd64
101The following packages will be REMOVED:
102 libc6
6a910c9d 103The following NEW packages will be installed:
28166356
DK
104 foobar:amd64 libc6:amd64
1050 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
106Remv libc6 [2.0]
107Inst libc6:amd64 (1.0 stable [amd64])
6a910c9d 108Inst foobar:amd64 (1.0 stable [amd64])
28166356 109Conf libc6:amd64 (1.0 stable [amd64])
6a910c9d
DK
110Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64/stable -st testing
111
112
6a910c9d
DK
113testequal "Reading package lists...
114Building dependency tree...
115Reading state information...
116Selected version '1.0' (stable [i386]) for 'libc6'
28166356 117The following packages will be DOWNGRADED:
6a910c9d 118 libc6
28166356
DK
1190 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
120Inst libc6 [2.0] (1.0 stable [i386])
6a910c9d
DK
121Conf libc6 (1.0 stable [i386])" aptget install libc6/stable -s -q=0
122
123
124buildsimplenativepackage 'libc6-same' 'i386' '1.0' 'stable' 'Multi-Arch: same'
125buildsimplenativepackage 'libc6-same' 'amd64' '1.0' 'stable' 'Multi-Arch: same'
126buildsimplenativepackage 'libc6-same' 'all' '2.0' 'testing'
127
128buildsimplenativepackage 'foobar-same' 'i386' '1.0' 'stable' 'Depends: libc6-same'
129buildsimplenativepackage 'foobar-same' 'amd64' '1.0' 'stable' 'Depends: libc6-same'
130
131setupaptarchive
132
0440d936 133testsuccess aptget install libc6-same:i386 -t stable -y
53ea1b56 134testdpkginstalled libc6-same:i386
6a910c9d
DK
135
136testequal 'Reading package lists...
137Building dependency tree...
138Reading state information...
139The following NEW packages will be installed:
140 foobar-same
1410 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
142Inst foobar-same (1.0 stable [i386])
143Conf foobar-same (1.0 stable [i386])' aptget install foobar-same -st stable
144
145testequal 'Reading package lists...
146Building dependency tree...
147Reading state information...
148The following extra packages will be installed:
149 libc6-same:amd64
150The following NEW packages will be installed:
151 foobar-same:amd64 libc6-same:amd64
1520 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
153Inst libc6-same:amd64 (1.0 stable [amd64])
154Inst foobar-same:amd64 (1.0 stable [amd64])
155Conf libc6-same:amd64 (1.0 stable [amd64])
156Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64 -st stable
157
158testequal 'Reading package lists...
159Building dependency tree...
160Reading state information...
161The following NEW packages will be installed:
162 libc6-same:amd64
1630 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
164Inst libc6-same:amd64 (1.0 stable [amd64])
165Conf libc6-same:amd64 (1.0 stable [amd64])' aptget install libc6-same:amd64 -s -t stable
166
167# FIXME: We should test installing libc6-same:amd64 here, but dpkg doesn't allow it currently
168
6a910c9d
DK
169testequal 'Reading package lists...
170Building dependency tree...
171Reading state information...
2a884c61 172Calculating upgrade...
28166356 173The following packages will be upgraded:
6a910c9d 174 libc6-same
28166356 1751 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ca238ede
DK
176Inst libc6-same [1.0] (2.0 testing [all])
177Conf libc6-same (2.0 testing [all])' aptget upgrade -t testing -s
53ea1b56
DK
178# FIXME: on amd64 systems this test wouldn't run with a real upgrade
179# as APT (here i386) disagree about the native architecture, so
180# we fake it here:
7a2690a3 181#aptget upgrade -y -qq >/dev/null 2>&1
0440d936
DK
182testsuccess aptget purge libc6-same -y
183testsuccess aptget install libc6-same:i386 -y
53ea1b56
DK
184testdpkginstalled libc6-same:all
185
6a910c9d 186
6a910c9d
DK
187testequal "Reading package lists...
188Building dependency tree...
189Reading state information...
190Selected version '1.0' (stable [i386]) for 'libc6-same'
28166356 191The following packages will be DOWNGRADED:
6a910c9d 192 libc6-same
28166356
DK
1930 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
194Inst libc6-same [2.0] (1.0 stable [i386])
6a910c9d
DK
195Conf libc6-same (1.0 stable [i386])" aptget install libc6-same/stable -s -q=0
196
197testequal 'Reading package lists...
198Building dependency tree...
199Reading state information...
200The following NEW packages will be installed:
201 foobar-same
2020 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
28166356 203Inst foobar-same (1.0 stable [i386])
6a910c9d
DK
204Conf foobar-same (1.0 stable [i386])' aptget install foobar-same/stable -st testing
205
206testequal 'Reading package lists...
207Building dependency tree...
208Reading state information...
28166356
DK
209The following extra packages will be installed:
210 libc6-same:amd64
211The following packages will be REMOVED:
212 libc6-same
6a910c9d 213The following NEW packages will be installed:
28166356
DK
214 foobar-same:amd64 libc6-same:amd64
2150 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
216Remv libc6-same [2.0]
217Inst libc6-same:amd64 (1.0 stable [amd64])
6a910c9d 218Inst foobar-same:amd64 (1.0 stable [amd64])
28166356 219Conf libc6-same:amd64 (1.0 stable [amd64])
6a910c9d 220Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64/stable -st testing