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