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