]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-632221-cross-dependency-satisfaction
tests: support spaces in path and TMPDIR
[apt.git] / test / integration / test-bug-632221-cross-dependency-satisfaction
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6setupenvironment
7configarchitecture 'amd64' 'armel'
8
9insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
10
11insertpackage 'unstable' 'doxygen' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
12insertpackage 'unstable' 'libc6' 'amd64,armel' '1.0' 'Multi-Arch: same'
13insertpackage 'unstable' 'libc6-dev' 'amd64,armel' '1.0' 'Depends: libc6
14Multi-Arch: same'
15insertpackage 'unstable' 'libfwibble1' 'amd64,armel' '1.0' 'Depends: libc6
16Multi-Arch: same'
17insertpackage 'unstable' 'libfwibble-dev' 'amd64,armel' '1.0' 'Depends: libfwibble1'
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'
21insertpackage 'unstable' 'arm-stuff' 'armel' '1.0'
22insertpackage 'unstable' 'linux-stuff' 'amd64,armel' '1.0'
23
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]'
25
26insertsource 'unstable' 'forbidden-no' '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
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
36setupaptarchive
37
38testfailureequal "Reading package lists...
39Building dependency tree...
40E: Build-Depends dependency for forbidden-no can't be satisfied because amdboot:any is not allowed on 'Multi-Arch: no' packages" aptget build-dep forbidden-no -s -a armel
41testfailureequal "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
44testfailureequal "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
48testsuccessequal '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
57testsuccessequal '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
66
67testsuccessequal '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
76testsuccessequal '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
86testsuccessequal 'Reading package lists...
87Building dependency tree...
88The following NEW packages will be installed:
89 amdboot cool doxygen foreigner libc6 libc6-dev libfwibble-dev libfwibble1
90 linux-stuff
910 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
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])
98Inst libfwibble1 (1.0 unstable [amd64])
99Inst libfwibble-dev (1.0 unstable [amd64])
100Inst linux-stuff (1.0 unstable [amd64])
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])
106Conf libc6-dev (1.0 unstable [amd64])
107Conf libfwibble1 (1.0 unstable [amd64])
108Conf libfwibble-dev (1.0 unstable [amd64])
109Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
110
111testsuccessequal 'Reading package lists...
112Building dependency tree...
113The following NEW packages will be installed:
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.
117Inst amdboot (1.0 unstable [amd64])
118Inst arm-stuff:armel (1.0 unstable [armel])
119Inst cool (1.0 unstable [amd64])
120Inst doxygen (1.0 unstable [amd64])
121Inst foreigner (1.0 unstable [amd64])
122Inst libc6 (1.0 unstable [amd64])
123Inst libc6:armel (1.0 unstable [armel])
124Inst libc6-dev (1.0 unstable [amd64])
125Inst libc6-dev:armel (1.0 unstable [armel])
126Inst libfwibble1:armel (1.0 unstable [armel])
127Inst libfwibble-dev:armel (1.0 unstable [armel])
128Conf amdboot (1.0 unstable [amd64])
129Conf arm-stuff:armel (1.0 unstable [armel])
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])
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
139
140configarchitecture 'armel' 'amd64'
141
142testsuccessequal 'Reading package lists...
143Building dependency tree...
144The following NEW packages will be installed:
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.
148Inst amdboot:amd64 (1.0 unstable [amd64])
149Inst arm-stuff (1.0 unstable [armel])
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])
155Inst libfwibble1 (1.0 unstable [armel])
156Inst libfwibble-dev (1.0 unstable [armel])
157Conf amdboot:amd64 (1.0 unstable [amd64])
158Conf arm-stuff (1.0 unstable [armel])
159Conf cool (1.0 unstable [armel])
160Conf doxygen (1.0 unstable [armel])
161Conf foreigner (1.0 unstable [armel])
162Conf libc6 (1.0 unstable [armel])
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
166
167testsuccessequal 'Reading package lists...
168Building dependency tree...
169The following NEW packages will be installed:
170 amdboot:amd64 cool doxygen foreigner libc6 libc6:amd64 libc6-dev
171 libc6-dev:amd64 libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
1720 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
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])
177Inst libc6 (1.0 unstable [armel])
178Inst libc6:amd64 (1.0 unstable [amd64])
179Inst libc6-dev (1.0 unstable [armel])
180Inst libc6-dev:amd64 (1.0 unstable [amd64])
181Inst libfwibble1:amd64 (1.0 unstable [amd64])
182Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
183Inst linux-stuff:amd64 (1.0 unstable [amd64])
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 (1.0 unstable [armel])
189Conf libc6:amd64 (1.0 unstable [amd64])
190Conf libc6-dev (1.0 unstable [armel])
191Conf libc6-dev:amd64 (1.0 unstable [amd64])
192Conf libfwibble1:amd64 (1.0 unstable [amd64])
193Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
194Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64
195
196configarchitecture 'amd64' 'armel'
197
198insertinstalledpackage 'cool' 'amd64' '0.5'
199insertinstalledpackage 'foreigner' 'armel' '0.5'
200
201testsuccessequal 'Reading package lists...
202Building dependency tree...
203The following NEW packages will be installed:
204 amdboot doxygen libc6 libc6-dev libfwibble-dev libfwibble1 linux-stuff
2050 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
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])
210Inst libfwibble1 (1.0 unstable [amd64])
211Inst libfwibble-dev (1.0 unstable [amd64])
212Inst linux-stuff (1.0 unstable [amd64])
213Conf amdboot (1.0 unstable [amd64])
214Conf doxygen (1.0 unstable [amd64])
215Conf libc6 (1.0 unstable [amd64])
216Conf libc6-dev (1.0 unstable [amd64])
217Conf libfwibble1 (1.0 unstable [amd64])
218Conf libfwibble-dev (1.0 unstable [amd64])
219Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
220
221testsuccessequal 'Reading package lists...
222Building dependency tree...
223The following NEW packages will be installed:
224 amdboot arm-stuff:armel doxygen libc6 libc6:armel libc6-dev libc6-dev:armel
225 libfwibble-dev:armel libfwibble1:armel
2260 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
227Inst amdboot (1.0 unstable [amd64])
228Inst arm-stuff:armel (1.0 unstable [armel])
229Inst doxygen (1.0 unstable [amd64])
230Inst libc6 (1.0 unstable [amd64])
231Inst libc6:armel (1.0 unstable [armel])
232Inst libc6-dev (1.0 unstable [amd64])
233Inst libc6-dev:armel (1.0 unstable [armel])
234Inst libfwibble1:armel (1.0 unstable [armel])
235Inst libfwibble-dev:armel (1.0 unstable [armel])
236Conf amdboot (1.0 unstable [amd64])
237Conf arm-stuff:armel (1.0 unstable [armel])
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])
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
245
246configarchitecture 'armel' 'amd64'
247
248# cool 0.5 is not M-A: allowed, so amd64 is not acceptable
249testsuccessequal 'Reading package lists...
250Building dependency tree...
251The following packages will be REMOVED:
252 cool:amd64
253The following NEW packages will be installed:
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.
257Remv cool:amd64 [0.5]
258Inst amdboot:amd64 (1.0 unstable [amd64])
259Inst arm-stuff (1.0 unstable [armel])
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])
264Inst libfwibble1 (1.0 unstable [armel])
265Inst libfwibble-dev (1.0 unstable [armel])
266Conf amdboot:amd64 (1.0 unstable [amd64])
267Conf arm-stuff (1.0 unstable [armel])
268Conf cool (1.0 unstable [armel])
269Conf doxygen (1.0 unstable [armel])
270Conf libc6 (1.0 unstable [armel])
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
274
275testsuccessequal 'Reading package lists...
276Building dependency tree...
277The following NEW packages will be installed:
278 amdboot:amd64 doxygen libc6 libc6:amd64 libc6-dev libc6-dev:amd64
279 libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
2800 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
281Inst amdboot:amd64 (1.0 unstable [amd64])
282Inst doxygen (1.0 unstable [armel])
283Inst libc6 (1.0 unstable [armel])
284Inst libc6:amd64 (1.0 unstable [amd64])
285Inst libc6-dev (1.0 unstable [armel])
286Inst libc6-dev:amd64 (1.0 unstable [amd64])
287Inst libfwibble1:amd64 (1.0 unstable [amd64])
288Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
289Inst linux-stuff:amd64 (1.0 unstable [amd64])
290Conf amdboot:amd64 (1.0 unstable [amd64])
291Conf doxygen (1.0 unstable [armel])
292Conf libc6 (1.0 unstable [armel])
293Conf libc6:amd64 (1.0 unstable [amd64])
294Conf libc6-dev (1.0 unstable [armel])
295Conf libc6-dev:amd64 (1.0 unstable [amd64])
296Conf libfwibble1:amd64 (1.0 unstable [amd64])
297Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
298Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64