]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-612099-multiarch-conflicts
merged lp:~donkult/apt/sid
[apt.git] / test / integration / test-bug-612099-multiarch-conflicts
CommitLineData
6a910c9d
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture "i386" "amd64"
8
9buildsimplenativepackage 'peace-dpkg' 'all' '1.0' 'stable'
10
11buildsimplenativepackage 'libc6' 'i386' '1.0' 'stable'
12buildsimplenativepackage 'libc6' 'amd64' '1.0' 'stable'
13buildsimplenativepackage 'libc6' 'all' '2.0' 'testing'
14
15buildsimplenativepackage 'foobar' 'i386' '1.0' 'stable' 'Depends: libc6'
16buildsimplenativepackage 'foobar' 'amd64' '1.0' 'stable' 'Depends: libc6'
17
18setupaptarchive
19
20aptget install peace-dpkg:i386 -y -qq 2>&1 > /dev/null
21testdpkginstalled peace-dpkg
22
23aptget install libc6:i386 -t stable -y -qq 2>&1 > /dev/null
24testdpkginstalled libc6
25testequal 'Reading package lists...
26Building dependency tree...
27Reading state information...
28The following packages will be REMOVED:
29 libc6
30The following NEW packages will be installed:
31 libc6:amd64
320 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
33Remv libc6 [1.0]
34Inst libc6:amd64 (1.0 stable [amd64])
35Conf libc6:amd64 (1.0 stable [amd64])' aptget install libc6:amd64 -s -t stable
36
37testequal 'Reading package lists...
38Building dependency tree...
39Reading state information...
40The following NEW packages will be installed:
41 foobar
420 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
43Inst foobar (1.0 stable [i386])
44Conf foobar (1.0 stable [i386])' aptget install foobar -st stable
45
46testequal 'Reading package lists...
47Building dependency tree...
48Reading state information...
49The following extra packages will be installed:
50 libc6:amd64
51The following packages will be REMOVED:
52 libc6
53The following NEW packages will be installed:
54 foobar:amd64 libc6:amd64
550 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
56Remv libc6 [1.0]
57Inst libc6:amd64 (1.0 stable [amd64])
58Inst foobar:amd64 (1.0 stable [amd64])
59Conf libc6:amd64 (1.0 stable [amd64])
60Conf 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
63testequal 'Reading package lists...
64Building dependency tree...
65Reading state information...
66The following extra packages will be installed:
67 libc6
68The following NEW packages will be installed:
69 foobar libc6
700 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
71Inst libc6 (2.0 testing, testing [all])
72Inst foobar (1.0 stable [i386])
73Conf libc6 (2.0 testing, testing [all])
74Conf 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
77testequal 'Reading package lists...
78Building dependency tree...
79Reading state information...
80The following NEW packages will be installed:
81 libc6
820 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
83Inst libc6 (2.0 testing, testing [all])
84Conf libc6 (2.0 testing, testing [all])' aptget upgrade -t testing -s
85aptget upgrade -y -qq 2>&1 > /dev/null
86testdpkginstalled libc6
87
88testequal 'Reading package lists...
89Building dependency tree...
90Reading state information...
91The following NEW packages will be installed:
92 foobar
930 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
94Inst foobar (1.0 stable [i386]) []
95Conf foobar (1.0 stable [i386])' aptget install foobar/stable -st testing
96
97testequal 'Reading package lists...
98Building dependency tree...
99Reading state information...
100The following NEW packages will be installed:
101 foobar:amd64
1020 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
103Inst foobar:amd64 (1.0 stable [amd64])
104Conf 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
108testequal "Reading package lists...
109Building dependency tree...
110Reading state information...
111Selected version '1.0' (stable [i386]) for 'libc6'
112The following packages will be REMOVED:
113 libc6
114The following NEW packages will be installed:
115 libc6
1160 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
117Remv libc6 [2.0]
118Inst libc6 (1.0 stable [i386])
119Conf libc6 (1.0 stable [i386])" aptget install libc6/stable -s -q=0
120
121
122buildsimplenativepackage 'libc6-same' 'i386' '1.0' 'stable' 'Multi-Arch: same'
123buildsimplenativepackage 'libc6-same' 'amd64' '1.0' 'stable' 'Multi-Arch: same'
124buildsimplenativepackage 'libc6-same' 'all' '2.0' 'testing'
125
126buildsimplenativepackage 'foobar-same' 'i386' '1.0' 'stable' 'Depends: libc6-same'
127buildsimplenativepackage 'foobar-same' 'amd64' '1.0' 'stable' 'Depends: libc6-same'
128
129setupaptarchive
130
131aptget install libc6-same:i386 -t stable -y -qq 2>&1 > /dev/null
132testdpkginstalled libc6-same
133
134testequal 'Reading package lists...
135Building dependency tree...
136Reading state information...
137The following NEW packages will be installed:
138 foobar-same
1390 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
140Inst foobar-same (1.0 stable [i386])
141Conf foobar-same (1.0 stable [i386])' aptget install foobar-same -st stable
142
143testequal 'Reading package lists...
144Building dependency tree...
145Reading state information...
146The following extra packages will be installed:
147 libc6-same:amd64
148The following NEW packages will be installed:
149 foobar-same:amd64 libc6-same:amd64
1500 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
151Inst libc6-same:amd64 (1.0 stable [amd64])
152Inst foobar-same:amd64 (1.0 stable [amd64])
153Conf libc6-same:amd64 (1.0 stable [amd64])
154Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64 -st stable
155
156testequal 'Reading package lists...
157Building dependency tree...
158Reading state information...
159The following NEW packages will be installed:
160 libc6-same:amd64
1610 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
162Inst libc6-same:amd64 (1.0 stable [amd64])
163Conf 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
168testequal 'Reading package lists...
169Building dependency tree...
170Reading state information...
171The following NEW packages will be installed:
172 libc6-same
1730 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
174Inst libc6-same (2.0 testing, testing [all])
175Conf libc6-same (2.0 testing, testing [all])' aptget upgrade -t testing -s
176aptget upgrade -y -qq 2>&1 > /dev/null
177testdpkginstalled libc6-same
178
179# FIXME: the display is a strange (its a downgrade), but the handling itself correct
180testequal "Reading package lists...
181Building dependency tree...
182Reading state information...
183Selected version '1.0' (stable [i386]) for 'libc6-same'
184The following packages will be REMOVED:
185 libc6-same
186The following NEW packages will be installed:
187 libc6-same
1880 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
189Remv libc6-same [2.0]
190Inst libc6-same (1.0 stable [i386])
191Conf libc6-same (1.0 stable [i386])" aptget install libc6-same/stable -s -q=0
192
193testequal 'Reading package lists...
194Building dependency tree...
195Reading state information...
196The following NEW packages will be installed:
197 foobar-same
1980 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
199Inst foobar-same (1.0 stable [i386]) []
200Conf foobar-same (1.0 stable [i386])' aptget install foobar-same/stable -st testing
201
202testequal 'Reading package lists...
203Building dependency tree...
204Reading state information...
205The following NEW packages will be installed:
206 foobar-same:amd64
2070 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
208Inst foobar-same:amd64 (1.0 stable [amd64])
209Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64/stable -st testing