]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-632221-cross-dependency-satisfaction
merged lp:~mvo/apt/mvo
[apt.git] / test / integration / test-bug-632221-cross-dependency-satisfaction
CommitLineData
234675b7
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'armel'
8
737c7a7b 9insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
234675b7 10
737c7a7b 11insertpackage 'unstable' 'doxygen' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
234675b7
DK
12insertpackage 'unstable' 'libc6' 'amd64,armel' '1.0' 'Multi-Arch: same'
13insertpackage 'unstable' 'libc6-dev' 'amd64,armel' '1.0' 'Depends: libc6
14Multi-Arch: same'
737c7a7b
SL
15insertpackage 'unstable' 'libfwibble1' 'amd64,armel' '1.0' 'Depends: libc6
16Multi-Arch: same'
17insertpackage 'unstable' 'libfwibble-dev' 'amd64,armel' '1.0' 'Depends: libfwibble1'
234675b7
DK
18insertpackage 'unstable' 'cool' 'amd64,armel' '1.0' 'Multi-Arch: allowed'
19insertpackage 'unstable' 'amdboot' 'amd64' '1.0'
20insertpackage 'unstable' 'foreigner' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
65f99834
DK
21insertpackage 'unstable' 'arm-stuff' 'armel' '1.0'
22insertpackage 'unstable' 'linux-stuff' 'amd64,armel' '1.0'
234675b7 23
5f20ac7f 24insertsource 'unstable' 'apt' 'any' '0.8.15' 'Build-Depends: doxygen, libc6-dev, libc6-dev:native, cool:any, amdboot:amd64, foreigner, libfwibble-dev, arm-stuff [any-armel] | linux-stuff [ linux-any]'
234675b7 25
d5dea0be
DK
26insertsource 'unstable' 'forbidden-none' 'any' '1' 'Build-Depends: amdboot:any'
27insertsource 'unstable' 'forbidden-same' 'any' '1' 'Build-Depends: libc6:any'
28insertsource 'unstable' 'forbidden-foreign' 'any' '1' 'Build-Depends: doxygen:any'
29
249a02f5
DK
30insertpackage 'unstable' 'specific' 'amd64' '1.0' 'Depends: libc6:amd64'
31insertpackage 'unstable' 'specific' 'armel' '1.0' 'Depends: libc6:armel'
32
33insertsource 'unstable' 'source-specific-amd64' 'amd64' '1' 'Build-Depends: specific:amd64'
34insertsource 'unstable' 'source-specific-armel' 'armel' '1' 'Build-Depends: specific:armel'
35
234675b7
DK
36setupaptarchive
37
d5dea0be
DK
38testequal "Reading package lists...
39Building dependency tree...
40E: Build-Depends dependency for forbidden-none can't be satisfied because amdboot:any is not allowed on 'Multi-Arch: none' packages" aptget build-dep forbidden-none -s -a armel
41testequal "Reading package lists...
42Building dependency tree...
43E: Build-Depends dependency for forbidden-same can't be satisfied because libc6:any is not allowed on 'Multi-Arch: same' packages" aptget build-dep forbidden-same -s -a armel
44testequal "Reading package lists...
45Building dependency tree...
46E: Build-Depends dependency for forbidden-foreign can't be satisfied because doxygen:any is not allowed on 'Multi-Arch: foreign' packages" aptget build-dep forbidden-foreign -s -a armel
47
249a02f5
DK
48testequal 'Reading package lists...
49Building dependency tree...
50The following NEW packages will be installed:
51 libc6 specific
520 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
53Inst libc6 (1.0 unstable [amd64])
54Inst specific (1.0 unstable [amd64])
55Conf libc6 (1.0 unstable [amd64])
56Conf specific (1.0 unstable [amd64])' aptget build-dep source-specific-amd64 -s
57testequal 'Reading package lists...
58Building dependency tree...
59The following NEW packages will be installed:
60 libc6 specific
610 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
62Inst libc6 (1.0 unstable [amd64])
63Inst specific (1.0 unstable [amd64])
64Conf libc6 (1.0 unstable [amd64])
65Conf specific (1.0 unstable [amd64])' aptget build-dep source-specific-amd64 -s -a armel
666faa35 66
249a02f5
DK
67testequal 'Reading package lists...
68Building dependency tree...
69The following NEW packages will be installed:
70 libc6:armel specific:armel
710 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
72Inst libc6:armel (1.0 unstable [armel])
73Inst specific:armel (1.0 unstable [armel])
74Conf libc6:armel (1.0 unstable [armel])
75Conf specific:armel (1.0 unstable [armel])' aptget build-dep source-specific-armel -s
76testequal 'Reading package lists...
77Building dependency tree...
78The following NEW packages will be installed:
79 libc6:armel specific:armel
800 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
81Inst libc6:armel (1.0 unstable [armel])
82Inst specific:armel (1.0 unstable [armel])
83Conf libc6:armel (1.0 unstable [armel])
84Conf specific:armel (1.0 unstable [armel])' aptget build-dep source-specific-armel -s -a armel
85
234675b7
DK
86testequal 'Reading package lists...
87Building dependency tree...
88The following NEW packages will be installed:
737c7a7b 89 amdboot cool doxygen foreigner libc6 libc6-dev libfwibble-dev libfwibble1
65f99834
DK
90 linux-stuff
910 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
234675b7
DK
92Inst amdboot (1.0 unstable [amd64])
93Inst cool (1.0 unstable [amd64])
94Inst doxygen (1.0 unstable [amd64])
95Inst foreigner (1.0 unstable [amd64])
96Inst libc6 (1.0 unstable [amd64])
97Inst libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
98Inst libfwibble1 (1.0 unstable [amd64])
99Inst libfwibble-dev (1.0 unstable [amd64])
65f99834 100Inst linux-stuff (1.0 unstable [amd64])
234675b7
DK
101Conf amdboot (1.0 unstable [amd64])
102Conf cool (1.0 unstable [amd64])
103Conf doxygen (1.0 unstable [amd64])
104Conf foreigner (1.0 unstable [amd64])
105Conf libc6 (1.0 unstable [amd64])
737c7a7b
SL
106Conf libc6-dev (1.0 unstable [amd64])
107Conf libfwibble1 (1.0 unstable [amd64])
65f99834
DK
108Conf libfwibble-dev (1.0 unstable [amd64])
109Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
234675b7
DK
110
111testequal 'Reading package lists...
112Building dependency tree...
113The following NEW packages will be installed:
65f99834
DK
114 amdboot arm-stuff:armel cool doxygen foreigner libc6 libc6:armel libc6-dev
115 libc6-dev:armel libfwibble-dev:armel libfwibble1:armel
1160 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
234675b7 117Inst amdboot (1.0 unstable [amd64])
65f99834 118Inst arm-stuff:armel (1.0 unstable [armel])
234675b7
DK
119Inst cool (1.0 unstable [amd64])
120Inst doxygen (1.0 unstable [amd64])
121Inst foreigner (1.0 unstable [amd64])
234675b7 122Inst libc6 (1.0 unstable [amd64])
30426f48 123Inst libc6:armel (1.0 unstable [armel])
234675b7 124Inst libc6-dev (1.0 unstable [amd64])
30426f48 125Inst libc6-dev:armel (1.0 unstable [armel])
737c7a7b
SL
126Inst libfwibble1:armel (1.0 unstable [armel])
127Inst libfwibble-dev:armel (1.0 unstable [armel])
234675b7 128Conf amdboot (1.0 unstable [amd64])
65f99834 129Conf arm-stuff:armel (1.0 unstable [armel])
234675b7
DK
130Conf cool (1.0 unstable [amd64])
131Conf doxygen (1.0 unstable [amd64])
132Conf foreigner (1.0 unstable [amd64])
133Conf libc6 (1.0 unstable [amd64])
134Conf libc6:armel (1.0 unstable [armel])
135Conf libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
136Conf libc6-dev:armel (1.0 unstable [armel])
137Conf libfwibble1:armel (1.0 unstable [armel])
138Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
234675b7
DK
139
140configarchitecture 'armel' 'amd64'
141
142testequal 'Reading package lists...
143Building dependency tree...
144The following NEW packages will be installed:
65f99834
DK
145 amdboot:amd64 arm-stuff cool doxygen foreigner libc6 libc6-dev
146 libfwibble-dev libfwibble1
1470 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
234675b7 148Inst amdboot:amd64 (1.0 unstable [amd64])
65f99834 149Inst arm-stuff (1.0 unstable [armel])
234675b7
DK
150Inst cool (1.0 unstable [armel])
151Inst doxygen (1.0 unstable [armel])
152Inst foreigner (1.0 unstable [armel])
153Inst libc6 (1.0 unstable [armel])
154Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
155Inst libfwibble1 (1.0 unstable [armel])
156Inst libfwibble-dev (1.0 unstable [armel])
234675b7 157Conf amdboot:amd64 (1.0 unstable [amd64])
65f99834 158Conf arm-stuff (1.0 unstable [armel])
234675b7
DK
159Conf cool (1.0 unstable [armel])
160Conf doxygen (1.0 unstable [armel])
161Conf foreigner (1.0 unstable [armel])
162Conf libc6 (1.0 unstable [armel])
737c7a7b
SL
163Conf libc6-dev (1.0 unstable [armel])
164Conf libfwibble1 (1.0 unstable [armel])
165Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
234675b7
DK
166
167testequal 'Reading package lists...
168Building dependency tree...
169The following NEW packages will be installed:
170 amdboot:amd64 cool doxygen foreigner libc6:amd64 libc6 libc6-dev:amd64
65f99834
DK
171 libc6-dev libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
1720 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
234675b7
DK
173Inst amdboot:amd64 (1.0 unstable [amd64])
174Inst cool (1.0 unstable [armel])
175Inst doxygen (1.0 unstable [armel])
176Inst foreigner (1.0 unstable [armel])
234675b7 177Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 178Inst libc6 (1.0 unstable [armel])
234675b7 179Inst libc6-dev:amd64 (1.0 unstable [amd64])
30426f48 180Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
181Inst libfwibble1:amd64 (1.0 unstable [amd64])
182Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
65f99834 183Inst linux-stuff:amd64 (1.0 unstable [amd64])
234675b7
DK
184Conf amdboot:amd64 (1.0 unstable [amd64])
185Conf cool (1.0 unstable [armel])
186Conf doxygen (1.0 unstable [armel])
187Conf foreigner (1.0 unstable [armel])
188Conf libc6:amd64 (1.0 unstable [amd64])
189Conf libc6 (1.0 unstable [armel])
190Conf libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b
SL
191Conf libc6-dev (1.0 unstable [armel])
192Conf libfwibble1:amd64 (1.0 unstable [amd64])
65f99834
DK
193Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
194Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64
234675b7
DK
195
196configarchitecture 'amd64' 'armel'
197
198insertinstalledpackage 'cool' 'amd64' '0.5'
199insertinstalledpackage 'foreigner' 'armel' '0.5'
200
201testequal 'Reading package lists...
202Building dependency tree...
203The following NEW packages will be installed:
65f99834
DK
204 amdboot doxygen libc6 libc6-dev libfwibble-dev libfwibble1 linux-stuff
2050 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
234675b7
DK
206Inst amdboot (1.0 unstable [amd64])
207Inst doxygen (1.0 unstable [amd64])
208Inst libc6 (1.0 unstable [amd64])
209Inst libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
210Inst libfwibble1 (1.0 unstable [amd64])
211Inst libfwibble-dev (1.0 unstable [amd64])
65f99834 212Inst linux-stuff (1.0 unstable [amd64])
234675b7
DK
213Conf amdboot (1.0 unstable [amd64])
214Conf doxygen (1.0 unstable [amd64])
215Conf libc6 (1.0 unstable [amd64])
737c7a7b
SL
216Conf libc6-dev (1.0 unstable [amd64])
217Conf libfwibble1 (1.0 unstable [amd64])
65f99834
DK
218Conf libfwibble-dev (1.0 unstable [amd64])
219Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
234675b7
DK
220
221testequal 'Reading package lists...
222Building dependency tree...
223The following NEW packages will be installed:
65f99834 224 amdboot arm-stuff:armel doxygen libc6 libc6:armel libc6-dev libc6-dev:armel
737c7a7b 225 libfwibble-dev:armel libfwibble1:armel
65f99834 2260 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
234675b7 227Inst amdboot (1.0 unstable [amd64])
65f99834 228Inst arm-stuff:armel (1.0 unstable [armel])
234675b7 229Inst doxygen (1.0 unstable [amd64])
234675b7 230Inst libc6 (1.0 unstable [amd64])
30426f48 231Inst libc6:armel (1.0 unstable [armel])
234675b7 232Inst libc6-dev (1.0 unstable [amd64])
30426f48 233Inst libc6-dev:armel (1.0 unstable [armel])
737c7a7b
SL
234Inst libfwibble1:armel (1.0 unstable [armel])
235Inst libfwibble-dev:armel (1.0 unstable [armel])
234675b7 236Conf amdboot (1.0 unstable [amd64])
65f99834 237Conf arm-stuff:armel (1.0 unstable [armel])
234675b7
DK
238Conf doxygen (1.0 unstable [amd64])
239Conf libc6 (1.0 unstable [amd64])
240Conf libc6:armel (1.0 unstable [armel])
241Conf libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
242Conf libc6-dev:armel (1.0 unstable [armel])
243Conf libfwibble1:armel (1.0 unstable [armel])
244Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
234675b7
DK
245
246configarchitecture 'armel' 'amd64'
247
248# cool 0.5 is not M-A: allowed, so amd64 is not acceptable
249testequal 'Reading package lists...
250Building dependency tree...
251The following packages will be REMOVED:
252 cool:amd64
253The following NEW packages will be installed:
65f99834
DK
254 amdboot:amd64 arm-stuff cool doxygen libc6 libc6-dev libfwibble-dev
255 libfwibble1
2560 upgraded, 8 newly installed, 1 to remove and 1 not upgraded.
234675b7
DK
257Remv cool:amd64 [0.5]
258Inst amdboot:amd64 (1.0 unstable [amd64])
65f99834 259Inst arm-stuff (1.0 unstable [armel])
234675b7
DK
260Inst cool (1.0 unstable [armel])
261Inst doxygen (1.0 unstable [armel])
262Inst libc6 (1.0 unstable [armel])
263Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
264Inst libfwibble1 (1.0 unstable [armel])
265Inst libfwibble-dev (1.0 unstable [armel])
234675b7 266Conf amdboot:amd64 (1.0 unstable [amd64])
65f99834 267Conf arm-stuff (1.0 unstable [armel])
234675b7
DK
268Conf cool (1.0 unstable [armel])
269Conf doxygen (1.0 unstable [armel])
270Conf libc6 (1.0 unstable [armel])
737c7a7b
SL
271Conf libc6-dev (1.0 unstable [armel])
272Conf libfwibble1 (1.0 unstable [armel])
273Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
234675b7
DK
274
275testequal 'Reading package lists...
276Building dependency tree...
277The following NEW packages will be installed:
278 amdboot:amd64 doxygen libc6:amd64 libc6 libc6-dev:amd64 libc6-dev
65f99834
DK
279 libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
2800 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
234675b7
DK
281Inst amdboot:amd64 (1.0 unstable [amd64])
282Inst doxygen (1.0 unstable [armel])
234675b7 283Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 284Inst libc6 (1.0 unstable [armel])
234675b7 285Inst libc6-dev:amd64 (1.0 unstable [amd64])
30426f48 286Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
287Inst libfwibble1:amd64 (1.0 unstable [amd64])
288Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
65f99834 289Inst linux-stuff:amd64 (1.0 unstable [amd64])
234675b7
DK
290Conf amdboot:amd64 (1.0 unstable [amd64])
291Conf doxygen (1.0 unstable [armel])
292Conf libc6:amd64 (1.0 unstable [amd64])
293Conf libc6 (1.0 unstable [armel])
294Conf libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b
SL
295Conf libc6-dev (1.0 unstable [armel])
296Conf libfwibble1:amd64 (1.0 unstable [amd64])
65f99834
DK
297Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
298Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64