]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-612099-multiarch-conflicts
merged from debian-sid
[apt.git] / test / integration / test-bug-612099-multiarch-conflicts
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'i386' 'amd64'
8
9 buildsimplenativepackage 'libc6' 'i386' '1.0' 'stable'
10 buildsimplenativepackage 'libc6' 'amd64' '1.0' 'stable'
11 buildsimplenativepackage 'libc6' 'all' '2.0' 'testing'
12
13 buildsimplenativepackage 'foobar' 'i386' '1.0' 'stable' 'Depends: libc6'
14 buildsimplenativepackage 'foobar' 'amd64' '1.0' 'stable' 'Depends: libc6'
15
16 setupaptarchive
17
18 aptget install libc6:i386 -t stable -y -qq 2>&1 > /dev/null
19 testdpkginstalled libc6
20 testequal 'Reading package lists...
21 Building dependency tree...
22 Reading state information...
23 The following packages will be REMOVED:
24 libc6
25 The following NEW packages will be installed:
26 libc6:amd64
27 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
28 Remv libc6 [1.0]
29 Inst libc6:amd64 (1.0 stable [amd64])
30 Conf libc6:amd64 (1.0 stable [amd64])' aptget install libc6:amd64 -s -t stable
31
32 testequal 'Reading package lists...
33 Building dependency tree...
34 Reading state information...
35 The following NEW packages will be installed:
36 foobar
37 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
38 Inst foobar (1.0 stable [i386])
39 Conf foobar (1.0 stable [i386])' aptget install foobar -st stable
40
41 testequal 'Reading package lists...
42 Building dependency tree...
43 Reading state information...
44 The following extra packages will be installed:
45 libc6:amd64
46 The following packages will be REMOVED:
47 libc6
48 The following NEW packages will be installed:
49 foobar:amd64 libc6:amd64
50 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
51 Remv libc6 [1.0]
52 Inst libc6:amd64 (1.0 stable [amd64])
53 Inst foobar:amd64 (1.0 stable [amd64])
54 Conf libc6:amd64 (1.0 stable [amd64])
55 Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64 -st stable
56
57 testequal 'Reading package lists...
58 Building dependency tree...
59 Reading state information...
60 The following NEW packages will be installed:
61 foobar
62 The following packages will be upgraded:
63 libc6
64 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
65 Inst libc6 [1.0] (2.0 testing [all])
66 Inst foobar (1.0 stable [i386])
67 Conf libc6 (2.0 testing [all])
68 Conf foobar (1.0 stable [i386])' aptget install foobar/stable libc6 -st testing
69
70 testequal 'Reading package lists...
71 Building dependency tree...
72 Reading state information...
73 The following packages will be upgraded:
74 libc6
75 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
76 Inst libc6 [1.0] (2.0 testing [all])
77 Conf libc6 (2.0 testing [all])' aptget upgrade -t testing -s
78 aptget upgrade -y -qq 2>&1 > /dev/null
79 testdpkginstalled libc6
80
81 testequal 'Reading package lists...
82 Building dependency tree...
83 Reading state information...
84 The following NEW packages will be installed:
85 foobar
86 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
87 Inst foobar (1.0 stable [i386])
88 Conf foobar (1.0 stable [i386])' aptget install foobar/stable -st testing
89
90 testequal 'Reading package lists...
91 Building dependency tree...
92 Reading state information...
93 The following extra packages will be installed:
94 libc6:amd64
95 The following packages will be REMOVED:
96 libc6
97 The following NEW packages will be installed:
98 foobar:amd64 libc6:amd64
99 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
100 Remv libc6 [2.0]
101 Inst libc6:amd64 (1.0 stable [amd64])
102 Inst foobar:amd64 (1.0 stable [amd64])
103 Conf libc6:amd64 (1.0 stable [amd64])
104 Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64/stable -st testing
105
106
107 testequal "Reading package lists...
108 Building dependency tree...
109 Reading state information...
110 Selected version '1.0' (stable [i386]) for 'libc6'
111 The following packages will be DOWNGRADED:
112 libc6
113 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
114 Inst libc6 [2.0] (1.0 stable [i386])
115 Conf libc6 (1.0 stable [i386])" aptget install libc6/stable -s -q=0
116
117
118 buildsimplenativepackage 'libc6-same' 'i386' '1.0' 'stable' 'Multi-Arch: same'
119 buildsimplenativepackage 'libc6-same' 'amd64' '1.0' 'stable' 'Multi-Arch: same'
120 buildsimplenativepackage 'libc6-same' 'all' '2.0' 'testing'
121
122 buildsimplenativepackage 'foobar-same' 'i386' '1.0' 'stable' 'Depends: libc6-same'
123 buildsimplenativepackage 'foobar-same' 'amd64' '1.0' 'stable' 'Depends: libc6-same'
124
125 setupaptarchive
126
127 aptget install libc6-same:i386 -t stable -y -qq 2>&1 > /dev/null
128 testdpkginstalled libc6-same
129
130 testequal 'Reading package lists...
131 Building dependency tree...
132 Reading state information...
133 The following NEW packages will be installed:
134 foobar-same
135 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
136 Inst foobar-same (1.0 stable [i386])
137 Conf foobar-same (1.0 stable [i386])' aptget install foobar-same -st stable
138
139 testequal 'Reading package lists...
140 Building dependency tree...
141 Reading state information...
142 The following extra packages will be installed:
143 libc6-same:amd64
144 The following NEW packages will be installed:
145 foobar-same:amd64 libc6-same:amd64
146 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
147 Inst libc6-same:amd64 (1.0 stable [amd64])
148 Inst foobar-same:amd64 (1.0 stable [amd64])
149 Conf libc6-same:amd64 (1.0 stable [amd64])
150 Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64 -st stable
151
152 testequal 'Reading package lists...
153 Building dependency tree...
154 Reading state information...
155 The following NEW packages will be installed:
156 libc6-same:amd64
157 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
158 Inst libc6-same:amd64 (1.0 stable [amd64])
159 Conf libc6-same:amd64 (1.0 stable [amd64])' aptget install libc6-same:amd64 -s -t stable
160
161 # FIXME: We should test installing libc6-same:amd64 here, but dpkg doesn't allow it currently
162
163 testequal 'Reading package lists...
164 Building dependency tree...
165 Reading state information...
166 The following packages will be upgraded:
167 libc6-same
168 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
169 Inst libc6-same [1.0] (2.0 testing [all])
170 Conf libc6-same (2.0 testing [all])' aptget upgrade -t testing -s
171 aptget upgrade -y -qq 2>&1 > /dev/null
172 testdpkginstalled libc6-same
173
174 testequal "Reading package lists...
175 Building dependency tree...
176 Reading state information...
177 Selected version '1.0' (stable [i386]) for 'libc6-same'
178 The following packages will be DOWNGRADED:
179 libc6-same
180 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
181 Inst libc6-same [2.0] (1.0 stable [i386])
182 Conf libc6-same (1.0 stable [i386])" aptget install libc6-same/stable -s -q=0
183
184 testequal 'Reading package lists...
185 Building dependency tree...
186 Reading state information...
187 The following NEW packages will be installed:
188 foobar-same
189 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
190 Inst foobar-same (1.0 stable [i386])
191 Conf foobar-same (1.0 stable [i386])' aptget install foobar-same/stable -st testing
192
193 testequal 'Reading package lists...
194 Building dependency tree...
195 Reading state information...
196 The following extra packages will be installed:
197 libc6-same:amd64
198 The following packages will be REMOVED:
199 libc6-same
200 The following NEW packages will be installed:
201 foobar-same:amd64 libc6-same:amd64
202 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
203 Remv libc6-same [2.0]
204 Inst libc6-same:amd64 (1.0 stable [amd64])
205 Inst foobar-same:amd64 (1.0 stable [amd64])
206 Conf libc6-same:amd64 (1.0 stable [amd64])
207 Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64/stable -st testing