]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-612099-multiarch-conflicts
don't ask server if we have entire file in partial/
[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
20testsuccessequal '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
32testsuccessequal '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
41testsuccessequal 'Reading package lists...
42Building dependency tree...
43Reading state information...
44The following additional 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
57testsuccessequal "Reading package lists...
58Building dependency tree...
59Reading state information...
60Selected version '1.0' (stable [i386]) for 'foobar'
61The following NEW packages will be installed:
62 foobar
63The following packages will be upgraded:
64 libc6
651 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
66Inst libc6 [1.0] (2.0 testing [all])
67Inst foobar (1.0 stable [i386])
68Conf libc6 (2.0 testing [all])
69Conf foobar (1.0 stable [i386])" aptget install foobar/stable libc6 -st testing
70
71testsuccessequal 'Reading package lists...
72Building dependency tree...
73Reading state information...
74Calculating upgrade...
75The following packages will be upgraded:
76 libc6
771 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
78Inst libc6 [1.0] (2.0 testing [all])
79Conf libc6 (2.0 testing [all])' aptget upgrade -t testing -s
80# FIXME: on amd64 systems this test wouldn't run with a real upgrade
81# as APT (here i386) disagree about the native architecture, so
82# we fake it here:
83#aptget upgrade -y -qq >/dev/null 2>&1
84testsuccess aptget purge libc6 -y
85testsuccess aptget install libc6:i386 -y
86testdpkginstalled libc6:all
87
88testsuccessequal "Reading package lists...
89Building dependency tree...
90Reading state information...
91Selected version '1.0' (stable [i386]) for 'foobar'
92The following NEW packages will be installed:
93 foobar
940 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
95Inst foobar (1.0 stable [i386])
96Conf foobar (1.0 stable [i386])" aptget install foobar/stable -st testing
97
98testsuccessequal "Reading package lists...
99Building dependency tree...
100Reading state information...
101Selected version '1.0' (stable [amd64]) for 'foobar:amd64'
102The following additional packages will be installed:
103 libc6:amd64
104The following packages will be REMOVED:
105 libc6
106The following NEW packages will be installed:
107 foobar:amd64 libc6:amd64
1080 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
109Remv libc6 [2.0]
110Inst libc6:amd64 (1.0 stable [amd64])
111Inst foobar:amd64 (1.0 stable [amd64])
112Conf libc6:amd64 (1.0 stable [amd64])
113Conf foobar:amd64 (1.0 stable [amd64])" aptget install foobar:amd64/stable -st testing
114
115
116testsuccessequal "Reading package lists...
117Building dependency tree...
118Reading state information...
119Selected version '1.0' (stable [i386]) for 'libc6'
120The following packages will be DOWNGRADED:
121 libc6
1220 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
123Inst libc6 [2.0] (1.0 stable [i386])
124Conf libc6 (1.0 stable [i386])" aptget install libc6/stable -s
125
126
127buildsimplenativepackage 'libc6-same' 'i386' '1.0' 'stable' 'Multi-Arch: same'
128buildsimplenativepackage 'libc6-same' 'amd64' '1.0' 'stable' 'Multi-Arch: same'
129buildsimplenativepackage 'libc6-same' 'all' '2.0' 'testing'
130
131buildsimplenativepackage 'foobar-same' 'i386' '1.0' 'stable' 'Depends: libc6-same'
132buildsimplenativepackage 'foobar-same' 'amd64' '1.0' 'stable' 'Depends: libc6-same'
133
134setupaptarchive
135
136testsuccess aptget install libc6-same:i386 -t stable -y
137testdpkginstalled libc6-same:i386
138
139testsuccessequal 'Reading package lists...
140Building dependency tree...
141Reading state information...
142The following NEW packages will be installed:
143 foobar-same
1440 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
145Inst foobar-same (1.0 stable [i386])
146Conf foobar-same (1.0 stable [i386])' aptget install foobar-same -st stable
147
148testsuccessequal 'Reading package lists...
149Building dependency tree...
150Reading state information...
151The following additional packages will be installed:
152 libc6-same:amd64
153The following NEW packages will be installed:
154 foobar-same:amd64 libc6-same:amd64
1550 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
156Inst libc6-same:amd64 (1.0 stable [amd64])
157Inst foobar-same:amd64 (1.0 stable [amd64])
158Conf libc6-same:amd64 (1.0 stable [amd64])
159Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64 -st stable
160
161testsuccessequal 'Reading package lists...
162Building dependency tree...
163Reading state information...
164The following NEW packages will be installed:
165 libc6-same:amd64
1660 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
167Inst libc6-same:amd64 (1.0 stable [amd64])
168Conf libc6-same:amd64 (1.0 stable [amd64])' aptget install libc6-same:amd64 -s -t stable
169
170# FIXME: We should test installing libc6-same:amd64 here, but dpkg doesn't allow it currently
171
172testsuccessequal 'Reading package lists...
173Building dependency tree...
174Reading state information...
175Calculating upgrade...
176The following packages will be upgraded:
177 libc6-same
1781 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
179Inst libc6-same [1.0] (2.0 testing [all])
180Conf libc6-same (2.0 testing [all])' aptget upgrade -t testing -s
181# FIXME: on amd64 systems this test wouldn't run with a real upgrade
182# as APT (here i386) disagree about the native architecture, so
183# we fake it here:
184#aptget upgrade -y -qq >/dev/null 2>&1
185testsuccess aptget purge libc6-same -y
186testsuccess aptget install libc6-same:i386 -y
187testdpkginstalled libc6-same:all
188
189
190testsuccessequal "Reading package lists...
191Building dependency tree...
192Reading state information...
193Selected version '1.0' (stable [i386]) for 'libc6-same'
194The following packages will be DOWNGRADED:
195 libc6-same
1960 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
197Inst libc6-same [2.0] (1.0 stable [i386])
198Conf libc6-same (1.0 stable [i386])" aptget install libc6-same/stable -s
199
200testsuccessequal "Reading package lists...
201Building dependency tree...
202Reading state information...
203Selected version '1.0' (stable [i386]) for 'foobar-same'
204The following NEW packages will be installed:
205 foobar-same
2060 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
207Inst foobar-same (1.0 stable [i386])
208Conf foobar-same (1.0 stable [i386])" aptget install foobar-same/stable -st testing
209
210testsuccessequal "Reading package lists...
211Building dependency tree...
212Reading state information...
213Selected version '1.0' (stable [amd64]) for 'foobar-same:amd64'
214The following additional packages will be installed:
215 libc6-same:amd64
216The following packages will be REMOVED:
217 libc6-same
218The following NEW packages will be installed:
219 foobar-same:amd64 libc6-same:amd64
2200 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
221Remv libc6-same [2.0]
222Inst libc6-same:amd64 (1.0 stable [amd64])
223Inst foobar-same:amd64 (1.0 stable [amd64])
224Conf libc6-same:amd64 (1.0 stable [amd64])
225Conf foobar-same:amd64 (1.0 stable [amd64])" aptget install foobar-same:amd64/stable -st testing