merged from David, uncommited the previous i18n commit first as its part of the merge...
[ntk/apt.git] / test / integration / test-bug-632221-cross-dependency-satisfaction
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'amd64' 'armel'
8
9 insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
10
11 insertpackage 'unstable' 'doxygen' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
12 insertpackage 'unstable' 'libc6' 'amd64,armel' '1.0' 'Multi-Arch: same'
13 insertpackage 'unstable' 'libc6-dev' 'amd64,armel' '1.0' 'Depends: libc6
14 Multi-Arch: same'
15 insertpackage 'unstable' 'libfwibble1' 'amd64,armel' '1.0' 'Depends: libc6
16 Multi-Arch: same'
17 insertpackage 'unstable' 'libfwibble-dev' 'amd64,armel' '1.0' 'Depends: libfwibble1'
18 insertpackage 'unstable' 'cool' 'amd64,armel' '1.0' 'Multi-Arch: allowed'
19 insertpackage 'unstable' 'amdboot' 'amd64' '1.0'
20 insertpackage 'unstable' 'foreigner' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
21 insertpackage 'unstable' 'arm-stuff' 'armel' '1.0'
22 insertpackage 'unstable' 'linux-stuff' 'amd64,armel' '1.0'
23
24 insertsource 'unstable' 'apt' 'any' '0.8.15' 'Build-Depends: doxygen, libc6-dev, libc6-dev:native, cool:any, amdboot:amd64, foreigner, libfwibble-dev, arm-stuff [any-arm] | linux-stuff [ linux-any]'
25
26 setupaptarchive
27
28 testequal 'Reading package lists...
29 Building dependency tree...
30 The following NEW packages will be installed:
31 amdboot cool doxygen foreigner libc6 libc6-dev libfwibble-dev libfwibble1
32 linux-stuff
33 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
34 Inst amdboot (1.0 unstable [amd64])
35 Inst cool (1.0 unstable [amd64])
36 Inst doxygen (1.0 unstable [amd64])
37 Inst foreigner (1.0 unstable [amd64])
38 Inst libc6 (1.0 unstable [amd64])
39 Inst libc6-dev (1.0 unstable [amd64])
40 Inst libfwibble1 (1.0 unstable [amd64])
41 Inst libfwibble-dev (1.0 unstable [amd64])
42 Inst linux-stuff (1.0 unstable [amd64])
43 Conf amdboot (1.0 unstable [amd64])
44 Conf cool (1.0 unstable [amd64])
45 Conf doxygen (1.0 unstable [amd64])
46 Conf foreigner (1.0 unstable [amd64])
47 Conf libc6 (1.0 unstable [amd64])
48 Conf libc6-dev (1.0 unstable [amd64])
49 Conf libfwibble1 (1.0 unstable [amd64])
50 Conf libfwibble-dev (1.0 unstable [amd64])
51 Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
52
53 testequal 'Reading package lists...
54 Building dependency tree...
55 The following NEW packages will be installed:
56 amdboot arm-stuff:armel cool doxygen foreigner libc6 libc6:armel libc6-dev
57 libc6-dev:armel libfwibble-dev:armel libfwibble1:armel
58 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
59 Inst amdboot (1.0 unstable [amd64])
60 Inst arm-stuff:armel (1.0 unstable [armel])
61 Inst cool (1.0 unstable [amd64])
62 Inst doxygen (1.0 unstable [amd64])
63 Inst foreigner (1.0 unstable [amd64])
64 Inst libc6 (1.0 unstable [amd64])
65 Inst libc6:armel (1.0 unstable [armel])
66 Inst libc6-dev (1.0 unstable [amd64])
67 Inst libc6-dev:armel (1.0 unstable [armel])
68 Inst libfwibble1:armel (1.0 unstable [armel])
69 Inst libfwibble-dev:armel (1.0 unstable [armel])
70 Conf amdboot (1.0 unstable [amd64])
71 Conf arm-stuff:armel (1.0 unstable [armel])
72 Conf cool (1.0 unstable [amd64])
73 Conf doxygen (1.0 unstable [amd64])
74 Conf foreigner (1.0 unstable [amd64])
75 Conf libc6 (1.0 unstable [amd64])
76 Conf libc6:armel (1.0 unstable [armel])
77 Conf libc6-dev (1.0 unstable [amd64])
78 Conf libc6-dev:armel (1.0 unstable [armel])
79 Conf libfwibble1:armel (1.0 unstable [armel])
80 Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
81
82 configarchitecture 'armel' 'amd64'
83
84 testequal 'Reading package lists...
85 Building dependency tree...
86 The following NEW packages will be installed:
87 amdboot:amd64 arm-stuff cool doxygen foreigner libc6 libc6-dev
88 libfwibble-dev libfwibble1
89 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
90 Inst amdboot:amd64 (1.0 unstable [amd64])
91 Inst arm-stuff (1.0 unstable [armel])
92 Inst cool (1.0 unstable [armel])
93 Inst doxygen (1.0 unstable [armel])
94 Inst foreigner (1.0 unstable [armel])
95 Inst libc6 (1.0 unstable [armel])
96 Inst libc6-dev (1.0 unstable [armel])
97 Inst libfwibble1 (1.0 unstable [armel])
98 Inst libfwibble-dev (1.0 unstable [armel])
99 Conf amdboot:amd64 (1.0 unstable [amd64])
100 Conf arm-stuff (1.0 unstable [armel])
101 Conf cool (1.0 unstable [armel])
102 Conf doxygen (1.0 unstable [armel])
103 Conf foreigner (1.0 unstable [armel])
104 Conf libc6 (1.0 unstable [armel])
105 Conf libc6-dev (1.0 unstable [armel])
106 Conf libfwibble1 (1.0 unstable [armel])
107 Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
108
109 testequal 'Reading package lists...
110 Building dependency tree...
111 The following NEW packages will be installed:
112 amdboot:amd64 cool doxygen foreigner libc6:amd64 libc6 libc6-dev:amd64
113 libc6-dev libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
114 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
115 Inst amdboot:amd64 (1.0 unstable [amd64])
116 Inst cool (1.0 unstable [armel])
117 Inst doxygen (1.0 unstable [armel])
118 Inst foreigner (1.0 unstable [armel])
119 Inst libc6:amd64 (1.0 unstable [amd64])
120 Inst libc6 (1.0 unstable [armel])
121 Inst libc6-dev:amd64 (1.0 unstable [amd64])
122 Inst libc6-dev (1.0 unstable [armel])
123 Inst libfwibble1:amd64 (1.0 unstable [amd64])
124 Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
125 Inst linux-stuff:amd64 (1.0 unstable [amd64])
126 Conf amdboot:amd64 (1.0 unstable [amd64])
127 Conf cool (1.0 unstable [armel])
128 Conf doxygen (1.0 unstable [armel])
129 Conf foreigner (1.0 unstable [armel])
130 Conf libc6:amd64 (1.0 unstable [amd64])
131 Conf libc6 (1.0 unstable [armel])
132 Conf libc6-dev:amd64 (1.0 unstable [amd64])
133 Conf libc6-dev (1.0 unstable [armel])
134 Conf libfwibble1:amd64 (1.0 unstable [amd64])
135 Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
136 Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64
137
138 configarchitecture 'amd64' 'armel'
139
140 insertinstalledpackage 'cool' 'amd64' '0.5'
141 insertinstalledpackage 'foreigner' 'armel' '0.5'
142
143 testequal 'Reading package lists...
144 Building dependency tree...
145 The following NEW packages will be installed:
146 amdboot doxygen libc6 libc6-dev libfwibble-dev libfwibble1 linux-stuff
147 0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
148 Inst amdboot (1.0 unstable [amd64])
149 Inst doxygen (1.0 unstable [amd64])
150 Inst libc6 (1.0 unstable [amd64])
151 Inst libc6-dev (1.0 unstable [amd64])
152 Inst libfwibble1 (1.0 unstable [amd64])
153 Inst libfwibble-dev (1.0 unstable [amd64])
154 Inst linux-stuff (1.0 unstable [amd64])
155 Conf amdboot (1.0 unstable [amd64])
156 Conf doxygen (1.0 unstable [amd64])
157 Conf libc6 (1.0 unstable [amd64])
158 Conf libc6-dev (1.0 unstable [amd64])
159 Conf libfwibble1 (1.0 unstable [amd64])
160 Conf libfwibble-dev (1.0 unstable [amd64])
161 Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
162
163 testequal 'Reading package lists...
164 Building dependency tree...
165 The following NEW packages will be installed:
166 amdboot arm-stuff:armel doxygen libc6 libc6:armel libc6-dev libc6-dev:armel
167 libfwibble-dev:armel libfwibble1:armel
168 0 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
169 Inst amdboot (1.0 unstable [amd64])
170 Inst arm-stuff:armel (1.0 unstable [armel])
171 Inst doxygen (1.0 unstable [amd64])
172 Inst libc6 (1.0 unstable [amd64])
173 Inst libc6:armel (1.0 unstable [armel])
174 Inst libc6-dev (1.0 unstable [amd64])
175 Inst libc6-dev:armel (1.0 unstable [armel])
176 Inst libfwibble1:armel (1.0 unstable [armel])
177 Inst libfwibble-dev:armel (1.0 unstable [armel])
178 Conf amdboot (1.0 unstable [amd64])
179 Conf arm-stuff:armel (1.0 unstable [armel])
180 Conf doxygen (1.0 unstable [amd64])
181 Conf libc6 (1.0 unstable [amd64])
182 Conf libc6:armel (1.0 unstable [armel])
183 Conf libc6-dev (1.0 unstable [amd64])
184 Conf libc6-dev:armel (1.0 unstable [armel])
185 Conf libfwibble1:armel (1.0 unstable [armel])
186 Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
187
188 configarchitecture 'armel' 'amd64'
189
190 # cool 0.5 is not M-A: allowed, so amd64 is not acceptable
191 testequal 'Reading package lists...
192 Building dependency tree...
193 The following packages will be REMOVED:
194 cool:amd64
195 The following NEW packages will be installed:
196 amdboot:amd64 arm-stuff cool doxygen libc6 libc6-dev libfwibble-dev
197 libfwibble1
198 0 upgraded, 8 newly installed, 1 to remove and 1 not upgraded.
199 Remv cool:amd64 [0.5]
200 Inst amdboot:amd64 (1.0 unstable [amd64])
201 Inst arm-stuff (1.0 unstable [armel])
202 Inst cool (1.0 unstable [armel])
203 Inst doxygen (1.0 unstable [armel])
204 Inst libc6 (1.0 unstable [armel])
205 Inst libc6-dev (1.0 unstable [armel])
206 Inst libfwibble1 (1.0 unstable [armel])
207 Inst libfwibble-dev (1.0 unstable [armel])
208 Conf amdboot:amd64 (1.0 unstable [amd64])
209 Conf arm-stuff (1.0 unstable [armel])
210 Conf cool (1.0 unstable [armel])
211 Conf doxygen (1.0 unstable [armel])
212 Conf libc6 (1.0 unstable [armel])
213 Conf libc6-dev (1.0 unstable [armel])
214 Conf libfwibble1 (1.0 unstable [armel])
215 Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
216
217 testequal 'Reading package lists...
218 Building dependency tree...
219 The following NEW packages will be installed:
220 amdboot:amd64 doxygen libc6:amd64 libc6 libc6-dev:amd64 libc6-dev
221 libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
222 0 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
223 Inst amdboot:amd64 (1.0 unstable [amd64])
224 Inst doxygen (1.0 unstable [armel])
225 Inst libc6:amd64 (1.0 unstable [amd64])
226 Inst libc6 (1.0 unstable [armel])
227 Inst libc6-dev:amd64 (1.0 unstable [amd64])
228 Inst libc6-dev (1.0 unstable [armel])
229 Inst libfwibble1:amd64 (1.0 unstable [amd64])
230 Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
231 Inst linux-stuff:amd64 (1.0 unstable [amd64])
232 Conf amdboot:amd64 (1.0 unstable [amd64])
233 Conf doxygen (1.0 unstable [armel])
234 Conf libc6:amd64 (1.0 unstable [amd64])
235 Conf libc6 (1.0 unstable [armel])
236 Conf libc6-dev:amd64 (1.0 unstable [amd64])
237 Conf libc6-dev (1.0 unstable [armel])
238 Conf libfwibble1:amd64 (1.0 unstable [amd64])
239 Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
240 Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64