merged from lp:~donkult/apt/experimental/
[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
22 insertsource 'unstable' 'apt' 'any' '0.8.15' 'Build-Depends: doxygen, libc6-dev, libc6-dev:native, cool:any, amdboot:amd64, foreigner, libfwibble-dev'
23
24 setupaptarchive
25
26 testequal 'Reading package lists...
27 Building dependency tree...
28 The following NEW packages will be installed:
29 amdboot cool doxygen foreigner libc6 libc6-dev libfwibble-dev libfwibble1
30 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
31 Inst amdboot (1.0 unstable [amd64])
32 Inst cool (1.0 unstable [amd64])
33 Inst doxygen (1.0 unstable [amd64])
34 Inst foreigner (1.0 unstable [amd64])
35 Inst libc6 (1.0 unstable [amd64])
36 Inst libc6-dev (1.0 unstable [amd64])
37 Inst libfwibble1 (1.0 unstable [amd64])
38 Inst libfwibble-dev (1.0 unstable [amd64])
39 Conf amdboot (1.0 unstable [amd64])
40 Conf cool (1.0 unstable [amd64])
41 Conf doxygen (1.0 unstable [amd64])
42 Conf foreigner (1.0 unstable [amd64])
43 Conf libc6 (1.0 unstable [amd64])
44 Conf libc6-dev (1.0 unstable [amd64])
45 Conf libfwibble1 (1.0 unstable [amd64])
46 Conf libfwibble-dev (1.0 unstable [amd64])' aptget build-dep apt -s
47
48 testequal 'Reading package lists...
49 Building dependency tree...
50 The following NEW packages will be installed:
51 amdboot cool doxygen foreigner libc6 libc6:armel libc6-dev libc6-dev:armel
52 libfwibble-dev:armel libfwibble1:armel
53 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
54 Inst amdboot (1.0 unstable [amd64])
55 Inst cool (1.0 unstable [amd64])
56 Inst doxygen (1.0 unstable [amd64])
57 Inst foreigner (1.0 unstable [amd64])
58 Inst libc6 (1.0 unstable [amd64])
59 Inst libc6:armel (1.0 unstable [armel])
60 Inst libc6-dev (1.0 unstable [amd64])
61 Inst libc6-dev:armel (1.0 unstable [armel])
62 Inst libfwibble1:armel (1.0 unstable [armel])
63 Inst libfwibble-dev:armel (1.0 unstable [armel])
64 Conf amdboot (1.0 unstable [amd64])
65 Conf cool (1.0 unstable [amd64])
66 Conf doxygen (1.0 unstable [amd64])
67 Conf foreigner (1.0 unstable [amd64])
68 Conf libc6 (1.0 unstable [amd64])
69 Conf libc6:armel (1.0 unstable [armel])
70 Conf libc6-dev (1.0 unstable [amd64])
71 Conf libc6-dev:armel (1.0 unstable [armel])
72 Conf libfwibble1:armel (1.0 unstable [armel])
73 Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
74
75 configarchitecture 'armel' 'amd64'
76
77 testequal 'Reading package lists...
78 Building dependency tree...
79 The following NEW packages will be installed:
80 amdboot:amd64 cool doxygen foreigner libc6 libc6-dev libfwibble-dev
81 libfwibble1
82 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
83 Inst amdboot:amd64 (1.0 unstable [amd64])
84 Inst cool (1.0 unstable [armel])
85 Inst doxygen (1.0 unstable [armel])
86 Inst foreigner (1.0 unstable [armel])
87 Inst libc6 (1.0 unstable [armel])
88 Inst libc6-dev (1.0 unstable [armel])
89 Inst libfwibble1 (1.0 unstable [armel])
90 Inst libfwibble-dev (1.0 unstable [armel])
91 Conf amdboot:amd64 (1.0 unstable [amd64])
92 Conf cool (1.0 unstable [armel])
93 Conf doxygen (1.0 unstable [armel])
94 Conf foreigner (1.0 unstable [armel])
95 Conf libc6 (1.0 unstable [armel])
96 Conf libc6-dev (1.0 unstable [armel])
97 Conf libfwibble1 (1.0 unstable [armel])
98 Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
99
100 testequal 'Reading package lists...
101 Building dependency tree...
102 The following NEW packages will be installed:
103 amdboot:amd64 cool doxygen foreigner libc6:amd64 libc6 libc6-dev:amd64
104 libc6-dev libfwibble-dev:amd64 libfwibble1:amd64
105 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
106 Inst amdboot:amd64 (1.0 unstable [amd64])
107 Inst cool (1.0 unstable [armel])
108 Inst doxygen (1.0 unstable [armel])
109 Inst foreigner (1.0 unstable [armel])
110 Inst libc6:amd64 (1.0 unstable [amd64])
111 Inst libc6 (1.0 unstable [armel])
112 Inst libc6-dev:amd64 (1.0 unstable [amd64])
113 Inst libc6-dev (1.0 unstable [armel])
114 Inst libfwibble1:amd64 (1.0 unstable [amd64])
115 Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
116 Conf amdboot:amd64 (1.0 unstable [amd64])
117 Conf cool (1.0 unstable [armel])
118 Conf doxygen (1.0 unstable [armel])
119 Conf foreigner (1.0 unstable [armel])
120 Conf libc6:amd64 (1.0 unstable [amd64])
121 Conf libc6 (1.0 unstable [armel])
122 Conf libc6-dev:amd64 (1.0 unstable [amd64])
123 Conf libc6-dev (1.0 unstable [armel])
124 Conf libfwibble1:amd64 (1.0 unstable [amd64])
125 Conf libfwibble-dev:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64
126
127 configarchitecture 'amd64' 'armel'
128
129 insertinstalledpackage 'cool' 'amd64' '0.5'
130 insertinstalledpackage 'foreigner' 'armel' '0.5'
131
132 testequal 'Reading package lists...
133 Building dependency tree...
134 The following NEW packages will be installed:
135 amdboot doxygen libc6 libc6-dev libfwibble-dev libfwibble1
136 0 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
137 Inst amdboot (1.0 unstable [amd64])
138 Inst doxygen (1.0 unstable [amd64])
139 Inst libc6 (1.0 unstable [amd64])
140 Inst libc6-dev (1.0 unstable [amd64])
141 Inst libfwibble1 (1.0 unstable [amd64])
142 Inst libfwibble-dev (1.0 unstable [amd64])
143 Conf amdboot (1.0 unstable [amd64])
144 Conf doxygen (1.0 unstable [amd64])
145 Conf libc6 (1.0 unstable [amd64])
146 Conf libc6-dev (1.0 unstable [amd64])
147 Conf libfwibble1 (1.0 unstable [amd64])
148 Conf libfwibble-dev (1.0 unstable [amd64])' aptget build-dep apt -s
149
150 testequal 'Reading package lists...
151 Building dependency tree...
152 The following NEW packages will be installed:
153 amdboot doxygen libc6 libc6:armel libc6-dev libc6-dev:armel
154 libfwibble-dev:armel libfwibble1:armel
155 0 upgraded, 8 newly installed, 0 to remove and 2 not upgraded.
156 Inst amdboot (1.0 unstable [amd64])
157 Inst doxygen (1.0 unstable [amd64])
158 Inst libc6 (1.0 unstable [amd64])
159 Inst libc6:armel (1.0 unstable [armel])
160 Inst libc6-dev (1.0 unstable [amd64])
161 Inst libc6-dev:armel (1.0 unstable [armel])
162 Inst libfwibble1:armel (1.0 unstable [armel])
163 Inst libfwibble-dev:armel (1.0 unstable [armel])
164 Conf amdboot (1.0 unstable [amd64])
165 Conf doxygen (1.0 unstable [amd64])
166 Conf libc6 (1.0 unstable [amd64])
167 Conf libc6:armel (1.0 unstable [armel])
168 Conf libc6-dev (1.0 unstable [amd64])
169 Conf libc6-dev:armel (1.0 unstable [armel])
170 Conf libfwibble1:armel (1.0 unstable [armel])
171 Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
172
173 configarchitecture 'armel' 'amd64'
174
175 # cool 0.5 is not M-A: allowed, so amd64 is not acceptable
176 testequal 'Reading package lists...
177 Building dependency tree...
178 The following packages will be REMOVED:
179 cool:amd64
180 The following NEW packages will be installed:
181 amdboot:amd64 cool doxygen libc6 libc6-dev libfwibble-dev libfwibble1
182 0 upgraded, 7 newly installed, 1 to remove and 1 not upgraded.
183 Remv cool:amd64 [0.5]
184 Inst amdboot:amd64 (1.0 unstable [amd64])
185 Inst cool (1.0 unstable [armel])
186 Inst doxygen (1.0 unstable [armel])
187 Inst libc6 (1.0 unstable [armel])
188 Inst libc6-dev (1.0 unstable [armel])
189 Inst libfwibble1 (1.0 unstable [armel])
190 Inst libfwibble-dev (1.0 unstable [armel])
191 Conf amdboot:amd64 (1.0 unstable [amd64])
192 Conf cool (1.0 unstable [armel])
193 Conf doxygen (1.0 unstable [armel])
194 Conf libc6 (1.0 unstable [armel])
195 Conf libc6-dev (1.0 unstable [armel])
196 Conf libfwibble1 (1.0 unstable [armel])
197 Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
198
199 testequal 'Reading package lists...
200 Building dependency tree...
201 The following NEW packages will be installed:
202 amdboot:amd64 doxygen libc6:amd64 libc6 libc6-dev:amd64 libc6-dev
203 libfwibble-dev:amd64 libfwibble1:amd64
204 0 upgraded, 8 newly installed, 0 to remove and 2 not upgraded.
205 Inst amdboot:amd64 (1.0 unstable [amd64])
206 Inst doxygen (1.0 unstable [armel])
207 Inst libc6:amd64 (1.0 unstable [amd64])
208 Inst libc6 (1.0 unstable [armel])
209 Inst libc6-dev:amd64 (1.0 unstable [amd64])
210 Inst libc6-dev (1.0 unstable [armel])
211 Inst libfwibble1:amd64 (1.0 unstable [amd64])
212 Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
213 Conf amdboot:amd64 (1.0 unstable [amd64])
214 Conf doxygen (1.0 unstable [armel])
215 Conf libc6:amd64 (1.0 unstable [amd64])
216 Conf libc6 (1.0 unstable [armel])
217 Conf libc6-dev:amd64 (1.0 unstable [amd64])
218 Conf libc6-dev (1.0 unstable [armel])
219 Conf libfwibble1:amd64 (1.0 unstable [amd64])
220 Conf libfwibble-dev:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64
221
222