]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-612099-multiarch-conflicts
ignore std::locale exeception on non-existent "" locale
[apt.git] / test / integration / test-bug-612099-multiarch-conflicts
CommitLineData
6a910c9d
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6a910c9d 6setupenvironment
ea65d079 7configarchitecture 'i386' 'amd64'
6a910c9d
DK
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
0440d936 18testsuccess aptget install libc6:i386 -t stable -y
53ea1b56 19testdpkginstalled libc6:i386
25b86db1 20testsuccessequal 'Reading package lists...
6a910c9d
DK
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
25b86db1 32testsuccessequal 'Reading package lists...
6a910c9d
DK
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
25b86db1 41testsuccessequal 'Reading package lists...
6a910c9d
DK
42Building dependency tree...
43Reading state information...
e7ebb414 44The following additional packages will be installed:
6a910c9d
DK
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
87d6947d 57testsuccessequal "Reading package lists...
6a910c9d
DK
58Building dependency tree...
59Reading state information...
87d6947d 60Selected version '1.0' (stable [i386]) for 'foobar'
6a910c9d 61The following NEW packages will be installed:
28166356
DK
62 foobar
63The following packages will be upgraded:
64 libc6
651 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
ca238ede 66Inst libc6 [1.0] (2.0 testing [all])
6a910c9d 67Inst foobar (1.0 stable [i386])
ca238ede 68Conf libc6 (2.0 testing [all])
87d6947d 69Conf foobar (1.0 stable [i386])" aptget install foobar/stable libc6 -st testing
6a910c9d 70
25b86db1 71testsuccessequal 'Reading package lists...
6a910c9d
DK
72Building dependency tree...
73Reading state information...
2a884c61 74Calculating upgrade...
28166356 75The following packages will be upgraded:
6a910c9d 76 libc6
28166356 771 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ca238ede
DK
78Inst libc6 [1.0] (2.0 testing [all])
79Conf libc6 (2.0 testing [all])' aptget upgrade -t testing -s
53ea1b56
DK
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:
7a2690a3 83#aptget upgrade -y -qq >/dev/null 2>&1
0440d936
DK
84testsuccess aptget purge libc6 -y
85testsuccess aptget install libc6:i386 -y
53ea1b56 86testdpkginstalled libc6:all
6a910c9d 87
87d6947d 88testsuccessequal "Reading package lists...
6a910c9d
DK
89Building dependency tree...
90Reading state information...
87d6947d 91Selected version '1.0' (stable [i386]) for 'foobar'
6a910c9d
DK
92The following NEW packages will be installed:
93 foobar
940 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
28166356 95Inst foobar (1.0 stable [i386])
87d6947d 96Conf foobar (1.0 stable [i386])" aptget install foobar/stable -st testing
6a910c9d 97
87d6947d 98testsuccessequal "Reading package lists...
6a910c9d
DK
99Building dependency tree...
100Reading state information...
87d6947d 101Selected version '1.0' (stable [amd64]) for 'foobar:amd64'
e7ebb414 102The following additional packages will be installed:
28166356
DK
103 libc6:amd64
104The following packages will be REMOVED:
105 libc6
6a910c9d 106The following NEW packages will be installed:
28166356
DK
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])
6a910c9d 111Inst foobar:amd64 (1.0 stable [amd64])
28166356 112Conf libc6:amd64 (1.0 stable [amd64])
87d6947d 113Conf foobar:amd64 (1.0 stable [amd64])" aptget install foobar:amd64/stable -st testing
6a910c9d
DK
114
115
25b86db1 116testsuccessequal "Reading package lists...
6a910c9d
DK
117Building dependency tree...
118Reading state information...
119Selected version '1.0' (stable [i386]) for 'libc6'
28166356 120The following packages will be DOWNGRADED:
6a910c9d 121 libc6
28166356
DK
1220 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
123Inst libc6 [2.0] (1.0 stable [i386])
87d6947d 124Conf libc6 (1.0 stable [i386])" aptget install libc6/stable -s
6a910c9d
DK
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
0440d936 136testsuccess aptget install libc6-same:i386 -t stable -y
53ea1b56 137testdpkginstalled libc6-same:i386
6a910c9d 138
25b86db1 139testsuccessequal 'Reading package lists...
6a910c9d
DK
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
25b86db1 148testsuccessequal 'Reading package lists...
6a910c9d
DK
149Building dependency tree...
150Reading state information...
e7ebb414 151The following additional packages will be installed:
6a910c9d
DK
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
25b86db1 161testsuccessequal 'Reading package lists...
6a910c9d
DK
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
25b86db1 172testsuccessequal 'Reading package lists...
6a910c9d
DK
173Building dependency tree...
174Reading state information...
2a884c61 175Calculating upgrade...
28166356 176The following packages will be upgraded:
6a910c9d 177 libc6-same
28166356 1781 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ca238ede
DK
179Inst libc6-same [1.0] (2.0 testing [all])
180Conf libc6-same (2.0 testing [all])' aptget upgrade -t testing -s
53ea1b56
DK
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:
7a2690a3 184#aptget upgrade -y -qq >/dev/null 2>&1
0440d936
DK
185testsuccess aptget purge libc6-same -y
186testsuccess aptget install libc6-same:i386 -y
53ea1b56
DK
187testdpkginstalled libc6-same:all
188
6a910c9d 189
25b86db1 190testsuccessequal "Reading package lists...
6a910c9d
DK
191Building dependency tree...
192Reading state information...
193Selected version '1.0' (stable [i386]) for 'libc6-same'
28166356 194The following packages will be DOWNGRADED:
6a910c9d 195 libc6-same
28166356
DK
1960 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
197Inst libc6-same [2.0] (1.0 stable [i386])
87d6947d 198Conf libc6-same (1.0 stable [i386])" aptget install libc6-same/stable -s
6a910c9d 199
87d6947d 200testsuccessequal "Reading package lists...
6a910c9d
DK
201Building dependency tree...
202Reading state information...
87d6947d 203Selected version '1.0' (stable [i386]) for 'foobar-same'
6a910c9d
DK
204The following NEW packages will be installed:
205 foobar-same
2060 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
28166356 207Inst foobar-same (1.0 stable [i386])
87d6947d 208Conf foobar-same (1.0 stable [i386])" aptget install foobar-same/stable -st testing
6a910c9d 209
87d6947d 210testsuccessequal "Reading package lists...
6a910c9d
DK
211Building dependency tree...
212Reading state information...
87d6947d 213Selected version '1.0' (stable [amd64]) for 'foobar-same:amd64'
e7ebb414 214The following additional packages will be installed:
28166356
DK
215 libc6-same:amd64
216The following packages will be REMOVED:
217 libc6-same
6a910c9d 218The following NEW packages will be installed:
28166356
DK
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])
6a910c9d 223Inst foobar-same:amd64 (1.0 stable [amd64])
28166356 224Conf libc6-same:amd64 (1.0 stable [amd64])
87d6947d 225Conf foobar-same:amd64 (1.0 stable [amd64])" aptget install foobar-same:amd64/stable -st testing