]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-632221-cross-dependency-satisfaction
* cmdline/apt-get.cc:
[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
65f99834 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-arm] | linux-stuff [ linux-any]'
234675b7
DK
25
26setupaptarchive
27
28testequal 'Reading package lists...
29Building dependency tree...
30The following NEW packages will be installed:
737c7a7b 31 amdboot cool doxygen foreigner libc6 libc6-dev libfwibble-dev libfwibble1
65f99834
DK
32 linux-stuff
330 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
234675b7
DK
34Inst amdboot (1.0 unstable [amd64])
35Inst cool (1.0 unstable [amd64])
36Inst doxygen (1.0 unstable [amd64])
37Inst foreigner (1.0 unstable [amd64])
38Inst libc6 (1.0 unstable [amd64])
39Inst libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
40Inst libfwibble1 (1.0 unstable [amd64])
41Inst libfwibble-dev (1.0 unstable [amd64])
65f99834 42Inst linux-stuff (1.0 unstable [amd64])
234675b7
DK
43Conf amdboot (1.0 unstable [amd64])
44Conf cool (1.0 unstable [amd64])
45Conf doxygen (1.0 unstable [amd64])
46Conf foreigner (1.0 unstable [amd64])
47Conf libc6 (1.0 unstable [amd64])
737c7a7b
SL
48Conf libc6-dev (1.0 unstable [amd64])
49Conf libfwibble1 (1.0 unstable [amd64])
65f99834
DK
50Conf libfwibble-dev (1.0 unstable [amd64])
51Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
234675b7
DK
52
53testequal 'Reading package lists...
54Building dependency tree...
55The following NEW packages will be installed:
65f99834
DK
56 amdboot arm-stuff:armel cool doxygen foreigner libc6 libc6:armel libc6-dev
57 libc6-dev:armel libfwibble-dev:armel libfwibble1:armel
580 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
234675b7 59Inst amdboot (1.0 unstable [amd64])
65f99834 60Inst arm-stuff:armel (1.0 unstable [armel])
234675b7
DK
61Inst cool (1.0 unstable [amd64])
62Inst doxygen (1.0 unstable [amd64])
63Inst foreigner (1.0 unstable [amd64])
234675b7 64Inst libc6 (1.0 unstable [amd64])
30426f48 65Inst libc6:armel (1.0 unstable [armel])
234675b7 66Inst libc6-dev (1.0 unstable [amd64])
30426f48 67Inst libc6-dev:armel (1.0 unstable [armel])
737c7a7b
SL
68Inst libfwibble1:armel (1.0 unstable [armel])
69Inst libfwibble-dev:armel (1.0 unstable [armel])
234675b7 70Conf amdboot (1.0 unstable [amd64])
65f99834 71Conf arm-stuff:armel (1.0 unstable [armel])
234675b7
DK
72Conf cool (1.0 unstable [amd64])
73Conf doxygen (1.0 unstable [amd64])
74Conf foreigner (1.0 unstable [amd64])
75Conf libc6 (1.0 unstable [amd64])
76Conf libc6:armel (1.0 unstable [armel])
77Conf libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
78Conf libc6-dev:armel (1.0 unstable [armel])
79Conf libfwibble1:armel (1.0 unstable [armel])
80Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
234675b7
DK
81
82configarchitecture 'armel' 'amd64'
83
84testequal 'Reading package lists...
85Building dependency tree...
86The following NEW packages will be installed:
65f99834
DK
87 amdboot:amd64 arm-stuff cool doxygen foreigner libc6 libc6-dev
88 libfwibble-dev libfwibble1
890 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
234675b7 90Inst amdboot:amd64 (1.0 unstable [amd64])
65f99834 91Inst arm-stuff (1.0 unstable [armel])
234675b7
DK
92Inst cool (1.0 unstable [armel])
93Inst doxygen (1.0 unstable [armel])
94Inst foreigner (1.0 unstable [armel])
95Inst libc6 (1.0 unstable [armel])
96Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
97Inst libfwibble1 (1.0 unstable [armel])
98Inst libfwibble-dev (1.0 unstable [armel])
234675b7 99Conf amdboot:amd64 (1.0 unstable [amd64])
65f99834 100Conf arm-stuff (1.0 unstable [armel])
234675b7
DK
101Conf cool (1.0 unstable [armel])
102Conf doxygen (1.0 unstable [armel])
103Conf foreigner (1.0 unstable [armel])
104Conf libc6 (1.0 unstable [armel])
737c7a7b
SL
105Conf libc6-dev (1.0 unstable [armel])
106Conf libfwibble1 (1.0 unstable [armel])
107Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
234675b7
DK
108
109testequal 'Reading package lists...
110Building dependency tree...
111The following NEW packages will be installed:
112 amdboot:amd64 cool doxygen foreigner libc6:amd64 libc6 libc6-dev:amd64
65f99834
DK
113 libc6-dev libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
1140 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
234675b7
DK
115Inst amdboot:amd64 (1.0 unstable [amd64])
116Inst cool (1.0 unstable [armel])
117Inst doxygen (1.0 unstable [armel])
118Inst foreigner (1.0 unstable [armel])
234675b7 119Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 120Inst libc6 (1.0 unstable [armel])
234675b7 121Inst libc6-dev:amd64 (1.0 unstable [amd64])
30426f48 122Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
123Inst libfwibble1:amd64 (1.0 unstable [amd64])
124Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
65f99834 125Inst linux-stuff:amd64 (1.0 unstable [amd64])
234675b7
DK
126Conf amdboot:amd64 (1.0 unstable [amd64])
127Conf cool (1.0 unstable [armel])
128Conf doxygen (1.0 unstable [armel])
129Conf foreigner (1.0 unstable [armel])
130Conf libc6:amd64 (1.0 unstable [amd64])
131Conf libc6 (1.0 unstable [armel])
132Conf libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b
SL
133Conf libc6-dev (1.0 unstable [armel])
134Conf libfwibble1:amd64 (1.0 unstable [amd64])
65f99834
DK
135Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
136Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64
234675b7
DK
137
138configarchitecture 'amd64' 'armel'
139
140insertinstalledpackage 'cool' 'amd64' '0.5'
141insertinstalledpackage 'foreigner' 'armel' '0.5'
142
143testequal 'Reading package lists...
144Building dependency tree...
145The following NEW packages will be installed:
65f99834
DK
146 amdboot doxygen libc6 libc6-dev libfwibble-dev libfwibble1 linux-stuff
1470 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
234675b7
DK
148Inst amdboot (1.0 unstable [amd64])
149Inst doxygen (1.0 unstable [amd64])
150Inst libc6 (1.0 unstable [amd64])
151Inst libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
152Inst libfwibble1 (1.0 unstable [amd64])
153Inst libfwibble-dev (1.0 unstable [amd64])
65f99834 154Inst linux-stuff (1.0 unstable [amd64])
234675b7
DK
155Conf amdboot (1.0 unstable [amd64])
156Conf doxygen (1.0 unstable [amd64])
157Conf libc6 (1.0 unstable [amd64])
737c7a7b
SL
158Conf libc6-dev (1.0 unstable [amd64])
159Conf libfwibble1 (1.0 unstable [amd64])
65f99834
DK
160Conf libfwibble-dev (1.0 unstable [amd64])
161Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
234675b7
DK
162
163testequal 'Reading package lists...
164Building dependency tree...
165The following NEW packages will be installed:
65f99834 166 amdboot arm-stuff:armel doxygen libc6 libc6:armel libc6-dev libc6-dev:armel
737c7a7b 167 libfwibble-dev:armel libfwibble1:armel
65f99834 1680 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
234675b7 169Inst amdboot (1.0 unstable [amd64])
65f99834 170Inst arm-stuff:armel (1.0 unstable [armel])
234675b7 171Inst doxygen (1.0 unstable [amd64])
234675b7 172Inst libc6 (1.0 unstable [amd64])
30426f48 173Inst libc6:armel (1.0 unstable [armel])
234675b7 174Inst libc6-dev (1.0 unstable [amd64])
30426f48 175Inst libc6-dev:armel (1.0 unstable [armel])
737c7a7b
SL
176Inst libfwibble1:armel (1.0 unstable [armel])
177Inst libfwibble-dev:armel (1.0 unstable [armel])
234675b7 178Conf amdboot (1.0 unstable [amd64])
65f99834 179Conf arm-stuff:armel (1.0 unstable [armel])
234675b7
DK
180Conf doxygen (1.0 unstable [amd64])
181Conf libc6 (1.0 unstable [amd64])
182Conf libc6:armel (1.0 unstable [armel])
183Conf libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
184Conf libc6-dev:armel (1.0 unstable [armel])
185Conf libfwibble1:armel (1.0 unstable [armel])
186Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
234675b7
DK
187
188configarchitecture 'armel' 'amd64'
189
190# cool 0.5 is not M-A: allowed, so amd64 is not acceptable
191testequal 'Reading package lists...
192Building dependency tree...
193The following packages will be REMOVED:
194 cool:amd64
195The following NEW packages will be installed:
65f99834
DK
196 amdboot:amd64 arm-stuff cool doxygen libc6 libc6-dev libfwibble-dev
197 libfwibble1
1980 upgraded, 8 newly installed, 1 to remove and 1 not upgraded.
234675b7
DK
199Remv cool:amd64 [0.5]
200Inst amdboot:amd64 (1.0 unstable [amd64])
65f99834 201Inst arm-stuff (1.0 unstable [armel])
234675b7
DK
202Inst cool (1.0 unstable [armel])
203Inst doxygen (1.0 unstable [armel])
204Inst libc6 (1.0 unstable [armel])
205Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
206Inst libfwibble1 (1.0 unstable [armel])
207Inst libfwibble-dev (1.0 unstable [armel])
234675b7 208Conf amdboot:amd64 (1.0 unstable [amd64])
65f99834 209Conf arm-stuff (1.0 unstable [armel])
234675b7
DK
210Conf cool (1.0 unstable [armel])
211Conf doxygen (1.0 unstable [armel])
212Conf libc6 (1.0 unstable [armel])
737c7a7b
SL
213Conf libc6-dev (1.0 unstable [armel])
214Conf libfwibble1 (1.0 unstable [armel])
215Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
234675b7
DK
216
217testequal 'Reading package lists...
218Building dependency tree...
219The following NEW packages will be installed:
220 amdboot:amd64 doxygen libc6:amd64 libc6 libc6-dev:amd64 libc6-dev
65f99834
DK
221 libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
2220 upgraded, 9 newly installed, 0 to remove and 2 not upgraded.
234675b7
DK
223Inst amdboot:amd64 (1.0 unstable [amd64])
224Inst doxygen (1.0 unstable [armel])
234675b7 225Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 226Inst libc6 (1.0 unstable [armel])
234675b7 227Inst libc6-dev:amd64 (1.0 unstable [amd64])
30426f48 228Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
229Inst libfwibble1:amd64 (1.0 unstable [amd64])
230Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
65f99834 231Inst linux-stuff:amd64 (1.0 unstable [amd64])
234675b7
DK
232Conf amdboot:amd64 (1.0 unstable [amd64])
233Conf doxygen (1.0 unstable [armel])
234Conf libc6:amd64 (1.0 unstable [amd64])
235Conf libc6 (1.0 unstable [armel])
236Conf libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b
SL
237Conf libc6-dev (1.0 unstable [armel])
238Conf libfwibble1:amd64 (1.0 unstable [amd64])
65f99834
DK
239Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
240Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64