]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-612099-multiarch-conflicts
be able to set priorities for created test packages
[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
6a910c9d
DK
62testequal 'Reading package lists...
63Building dependency tree...
64Reading state information...
6a910c9d 65The following NEW packages will be installed:
28166356
DK
66 foobar
67The following packages will be upgraded:
68 libc6
691 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
ca238ede 70Inst libc6 [1.0] (2.0 testing [all])
6a910c9d 71Inst foobar (1.0 stable [i386])
ca238ede 72Conf libc6 (2.0 testing [all])
6a910c9d
DK
73Conf foobar (1.0 stable [i386])' aptget install foobar/stable libc6 -st testing
74
6a910c9d
DK
75testequal 'Reading package lists...
76Building dependency tree...
77Reading state information...
28166356 78The following packages will be upgraded:
6a910c9d 79 libc6
28166356 801 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ca238ede
DK
81Inst libc6 [1.0] (2.0 testing [all])
82Conf libc6 (2.0 testing [all])' aptget upgrade -t testing -s
6a910c9d
DK
83aptget upgrade -y -qq 2>&1 > /dev/null
84testdpkginstalled libc6
85
86testequal 'Reading package lists...
87Building dependency tree...
88Reading state information...
89The following NEW packages will be installed:
90 foobar
910 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
28166356 92Inst foobar (1.0 stable [i386])
6a910c9d
DK
93Conf foobar (1.0 stable [i386])' aptget install foobar/stable -st testing
94
95testequal 'Reading package lists...
96Building dependency tree...
97Reading state information...
28166356
DK
98The following extra packages will be installed:
99 libc6:amd64
100The following packages will be REMOVED:
101 libc6
6a910c9d 102The following NEW packages will be installed:
28166356
DK
103 foobar:amd64 libc6:amd64
1040 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
105Remv libc6 [2.0]
106Inst libc6:amd64 (1.0 stable [amd64])
6a910c9d 107Inst foobar:amd64 (1.0 stable [amd64])
28166356 108Conf libc6:amd64 (1.0 stable [amd64])
6a910c9d
DK
109Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64/stable -st testing
110
111
6a910c9d
DK
112testequal "Reading package lists...
113Building dependency tree...
114Reading state information...
115Selected version '1.0' (stable [i386]) for 'libc6'
28166356 116The following packages will be DOWNGRADED:
6a910c9d 117 libc6
28166356
DK
1180 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
119Inst libc6 [2.0] (1.0 stable [i386])
6a910c9d
DK
120Conf libc6 (1.0 stable [i386])" aptget install libc6/stable -s -q=0
121
122
123buildsimplenativepackage 'libc6-same' 'i386' '1.0' 'stable' 'Multi-Arch: same'
124buildsimplenativepackage 'libc6-same' 'amd64' '1.0' 'stable' 'Multi-Arch: same'
125buildsimplenativepackage 'libc6-same' 'all' '2.0' 'testing'
126
127buildsimplenativepackage 'foobar-same' 'i386' '1.0' 'stable' 'Depends: libc6-same'
128buildsimplenativepackage 'foobar-same' 'amd64' '1.0' 'stable' 'Depends: libc6-same'
129
130setupaptarchive
131
132aptget install libc6-same:i386 -t stable -y -qq 2>&1 > /dev/null
133testdpkginstalled libc6-same
134
135testequal 'Reading package lists...
136Building dependency tree...
137Reading state information...
138The following NEW packages will be installed:
139 foobar-same
1400 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
141Inst foobar-same (1.0 stable [i386])
142Conf foobar-same (1.0 stable [i386])' aptget install foobar-same -st stable
143
144testequal 'Reading package lists...
145Building dependency tree...
146Reading state information...
147The following extra packages will be installed:
148 libc6-same:amd64
149The following NEW packages will be installed:
150 foobar-same:amd64 libc6-same:amd64
1510 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
152Inst libc6-same:amd64 (1.0 stable [amd64])
153Inst foobar-same:amd64 (1.0 stable [amd64])
154Conf libc6-same:amd64 (1.0 stable [amd64])
155Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64 -st stable
156
157testequal 'Reading package lists...
158Building dependency tree...
159Reading state information...
160The following NEW packages will be installed:
161 libc6-same:amd64
1620 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
163Inst libc6-same:amd64 (1.0 stable [amd64])
164Conf libc6-same:amd64 (1.0 stable [amd64])' aptget install libc6-same:amd64 -s -t stable
165
166# FIXME: We should test installing libc6-same:amd64 here, but dpkg doesn't allow it currently
167
6a910c9d
DK
168testequal 'Reading package lists...
169Building dependency tree...
170Reading state information...
28166356 171The following packages will be upgraded:
6a910c9d 172 libc6-same
28166356 1731 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ca238ede
DK
174Inst libc6-same [1.0] (2.0 testing [all])
175Conf libc6-same (2.0 testing [all])' aptget upgrade -t testing -s
6a910c9d
DK
176aptget upgrade -y -qq 2>&1 > /dev/null
177testdpkginstalled libc6-same
178
6a910c9d
DK
179testequal "Reading package lists...
180Building dependency tree...
181Reading state information...
182Selected version '1.0' (stable [i386]) for 'libc6-same'
28166356 183The following packages will be DOWNGRADED:
6a910c9d 184 libc6-same
28166356
DK
1850 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
186Inst libc6-same [2.0] (1.0 stable [i386])
6a910c9d
DK
187Conf libc6-same (1.0 stable [i386])" aptget install libc6-same/stable -s -q=0
188
189testequal 'Reading package lists...
190Building dependency tree...
191Reading state information...
192The following NEW packages will be installed:
193 foobar-same
1940 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
28166356 195Inst foobar-same (1.0 stable [i386])
6a910c9d
DK
196Conf foobar-same (1.0 stable [i386])' aptget install foobar-same/stable -st testing
197
198testequal 'Reading package lists...
199Building dependency tree...
200Reading state information...
28166356
DK
201The following extra packages will be installed:
202 libc6-same:amd64
203The following packages will be REMOVED:
204 libc6-same
6a910c9d 205The following NEW packages will be installed:
28166356
DK
206 foobar-same:amd64 libc6-same:amd64
2070 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
208Remv libc6-same [2.0]
209Inst libc6-same:amd64 (1.0 stable [amd64])
6a910c9d 210Inst foobar-same:amd64 (1.0 stable [amd64])
28166356 211Conf libc6-same:amd64 (1.0 stable [amd64])
6a910c9d 212Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64/stable -st testing