]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-612099-multiarch-conflicts
Merge branch 'debian/jessie' into debian/experimental
[apt.git] / test / integration / test-bug-612099-multiarch-conflicts
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'i386' 'amd64'
8
9 buildsimplenativepackage 'libc6' 'i386' '1.0' 'stable'
10 buildsimplenativepackage 'libc6' 'amd64' '1.0' 'stable'
11 buildsimplenativepackage 'libc6' 'all' '2.0' 'testing'
12
13 buildsimplenativepackage 'foobar' 'i386' '1.0' 'stable' 'Depends: libc6'
14 buildsimplenativepackage 'foobar' 'amd64' '1.0' 'stable' 'Depends: libc6'
15
16 setupaptarchive
17
18 testsuccess aptget install libc6:i386 -t stable -y
19 testdpkginstalled libc6:i386
20 testsuccessequal 'Reading package lists...
21 Building dependency tree...
22 Reading state information...
23 The following packages will be REMOVED:
24 libc6
25 The following NEW packages will be installed:
26 libc6:amd64
27 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
28 Remv libc6 [1.0]
29 Inst libc6:amd64 (1.0 stable [amd64])
30 Conf libc6:amd64 (1.0 stable [amd64])' aptget install libc6:amd64 -s -t stable
31
32 testsuccessequal 'Reading package lists...
33 Building dependency tree...
34 Reading state information...
35 The following NEW packages will be installed:
36 foobar
37 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
38 Inst foobar (1.0 stable [i386])
39 Conf foobar (1.0 stable [i386])' aptget install foobar -st stable
40
41 testsuccessequal 'Reading package lists...
42 Building dependency tree...
43 Reading state information...
44 The following extra packages will be installed:
45 libc6:amd64
46 The following packages will be REMOVED:
47 libc6
48 The following NEW packages will be installed:
49 foobar:amd64 libc6:amd64
50 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
51 Remv libc6 [1.0]
52 Inst libc6:amd64 (1.0 stable [amd64])
53 Inst foobar:amd64 (1.0 stable [amd64])
54 Conf libc6:amd64 (1.0 stable [amd64])
55 Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64 -st stable
56
57 testsuccessequal 'Reading package lists...
58 Building dependency tree...
59 Reading state information...
60 The following NEW packages will be installed:
61 foobar
62 The following packages will be upgraded:
63 libc6
64 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
65 Inst libc6 [1.0] (2.0 testing [all])
66 Inst foobar (1.0 stable [i386])
67 Conf libc6 (2.0 testing [all])
68 Conf foobar (1.0 stable [i386])' aptget install foobar/stable libc6 -st testing
69
70 testsuccessequal 'Reading package lists...
71 Building dependency tree...
72 Reading state information...
73 Calculating upgrade...
74 The following packages will be upgraded:
75 libc6
76 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
77 Inst libc6 [1.0] (2.0 testing [all])
78 Conf libc6 (2.0 testing [all])' aptget upgrade -t testing -s
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:
82 #aptget upgrade -y -qq >/dev/null 2>&1
83 testsuccess aptget purge libc6 -y
84 testsuccess aptget install libc6:i386 -y
85 testdpkginstalled libc6:all
86
87 testsuccessequal 'Reading package lists...
88 Building dependency tree...
89 Reading state information...
90 The following NEW packages will be installed:
91 foobar
92 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
93 Inst foobar (1.0 stable [i386])
94 Conf foobar (1.0 stable [i386])' aptget install foobar/stable -st testing
95
96 testsuccessequal 'Reading package lists...
97 Building dependency tree...
98 Reading state information...
99 The following extra packages will be installed:
100 libc6:amd64
101 The following packages will be REMOVED:
102 libc6
103 The following NEW packages will be installed:
104 foobar:amd64 libc6:amd64
105 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
106 Remv libc6 [2.0]
107 Inst libc6:amd64 (1.0 stable [amd64])
108 Inst foobar:amd64 (1.0 stable [amd64])
109 Conf libc6:amd64 (1.0 stable [amd64])
110 Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64/stable -st testing
111
112
113 testsuccessequal "Reading package lists...
114 Building dependency tree...
115 Reading state information...
116 Selected version '1.0' (stable [i386]) for 'libc6'
117 The following packages will be DOWNGRADED:
118 libc6
119 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
120 Inst libc6 [2.0] (1.0 stable [i386])
121 Conf libc6 (1.0 stable [i386])" aptget install libc6/stable -s -q=0
122
123
124 buildsimplenativepackage 'libc6-same' 'i386' '1.0' 'stable' 'Multi-Arch: same'
125 buildsimplenativepackage 'libc6-same' 'amd64' '1.0' 'stable' 'Multi-Arch: same'
126 buildsimplenativepackage 'libc6-same' 'all' '2.0' 'testing'
127
128 buildsimplenativepackage 'foobar-same' 'i386' '1.0' 'stable' 'Depends: libc6-same'
129 buildsimplenativepackage 'foobar-same' 'amd64' '1.0' 'stable' 'Depends: libc6-same'
130
131 setupaptarchive
132
133 testsuccess aptget install libc6-same:i386 -t stable -y
134 testdpkginstalled libc6-same:i386
135
136 testsuccessequal 'Reading package lists...
137 Building dependency tree...
138 Reading state information...
139 The following NEW packages will be installed:
140 foobar-same
141 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
142 Inst foobar-same (1.0 stable [i386])
143 Conf foobar-same (1.0 stable [i386])' aptget install foobar-same -st stable
144
145 testsuccessequal 'Reading package lists...
146 Building dependency tree...
147 Reading state information...
148 The following extra packages will be installed:
149 libc6-same:amd64
150 The following NEW packages will be installed:
151 foobar-same:amd64 libc6-same:amd64
152 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
153 Inst libc6-same:amd64 (1.0 stable [amd64])
154 Inst foobar-same:amd64 (1.0 stable [amd64])
155 Conf libc6-same:amd64 (1.0 stable [amd64])
156 Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64 -st stable
157
158 testsuccessequal 'Reading package lists...
159 Building dependency tree...
160 Reading state information...
161 The following NEW packages will be installed:
162 libc6-same:amd64
163 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
164 Inst libc6-same:amd64 (1.0 stable [amd64])
165 Conf 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
169 testsuccessequal 'Reading package lists...
170 Building dependency tree...
171 Reading state information...
172 Calculating upgrade...
173 The following packages will be upgraded:
174 libc6-same
175 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
176 Inst libc6-same [1.0] (2.0 testing [all])
177 Conf libc6-same (2.0 testing [all])' aptget upgrade -t testing -s
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:
181 #aptget upgrade -y -qq >/dev/null 2>&1
182 testsuccess aptget purge libc6-same -y
183 testsuccess aptget install libc6-same:i386 -y
184 testdpkginstalled libc6-same:all
185
186
187 testsuccessequal "Reading package lists...
188 Building dependency tree...
189 Reading state information...
190 Selected version '1.0' (stable [i386]) for 'libc6-same'
191 The following packages will be DOWNGRADED:
192 libc6-same
193 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
194 Inst libc6-same [2.0] (1.0 stable [i386])
195 Conf libc6-same (1.0 stable [i386])" aptget install libc6-same/stable -s -q=0
196
197 testsuccessequal 'Reading package lists...
198 Building dependency tree...
199 Reading state information...
200 The following NEW packages will be installed:
201 foobar-same
202 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
203 Inst foobar-same (1.0 stable [i386])
204 Conf foobar-same (1.0 stable [i386])' aptget install foobar-same/stable -st testing
205
206 testsuccessequal 'Reading package lists...
207 Building dependency tree...
208 Reading state information...
209 The following extra packages will be installed:
210 libc6-same:amd64
211 The following packages will be REMOVED:
212 libc6-same
213 The following NEW packages will be installed:
214 foobar-same:amd64 libc6-same:amd64
215 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
216 Remv libc6-same [2.0]
217 Inst libc6-same:amd64 (1.0 stable [amd64])
218 Inst foobar-same:amd64 (1.0 stable [amd64])
219 Conf libc6-same:amd64 (1.0 stable [amd64])
220 Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64/stable -st testing