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