]> git.saurik.com Git - apt.git/blame - test/integration/test-multiarch-foreign
Merge branch 'debian/experimental' into feature/srv-records
[apt.git] / test / integration / test-multiarch-foreign
CommitLineData
2b5c35c7
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'i386' 'armel'
8
9insertpackage 'unstable' 'cool-foo' 'amd64,i386' '1.0' 'Depends: foo'
596ec43c
DK
10insertpackage 'unstable' 'cool-foo-x64' 'amd64' '1.0' 'Depends: foo:amd64'
11insertpackage 'unstable' 'cool-foo-x32' 'amd64' '1.0' 'Depends: foo:i386'
2b5c35c7
DK
12insertpackage 'unstable' 'foo' 'amd64,i386,armel' '1.0' 'Multi-Arch: foreign'
13
14insertpackage 'unstable' 'cool-bar' 'amd64,i386' '1.0' 'Depends: bar-provider'
596ec43c
DK
15insertpackage 'unstable' 'cool-bar-x64' 'amd64' '1.0' 'Depends: bar-provider:amd64'
16insertpackage 'unstable' 'cool-bar-x32' 'amd64' '1.0' 'Depends: bar-provider:i386'
2b5c35c7
DK
17insertpackage 'unstable' 'bar' 'amd64,i386,armel' '1.0' 'Provides: bar-provider
18Multi-Arch: foreign'
19
20setupaptarchive
21
25b86db1 22testsuccessequal 'Reading package lists...
2b5c35c7
DK
23Building dependency tree...
24The following extra packages will be installed:
25 foo
26The following NEW packages will be installed:
27 cool-foo:i386 foo
280 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
29Inst foo (1.0 unstable [amd64])
30Inst cool-foo:i386 (1.0 unstable [i386])
31Conf foo (1.0 unstable [amd64])
32Conf cool-foo:i386 (1.0 unstable [i386])' aptget install cool-foo:i386 -s
33
25b86db1 34testsuccessequal 'Reading package lists...
2b5c35c7
DK
35Building dependency tree...
36The following NEW packages will be installed:
37 cool-foo foo:i386
380 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
39Inst foo:i386 (1.0 unstable [i386])
40Inst cool-foo (1.0 unstable [amd64])
41Conf foo:i386 (1.0 unstable [i386])
42Conf cool-foo (1.0 unstable [amd64])' aptget install cool-foo:amd64 foo:i386 -s
43
25b86db1 44testsuccessequal 'Reading package lists...
2b5c35c7
DK
45Building dependency tree...
46The following NEW packages will be installed:
47 cool-foo foo:armel
480 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
49Inst foo:armel (1.0 unstable [armel])
50Inst cool-foo (1.0 unstable [amd64])
51Conf foo:armel (1.0 unstable [armel])
52Conf cool-foo (1.0 unstable [amd64])' aptget install cool-foo:amd64 foo:armel -s
53
25b86db1 54testsuccessequal 'Reading package lists...
2b5c35c7
DK
55Building dependency tree...
56The following extra packages will be installed:
57 bar
58The following NEW packages will be installed:
59 bar cool-bar:i386
600 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
61Inst bar (1.0 unstable [amd64])
62Inst cool-bar:i386 (1.0 unstable [i386])
63Conf bar (1.0 unstable [amd64])
64Conf cool-bar:i386 (1.0 unstable [i386])' aptget install cool-bar:i386 -s
65
25b86db1 66testsuccessequal 'Reading package lists...
2b5c35c7 67Building dependency tree...
596ec43c
DK
68The following NEW packages will be installed:
69 bar:i386 cool-bar
700 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
71Inst bar:i386 (1.0 unstable [i386])
72Inst cool-bar (1.0 unstable [amd64])
73Conf bar:i386 (1.0 unstable [i386])
74Conf cool-bar (1.0 unstable [amd64])' aptget install cool-bar:amd64 bar:i386 -s
75
05f64ca2 76testsuccessequal 'Reading package lists...
596ec43c
DK
77Building dependency tree...
78The following NEW packages will be installed:
79 bar:armel cool-bar
800 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
81Inst bar:armel (1.0 unstable [armel])
82Inst cool-bar (1.0 unstable [amd64])
83Conf bar:armel (1.0 unstable [armel])
84Conf cool-bar (1.0 unstable [amd64])' aptget install cool-bar:amd64 bar:armel -s
85
05f64ca2 86testsuccessequal "Reading package lists...
596ec43c
DK
87Building dependency tree...
88Note, selecting 'bar:i386' instead of 'bar-provider:i386'
89The following NEW packages will be installed:
90 bar:i386 cool-bar
910 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
92Inst bar:i386 (1.0 unstable [i386])
93Inst cool-bar (1.0 unstable [amd64])
94Conf bar:i386 (1.0 unstable [i386])
95Conf cool-bar (1.0 unstable [amd64])" aptget install cool-bar bar-provider:i386 -s -q=0
96
97satisfiable_in_singlearch() {
05f64ca2 98 testsuccessequal 'Reading package lists...
596ec43c
DK
99Building dependency tree...
100The following extra packages will be installed:
101 foo
102The following NEW packages will be installed:
103 cool-foo foo
1040 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
105Inst foo (1.0 unstable [amd64])
106Inst cool-foo (1.0 unstable [amd64])
107Conf foo (1.0 unstable [amd64])
108Conf cool-foo (1.0 unstable [amd64])' aptget install cool-foo:amd64 -s
109
05f64ca2 110 testsuccessequal 'Reading package lists...
596ec43c
DK
111Building dependency tree...
112The following NEW packages will be installed:
113 cool-foo foo
1140 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
115Inst foo (1.0 unstable [amd64])
116Inst cool-foo (1.0 unstable [amd64])
117Conf foo (1.0 unstable [amd64])
118Conf cool-foo (1.0 unstable [amd64])' aptget install cool-foo:amd64 foo:amd64 -s
119
05f64ca2 120 testsuccessequal 'Reading package lists...
596ec43c 121Building dependency tree...
2b5c35c7
DK
122The following extra packages will be installed:
123 bar
124The following NEW packages will be installed:
125 bar cool-bar
1260 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
127Inst bar (1.0 unstable [amd64])
128Inst cool-bar (1.0 unstable [amd64])
129Conf bar (1.0 unstable [amd64])
130Conf cool-bar (1.0 unstable [amd64])' aptget install cool-bar:amd64 -s
131
05f64ca2 132 testsuccessequal 'Reading package lists...
2b5c35c7
DK
133Building dependency tree...
134The following NEW packages will be installed:
135 bar cool-bar
1360 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
137Inst bar (1.0 unstable [amd64])
138Inst cool-bar (1.0 unstable [amd64])
139Conf bar (1.0 unstable [amd64])
140Conf cool-bar (1.0 unstable [amd64])' aptget install cool-bar:amd64 bar:amd64 -s
141
05f64ca2 142 testsuccessequal "Reading package lists...
2b5c35c7 143Building dependency tree...
596ec43c 144Note, selecting 'bar' instead of 'bar-provider'
2b5c35c7 145The following NEW packages will be installed:
596ec43c 146 bar cool-bar
2b5c35c7 1470 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
596ec43c 148Inst bar (1.0 unstable [amd64])
2b5c35c7 149Inst cool-bar (1.0 unstable [amd64])
596ec43c
DK
150Conf bar (1.0 unstable [amd64])
151Conf cool-bar (1.0 unstable [amd64])" aptget install cool-bar bar-provider -s -q=0
2b5c35c7 152
05f64ca2 153 testsuccessequal 'Reading package lists...
2b5c35c7 154Building dependency tree...
596ec43c
DK
155The following extra packages will be installed:
156 foo
2b5c35c7 157The following NEW packages will be installed:
596ec43c 158 cool-foo-x64 foo
2b5c35c7 1590 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
596ec43c
DK
160Inst foo (1.0 unstable [amd64])
161Inst cool-foo-x64 (1.0 unstable [amd64])
162Conf foo (1.0 unstable [amd64])
163Conf cool-foo-x64 (1.0 unstable [amd64])' aptget install cool-foo-x64 -s
164}
286afa36 165
596ec43c 166#FIXME: do not work in single-arch as i386 isn't known at cache generation time
05f64ca2 167 testsuccessequal 'Reading package lists...
286afa36 168Building dependency tree...
596ec43c
DK
169The following extra packages will be installed:
170 foo
286afa36 171The following NEW packages will be installed:
596ec43c
DK
172 cool-foo-x32 foo
1730 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
174Inst foo (1.0 unstable [amd64])
175Inst cool-foo-x32 (1.0 unstable [amd64])
176Conf foo (1.0 unstable [amd64])
177Conf cool-foo-x32 (1.0 unstable [amd64])' aptget install cool-foo-x32 -s
178
05f64ca2 179 testsuccessequal 'Reading package lists...
596ec43c
DK
180Building dependency tree...
181The following extra packages will be installed:
182 bar
183The following NEW packages will be installed:
184 bar cool-bar-x32
286afa36
DK
1850 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
186Inst bar (1.0 unstable [amd64])
596ec43c 187Inst cool-bar-x32 (1.0 unstable [amd64])
286afa36 188Conf bar (1.0 unstable [amd64])
596ec43c 189Conf cool-bar-x32 (1.0 unstable [amd64])' aptget install cool-bar-x32 -s -q=0
286afa36 190
05f64ca2 191 testsuccessequal 'Reading package lists...
286afa36 192Building dependency tree...
596ec43c
DK
193The following extra packages will be installed:
194 bar
286afa36 195The following NEW packages will be installed:
596ec43c 196 bar cool-bar-x64
286afa36 1970 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
596ec43c
DK
198Inst bar (1.0 unstable [amd64])
199Inst cool-bar-x64 (1.0 unstable [amd64])
200Conf bar (1.0 unstable [amd64])
201Conf cool-bar-x64 (1.0 unstable [amd64])' aptget install cool-bar-x64 -s -q=0
202
203
204satisfiable_in_singlearch
205
206msgmsg 'switch to single architecture'
207configarchitecture 'amd64'
208
209satisfiable_in_singlearch