]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-632221-cross-dependency-satisfaction
ensure that not --assert-multi-arch supporting dpkg's do not generate
[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'
21
737c7a7b 22insertsource 'unstable' 'apt' 'any' '0.8.15' 'Build-Depends: doxygen, libc6-dev, libc6-dev:native, cool:any, amdboot:amd64, foreigner, libfwibble-dev'
234675b7
DK
23
24setupaptarchive
25
26testequal 'Reading package lists...
27Building dependency tree...
28The following NEW packages will be installed:
737c7a7b
SL
29 amdboot cool doxygen foreigner libc6 libc6-dev libfwibble-dev libfwibble1
300 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
234675b7
DK
31Inst amdboot (1.0 unstable [amd64])
32Inst cool (1.0 unstable [amd64])
33Inst doxygen (1.0 unstable [amd64])
34Inst foreigner (1.0 unstable [amd64])
35Inst libc6 (1.0 unstable [amd64])
36Inst libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
37Inst libfwibble1 (1.0 unstable [amd64])
38Inst libfwibble-dev (1.0 unstable [amd64])
234675b7
DK
39Conf amdboot (1.0 unstable [amd64])
40Conf cool (1.0 unstable [amd64])
41Conf doxygen (1.0 unstable [amd64])
42Conf foreigner (1.0 unstable [amd64])
43Conf libc6 (1.0 unstable [amd64])
737c7a7b
SL
44Conf libc6-dev (1.0 unstable [amd64])
45Conf libfwibble1 (1.0 unstable [amd64])
46Conf libfwibble-dev (1.0 unstable [amd64])' aptget build-dep apt -s
234675b7
DK
47
48testequal 'Reading package lists...
49Building dependency tree...
50The following NEW packages will be installed:
51 amdboot cool doxygen foreigner libc6 libc6:armel libc6-dev libc6-dev:armel
737c7a7b
SL
52 libfwibble-dev:armel libfwibble1:armel
530 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
234675b7
DK
54Inst amdboot (1.0 unstable [amd64])
55Inst cool (1.0 unstable [amd64])
56Inst doxygen (1.0 unstable [amd64])
57Inst foreigner (1.0 unstable [amd64])
234675b7 58Inst libc6 (1.0 unstable [amd64])
30426f48 59Inst libc6:armel (1.0 unstable [armel])
234675b7 60Inst libc6-dev (1.0 unstable [amd64])
30426f48 61Inst libc6-dev:armel (1.0 unstable [armel])
737c7a7b
SL
62Inst libfwibble1:armel (1.0 unstable [armel])
63Inst libfwibble-dev:armel (1.0 unstable [armel])
234675b7
DK
64Conf amdboot (1.0 unstable [amd64])
65Conf cool (1.0 unstable [amd64])
66Conf doxygen (1.0 unstable [amd64])
67Conf foreigner (1.0 unstable [amd64])
68Conf libc6 (1.0 unstable [amd64])
69Conf libc6:armel (1.0 unstable [armel])
70Conf libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
71Conf libc6-dev:armel (1.0 unstable [armel])
72Conf libfwibble1:armel (1.0 unstable [armel])
73Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
234675b7
DK
74
75configarchitecture 'armel' 'amd64'
76
77testequal 'Reading package lists...
78Building dependency tree...
79The following NEW packages will be installed:
737c7a7b
SL
80 amdboot:amd64 cool doxygen foreigner libc6 libc6-dev libfwibble-dev
81 libfwibble1
820 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
234675b7
DK
83Inst amdboot:amd64 (1.0 unstable [amd64])
84Inst cool (1.0 unstable [armel])
85Inst doxygen (1.0 unstable [armel])
86Inst foreigner (1.0 unstable [armel])
87Inst libc6 (1.0 unstable [armel])
88Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
89Inst libfwibble1 (1.0 unstable [armel])
90Inst libfwibble-dev (1.0 unstable [armel])
234675b7
DK
91Conf amdboot:amd64 (1.0 unstable [amd64])
92Conf cool (1.0 unstable [armel])
93Conf doxygen (1.0 unstable [armel])
94Conf foreigner (1.0 unstable [armel])
95Conf libc6 (1.0 unstable [armel])
737c7a7b
SL
96Conf libc6-dev (1.0 unstable [armel])
97Conf libfwibble1 (1.0 unstable [armel])
98Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
234675b7
DK
99
100testequal 'Reading package lists...
101Building dependency tree...
102The following NEW packages will be installed:
103 amdboot:amd64 cool doxygen foreigner libc6:amd64 libc6 libc6-dev:amd64
737c7a7b
SL
104 libc6-dev libfwibble-dev:amd64 libfwibble1:amd64
1050 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
234675b7
DK
106Inst amdboot:amd64 (1.0 unstable [amd64])
107Inst cool (1.0 unstable [armel])
108Inst doxygen (1.0 unstable [armel])
109Inst foreigner (1.0 unstable [armel])
234675b7 110Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 111Inst libc6 (1.0 unstable [armel])
234675b7 112Inst libc6-dev:amd64 (1.0 unstable [amd64])
30426f48 113Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
114Inst libfwibble1:amd64 (1.0 unstable [amd64])
115Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
234675b7
DK
116Conf amdboot:amd64 (1.0 unstable [amd64])
117Conf cool (1.0 unstable [armel])
118Conf doxygen (1.0 unstable [armel])
119Conf foreigner (1.0 unstable [armel])
120Conf libc6:amd64 (1.0 unstable [amd64])
121Conf libc6 (1.0 unstable [armel])
122Conf libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b
SL
123Conf libc6-dev (1.0 unstable [armel])
124Conf libfwibble1:amd64 (1.0 unstable [amd64])
125Conf libfwibble-dev:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64
234675b7
DK
126
127configarchitecture 'amd64' 'armel'
128
129insertinstalledpackage 'cool' 'amd64' '0.5'
130insertinstalledpackage 'foreigner' 'armel' '0.5'
131
132testequal 'Reading package lists...
133Building dependency tree...
134The following NEW packages will be installed:
737c7a7b
SL
135 amdboot doxygen libc6 libc6-dev libfwibble-dev libfwibble1
1360 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
234675b7
DK
137Inst amdboot (1.0 unstable [amd64])
138Inst doxygen (1.0 unstable [amd64])
139Inst libc6 (1.0 unstable [amd64])
140Inst libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
141Inst libfwibble1 (1.0 unstable [amd64])
142Inst libfwibble-dev (1.0 unstable [amd64])
234675b7
DK
143Conf amdboot (1.0 unstable [amd64])
144Conf doxygen (1.0 unstable [amd64])
145Conf libc6 (1.0 unstable [amd64])
737c7a7b
SL
146Conf libc6-dev (1.0 unstable [amd64])
147Conf libfwibble1 (1.0 unstable [amd64])
148Conf libfwibble-dev (1.0 unstable [amd64])' aptget build-dep apt -s
234675b7
DK
149
150testequal 'Reading package lists...
151Building dependency tree...
152The following NEW packages will be installed:
153 amdboot doxygen libc6 libc6:armel libc6-dev libc6-dev:armel
737c7a7b
SL
154 libfwibble-dev:armel libfwibble1:armel
1550 upgraded, 8 newly installed, 0 to remove and 2 not upgraded.
234675b7
DK
156Inst amdboot (1.0 unstable [amd64])
157Inst doxygen (1.0 unstable [amd64])
234675b7 158Inst libc6 (1.0 unstable [amd64])
30426f48 159Inst libc6:armel (1.0 unstable [armel])
234675b7 160Inst libc6-dev (1.0 unstable [amd64])
30426f48 161Inst libc6-dev:armel (1.0 unstable [armel])
737c7a7b
SL
162Inst libfwibble1:armel (1.0 unstable [armel])
163Inst libfwibble-dev:armel (1.0 unstable [armel])
234675b7
DK
164Conf amdboot (1.0 unstable [amd64])
165Conf doxygen (1.0 unstable [amd64])
166Conf libc6 (1.0 unstable [amd64])
167Conf libc6:armel (1.0 unstable [armel])
168Conf libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
169Conf libc6-dev:armel (1.0 unstable [armel])
170Conf libfwibble1:armel (1.0 unstable [armel])
171Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
234675b7
DK
172
173configarchitecture 'armel' 'amd64'
174
175# cool 0.5 is not M-A: allowed, so amd64 is not acceptable
176testequal 'Reading package lists...
177Building dependency tree...
178The following packages will be REMOVED:
179 cool:amd64
180The following NEW packages will be installed:
737c7a7b
SL
181 amdboot:amd64 cool doxygen libc6 libc6-dev libfwibble-dev libfwibble1
1820 upgraded, 7 newly installed, 1 to remove and 1 not upgraded.
234675b7
DK
183Remv cool:amd64 [0.5]
184Inst amdboot:amd64 (1.0 unstable [amd64])
185Inst cool (1.0 unstable [armel])
186Inst doxygen (1.0 unstable [armel])
187Inst libc6 (1.0 unstable [armel])
188Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
189Inst libfwibble1 (1.0 unstable [armel])
190Inst libfwibble-dev (1.0 unstable [armel])
234675b7
DK
191Conf amdboot:amd64 (1.0 unstable [amd64])
192Conf cool (1.0 unstable [armel])
193Conf doxygen (1.0 unstable [armel])
194Conf libc6 (1.0 unstable [armel])
737c7a7b
SL
195Conf libc6-dev (1.0 unstable [armel])
196Conf libfwibble1 (1.0 unstable [armel])
197Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
234675b7
DK
198
199testequal 'Reading package lists...
200Building dependency tree...
201The following NEW packages will be installed:
202 amdboot:amd64 doxygen libc6:amd64 libc6 libc6-dev:amd64 libc6-dev
737c7a7b
SL
203 libfwibble-dev:amd64 libfwibble1:amd64
2040 upgraded, 8 newly installed, 0 to remove and 2 not upgraded.
234675b7
DK
205Inst amdboot:amd64 (1.0 unstable [amd64])
206Inst doxygen (1.0 unstable [armel])
234675b7 207Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 208Inst libc6 (1.0 unstable [armel])
234675b7 209Inst libc6-dev:amd64 (1.0 unstable [amd64])
30426f48 210Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
211Inst libfwibble1:amd64 (1.0 unstable [amd64])
212Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
234675b7
DK
213Conf amdboot:amd64 (1.0 unstable [amd64])
214Conf doxygen (1.0 unstable [armel])
215Conf libc6:amd64 (1.0 unstable [amd64])
216Conf libc6 (1.0 unstable [armel])
217Conf libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b
SL
218Conf libc6-dev (1.0 unstable [armel])
219Conf libfwibble1:amd64 (1.0 unstable [amd64])
220Conf libfwibble-dev:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64
234675b7
DK
221
222