4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
'amd64' 'i386' 'armel'
9 insertpackage
'unstable' 'cool-foo' 'amd64,i386' '1.0' 'Depends: foo'
10 insertpackage
'unstable' 'cool-foo-x64' 'amd64' '1.0' 'Depends: foo:amd64'
11 insertpackage
'unstable' 'cool-foo-x32' 'amd64' '1.0' 'Depends: foo:i386'
12 insertpackage
'unstable' 'foo' 'amd64,i386,armel' '1.0' 'Multi-Arch: foreign'
14 insertpackage
'unstable' 'cool-bar' 'amd64,i386' '1.0' 'Depends: bar-provider'
15 insertpackage
'unstable' 'cool-bar-x64' 'amd64' '1.0' 'Depends: bar-provider:amd64'
16 insertpackage
'unstable' 'cool-bar-x32' 'amd64' '1.0' 'Depends: bar-provider:i386'
17 insertpackage
'unstable' 'bar' 'amd64,i386,armel' '1.0' 'Provides: bar-provider
22 testsuccessequal
'Reading package lists...
23 Building dependency tree...
24 The following extra packages will be installed:
26 The following NEW packages will be installed:
28 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
29 Inst foo (1.0 unstable [amd64])
30 Inst cool-foo:i386 (1.0 unstable [i386])
31 Conf foo (1.0 unstable [amd64])
32 Conf cool-foo:i386 (1.0 unstable [i386])' aptget
install cool
-foo:i386
-s
34 testsuccessequal
'Reading package lists...
35 Building dependency tree...
36 The following NEW packages will be installed:
38 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
39 Inst foo:i386 (1.0 unstable [i386])
40 Inst cool-foo (1.0 unstable [amd64])
41 Conf foo:i386 (1.0 unstable [i386])
42 Conf cool-foo (1.0 unstable [amd64])' aptget
install cool
-foo:amd64 foo
:i386
-s
44 testsuccessequal
'Reading package lists...
45 Building dependency tree...
46 The following NEW packages will be installed:
48 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
49 Inst foo:armel (1.0 unstable [armel])
50 Inst cool-foo (1.0 unstable [amd64])
51 Conf foo:armel (1.0 unstable [armel])
52 Conf cool-foo (1.0 unstable [amd64])' aptget
install cool
-foo:amd64 foo
:armel
-s
54 testsuccessequal
'Reading package lists...
55 Building dependency tree...
56 The following extra packages will be installed:
58 The following NEW packages will be installed:
60 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
61 Inst bar (1.0 unstable [amd64])
62 Inst cool-bar:i386 (1.0 unstable [i386])
63 Conf bar (1.0 unstable [amd64])
64 Conf cool-bar:i386 (1.0 unstable [i386])' aptget
install cool
-bar:i386
-s
66 testsuccessequal
'Reading package lists...
67 Building dependency tree...
68 The following NEW packages will be installed:
70 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
71 Inst bar:i386 (1.0 unstable [i386])
72 Inst cool-bar (1.0 unstable [amd64])
73 Conf bar:i386 (1.0 unstable [i386])
74 Conf cool-bar (1.0 unstable [amd64])' aptget
install cool
-bar:amd64 bar
:i386
-s
76 testsuccessequal
'Reading package lists...
77 Building dependency tree...
78 The following NEW packages will be installed:
80 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
81 Inst bar:armel (1.0 unstable [armel])
82 Inst cool-bar (1.0 unstable [amd64])
83 Conf bar:armel (1.0 unstable [armel])
84 Conf cool-bar (1.0 unstable [amd64])' aptget
install cool
-bar:amd64 bar
:armel
-s
86 testsuccessequal
"Reading package lists...
87 Building dependency tree...
88 Note, selecting 'bar:i386' instead of 'bar-provider:i386'
89 The following NEW packages will be installed:
91 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
92 Inst bar:i386 (1.0 unstable [i386])
93 Inst cool-bar (1.0 unstable [amd64])
94 Conf bar:i386 (1.0 unstable [i386])
95 Conf cool-bar (1.0 unstable [amd64])" aptget
install cool
-bar bar
-provider:i386
-s -q=0
97 satisfiable_in_singlearch
() {
98 testsuccessequal
'Reading package lists...
99 Building dependency tree...
100 The following extra packages will be installed:
102 The following NEW packages will be installed:
104 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
105 Inst foo (1.0 unstable [amd64])
106 Inst cool-foo (1.0 unstable [amd64])
107 Conf foo (1.0 unstable [amd64])
108 Conf cool-foo (1.0 unstable [amd64])' aptget
install cool
-foo:amd64
-s
110 testsuccessequal
'Reading package lists...
111 Building dependency tree...
112 The following NEW packages will be installed:
114 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
115 Inst foo (1.0 unstable [amd64])
116 Inst cool-foo (1.0 unstable [amd64])
117 Conf foo (1.0 unstable [amd64])
118 Conf cool-foo (1.0 unstable [amd64])' aptget
install cool
-foo:amd64 foo
:amd64
-s
120 testsuccessequal
'Reading package lists...
121 Building dependency tree...
122 The following extra packages will be installed:
124 The following NEW packages will be installed:
126 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
127 Inst bar (1.0 unstable [amd64])
128 Inst cool-bar (1.0 unstable [amd64])
129 Conf bar (1.0 unstable [amd64])
130 Conf cool-bar (1.0 unstable [amd64])' aptget
install cool
-bar:amd64
-s
132 testsuccessequal
'Reading package lists...
133 Building dependency tree...
134 The following NEW packages will be installed:
136 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
137 Inst bar (1.0 unstable [amd64])
138 Inst cool-bar (1.0 unstable [amd64])
139 Conf bar (1.0 unstable [amd64])
140 Conf cool-bar (1.0 unstable [amd64])' aptget
install cool
-bar:amd64 bar
:amd64
-s
142 testsuccessequal
"Reading package lists...
143 Building dependency tree...
144 Note, selecting 'bar' instead of 'bar-provider'
145 The following NEW packages will be installed:
147 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
148 Inst bar (1.0 unstable [amd64])
149 Inst cool-bar (1.0 unstable [amd64])
150 Conf bar (1.0 unstable [amd64])
151 Conf cool-bar (1.0 unstable [amd64])" aptget
install cool
-bar bar
-provider -s -q=0
153 testsuccessequal
'Reading package lists...
154 Building dependency tree...
155 The following extra packages will be installed:
157 The following NEW packages will be installed:
159 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
160 Inst foo (1.0 unstable [amd64])
161 Inst cool-foo-x64 (1.0 unstable [amd64])
162 Conf foo (1.0 unstable [amd64])
163 Conf cool-foo-x64 (1.0 unstable [amd64])' aptget
install cool
-foo-x64 -s
166 #FIXME: do not work in single-arch as i386 isn't known at cache generation time
167 testsuccessequal
'Reading package lists...
168 Building dependency tree...
169 The following extra packages will be installed:
171 The following NEW packages will be installed:
173 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
174 Inst foo (1.0 unstable [amd64])
175 Inst cool-foo-x32 (1.0 unstable [amd64])
176 Conf foo (1.0 unstable [amd64])
177 Conf cool-foo-x32 (1.0 unstable [amd64])' aptget
install cool
-foo-x32 -s
179 testsuccessequal
'Reading package lists...
180 Building dependency tree...
181 The following extra packages will be installed:
183 The following NEW packages will be installed:
185 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
186 Inst bar (1.0 unstable [amd64])
187 Inst cool-bar-x32 (1.0 unstable [amd64])
188 Conf bar (1.0 unstable [amd64])
189 Conf cool-bar-x32 (1.0 unstable [amd64])' aptget
install cool
-bar-x32 -s -q=0
191 testsuccessequal
'Reading package lists...
192 Building dependency tree...
193 The following extra packages will be installed:
195 The following NEW packages will be installed:
197 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
198 Inst bar (1.0 unstable [amd64])
199 Inst cool-bar-x64 (1.0 unstable [amd64])
200 Conf bar (1.0 unstable [amd64])
201 Conf cool-bar-x64 (1.0 unstable [amd64])' aptget
install cool
-bar-x64 -s -q=0
204 satisfiable_in_singlearch
206 msgmsg
'switch to single architecture'
207 configarchitecture
'amd64'
209 satisfiable_in_singlearch