M-A:same lockstep unpack should operate on installed
[ntk/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
9insertinstalledpackage 'build-essential' 'all' '11.5'
10
11insertpackage 'unstable' 'doxygen' 'amd64,armel' '1.0'
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' 'cool' 'amd64,armel' '1.0' 'Multi-Arch: allowed'
16insertpackage 'unstable' 'amdboot' 'amd64' '1.0'
17insertpackage 'unstable' 'foreigner' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
18
19insertsource 'unstable' 'apt' 'any' '0.8.15' 'Build-Depends: doxygen, libc6-dev, libc6-dev:native, cool:any, amdboot:amd64, foreigner'
20
21setupaptarchive
22
23testequal 'Reading package lists...
24Building dependency tree...
25The following NEW packages will be installed:
26 amdboot cool doxygen foreigner libc6 libc6-dev
270 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
28Inst amdboot (1.0 unstable [amd64])
29Inst cool (1.0 unstable [amd64])
30Inst doxygen (1.0 unstable [amd64])
31Inst foreigner (1.0 unstable [amd64])
32Inst libc6 (1.0 unstable [amd64])
33Inst libc6-dev (1.0 unstable [amd64])
34Conf amdboot (1.0 unstable [amd64])
35Conf cool (1.0 unstable [amd64])
36Conf doxygen (1.0 unstable [amd64])
37Conf foreigner (1.0 unstable [amd64])
38Conf libc6 (1.0 unstable [amd64])
39Conf libc6-dev (1.0 unstable [amd64])' aptget build-dep apt -s
40
41testequal 'Reading package lists...
42Building dependency tree...
43The following NEW packages will be installed:
44 amdboot cool doxygen foreigner libc6 libc6:armel libc6-dev libc6-dev:armel
450 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
46Inst amdboot (1.0 unstable [amd64])
47Inst cool (1.0 unstable [amd64])
48Inst doxygen (1.0 unstable [amd64])
49Inst foreigner (1.0 unstable [amd64])
234675b7 50Inst libc6 (1.0 unstable [amd64])
30426f48 51Inst libc6:armel (1.0 unstable [armel])
234675b7 52Inst libc6-dev (1.0 unstable [amd64])
30426f48 53Inst libc6-dev:armel (1.0 unstable [armel])
234675b7
DK
54Conf amdboot (1.0 unstable [amd64])
55Conf cool (1.0 unstable [amd64])
56Conf doxygen (1.0 unstable [amd64])
57Conf foreigner (1.0 unstable [amd64])
58Conf libc6 (1.0 unstable [amd64])
59Conf libc6:armel (1.0 unstable [armel])
60Conf libc6-dev (1.0 unstable [amd64])
61Conf libc6-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
62
63configarchitecture 'armel' 'amd64'
64
65testequal 'Reading package lists...
66Building dependency tree...
67The following NEW packages will be installed:
68 amdboot:amd64 cool doxygen foreigner libc6 libc6-dev
690 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
70Inst amdboot:amd64 (1.0 unstable [amd64])
71Inst cool (1.0 unstable [armel])
72Inst doxygen (1.0 unstable [armel])
73Inst foreigner (1.0 unstable [armel])
74Inst libc6 (1.0 unstable [armel])
75Inst libc6-dev (1.0 unstable [armel])
76Conf amdboot:amd64 (1.0 unstable [amd64])
77Conf cool (1.0 unstable [armel])
78Conf doxygen (1.0 unstable [armel])
79Conf foreigner (1.0 unstable [armel])
80Conf libc6 (1.0 unstable [armel])
81Conf libc6-dev (1.0 unstable [armel])' aptget build-dep apt -s
82
83testequal 'Reading package lists...
84Building dependency tree...
85The following NEW packages will be installed:
86 amdboot:amd64 cool doxygen foreigner libc6:amd64 libc6 libc6-dev:amd64
87 libc6-dev
880 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
89Inst amdboot:amd64 (1.0 unstable [amd64])
90Inst cool (1.0 unstable [armel])
91Inst doxygen (1.0 unstable [armel])
92Inst foreigner (1.0 unstable [armel])
234675b7 93Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 94Inst libc6 (1.0 unstable [armel])
234675b7 95Inst libc6-dev:amd64 (1.0 unstable [amd64])
30426f48 96Inst libc6-dev (1.0 unstable [armel])
234675b7
DK
97Conf amdboot:amd64 (1.0 unstable [amd64])
98Conf cool (1.0 unstable [armel])
99Conf doxygen (1.0 unstable [armel])
100Conf foreigner (1.0 unstable [armel])
101Conf libc6:amd64 (1.0 unstable [amd64])
102Conf libc6 (1.0 unstable [armel])
103Conf libc6-dev:amd64 (1.0 unstable [amd64])
104Conf libc6-dev (1.0 unstable [armel])' aptget build-dep apt -s -a amd64
105
106configarchitecture 'amd64' 'armel'
107
108insertinstalledpackage 'cool' 'amd64' '0.5'
109insertinstalledpackage 'foreigner' 'armel' '0.5'
110
111testequal 'Reading package lists...
112Building dependency tree...
113The following NEW packages will be installed:
114 amdboot doxygen libc6 libc6-dev
1150 upgraded, 4 newly installed, 0 to remove and 2 not upgraded.
116Inst amdboot (1.0 unstable [amd64])
117Inst doxygen (1.0 unstable [amd64])
118Inst libc6 (1.0 unstable [amd64])
119Inst libc6-dev (1.0 unstable [amd64])
120Conf amdboot (1.0 unstable [amd64])
121Conf doxygen (1.0 unstable [amd64])
122Conf libc6 (1.0 unstable [amd64])
123Conf libc6-dev (1.0 unstable [amd64])' aptget build-dep apt -s
124
125testequal 'Reading package lists...
126Building dependency tree...
127The following NEW packages will be installed:
128 amdboot doxygen libc6 libc6:armel libc6-dev libc6-dev:armel
1290 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
130Inst amdboot (1.0 unstable [amd64])
131Inst doxygen (1.0 unstable [amd64])
234675b7 132Inst libc6 (1.0 unstable [amd64])
30426f48 133Inst libc6:armel (1.0 unstable [armel])
234675b7 134Inst libc6-dev (1.0 unstable [amd64])
30426f48 135Inst libc6-dev:armel (1.0 unstable [armel])
234675b7
DK
136Conf amdboot (1.0 unstable [amd64])
137Conf doxygen (1.0 unstable [amd64])
138Conf libc6 (1.0 unstable [amd64])
139Conf libc6:armel (1.0 unstable [armel])
140Conf libc6-dev (1.0 unstable [amd64])
141Conf libc6-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
142
143configarchitecture 'armel' 'amd64'
144
145# cool 0.5 is not M-A: allowed, so amd64 is not acceptable
146testequal 'Reading package lists...
147Building dependency tree...
148The following packages will be REMOVED:
149 cool:amd64
150The following NEW packages will be installed:
151 amdboot:amd64 cool doxygen libc6 libc6-dev
1520 upgraded, 5 newly installed, 1 to remove and 1 not upgraded.
153Remv cool:amd64 [0.5]
154Inst amdboot:amd64 (1.0 unstable [amd64])
155Inst cool (1.0 unstable [armel])
156Inst doxygen (1.0 unstable [armel])
157Inst libc6 (1.0 unstable [armel])
158Inst libc6-dev (1.0 unstable [armel])
159Conf amdboot:amd64 (1.0 unstable [amd64])
160Conf cool (1.0 unstable [armel])
161Conf doxygen (1.0 unstable [armel])
162Conf libc6 (1.0 unstable [armel])
163Conf libc6-dev (1.0 unstable [armel])' aptget build-dep apt -s
164
165testequal 'Reading package lists...
166Building dependency tree...
167The following NEW packages will be installed:
168 amdboot:amd64 doxygen libc6:amd64 libc6 libc6-dev:amd64 libc6-dev
1690 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
170Inst amdboot:amd64 (1.0 unstable [amd64])
171Inst doxygen (1.0 unstable [armel])
234675b7 172Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 173Inst libc6 (1.0 unstable [armel])
234675b7 174Inst libc6-dev:amd64 (1.0 unstable [amd64])
30426f48 175Inst libc6-dev (1.0 unstable [armel])
234675b7
DK
176Conf amdboot:amd64 (1.0 unstable [amd64])
177Conf doxygen (1.0 unstable [armel])
178Conf libc6:amd64 (1.0 unstable [amd64])
179Conf libc6 (1.0 unstable [armel])
180Conf libc6-dev:amd64 (1.0 unstable [amd64])
181Conf libc6-dev (1.0 unstable [armel])' aptget build-dep apt -s -a amd64
182
183