]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-632221-cross-dependency-satisfaction
test-apt-download-progress: Allow smaller progress change
[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
22df31be 26insertsource 'unstable' 'forbidden-no' 'any' '1' 'Build-Depends: amdboot:any'
d5dea0be
DK
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
25b86db1 38testfailureequal "Reading package lists...
d5dea0be 39Building dependency tree...
22df31be 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
25b86db1 41testfailureequal "Reading package lists...
d5dea0be
DK
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
25b86db1 44testfailureequal "Reading package lists...
d5dea0be
DK
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
25b86db1 48testsuccessequal 'Reading package lists...
249a02f5
DK
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
25b86db1 57testsuccessequal 'Reading package lists...
249a02f5
DK
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
25b86db1 67testsuccessequal 'Reading package lists...
249a02f5
DK
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
25b86db1 76testsuccessequal 'Reading package lists...
249a02f5
DK
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
25b86db1 86testsuccessequal 'Reading package lists...
234675b7
DK
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 110
25b86db1 111testsuccessequal 'Reading package lists...
234675b7
DK
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
25b86db1 142testsuccessequal 'Reading package lists...
234675b7
DK
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 166
25b86db1 167testsuccessequal 'Reading package lists...
234675b7
DK
168Building dependency tree...
169The following NEW packages will be installed:
463c8d80
DK
170 amdboot:amd64 cool doxygen foreigner libc6 libc6:amd64 libc6-dev
171 libc6-dev:amd64 libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
65f99834 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])
30426f48 177Inst libc6 (1.0 unstable [armel])
463c8d80 178Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 179Inst libc6-dev (1.0 unstable [armel])
463c8d80 180Inst libc6-dev:amd64 (1.0 unstable [amd64])
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])
234675b7 188Conf libc6 (1.0 unstable [armel])
463c8d80 189Conf libc6:amd64 (1.0 unstable [amd64])
737c7a7b 190Conf libc6-dev (1.0 unstable [armel])
463c8d80 191Conf libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b 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
25b86db1 201testsuccessequal 'Reading package lists...
234675b7
DK
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 220
25b86db1 221testsuccessequal 'Reading package lists...
234675b7
DK
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
25b86db1 249testsuccessequal 'Reading package lists...
234675b7
DK
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 274
25b86db1 275testsuccessequal 'Reading package lists...
234675b7
DK
276Building dependency tree...
277The following NEW packages will be installed:
463c8d80 278 amdboot:amd64 doxygen libc6 libc6:amd64 libc6-dev libc6-dev:amd64
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])
30426f48 283Inst libc6 (1.0 unstable [armel])
463c8d80 284Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 285Inst libc6-dev (1.0 unstable [armel])
463c8d80 286Inst libc6-dev:amd64 (1.0 unstable [amd64])
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])
234675b7 292Conf libc6 (1.0 unstable [armel])
463c8d80 293Conf libc6:amd64 (1.0 unstable [amd64])
737c7a7b 294Conf libc6-dev (1.0 unstable [armel])
463c8d80 295Conf libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b 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