]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-758153-versioned-provides-support
hide Translation-* in 'apt-cache policy' output
[apt.git] / test / integration / test-bug-758153-versioned-provides-support
CommitLineData
40faab46
DK
1#!/bin/sh
2set -e
3
4# dpkg implements versioned provides in commit 5bb02fe80e9f40dcad9703a72f67cf615ff217b5
5# but previous versions seem to allow parsing, working and ignoring it.
6
7TESTDIR=$(readlink -f $(dirname $0))
8. $TESTDIR/framework
9setupenvironment
10configarchitecture 'amd64' 'i386'
11
12insertinstalledpackage 'webapp' 'all' '1' 'Depends: httpd'
13insertinstalledpackage 'webserver' 'all' '1' 'Provides: httpd'
14
15insertpackage 'unstable' 'webapp' 'all' '2' 'Depends: httpd (>= 2)'
16insertpackage 'unstable' 'webserver' 'amd64' '2' 'Provides: httpd (= 2)'
17insertpackage 'unstable' 'foreign-webserver' 'i386' '2' 'Multi-Arch: foreign
18Provides: httpd (= 2)'
19
20insertpackage 'experimental' 'webapp' 'all' '3' 'Depends: httpd (>= 1.5)'
21insertpackage 'experimental' 'webserver' 'amd64' '3' 'Provides: httpd (= 3)'
22
23insertpackage 'experimental' 'foreign-webserver' 'i386' '4' 'Multi-Arch: foreign
24Provides: httpd (= 4)'
25insertpackage 'experimental' 'cool-webapp' 'all' '4' 'Depends: httpd (>= 4)'
26
25b86db1
DK
27# arch-qualified provides, see #777071
28insertpackage 'unstable' 'foo' 'all' '1' 'Provides: bar:i386'
29insertpackage 'unstable' 'baz' 'i386,amd64' '1' 'Depends: bar'
30insertpackage 'experimental' 'baz' 'i386,amd64' '2' 'Depends: bar:i386'
31insertpackage 'experimental' 'baz-broken' 'i386' '2' 'Depends: bar:amd64'
32
40faab46
DK
33setupaptarchive
34
25b86db1 35testsuccessequal 'Reading package lists...
40faab46 36Building dependency tree...
2a884c61 37Calculating upgrade...
40faab46
DK
38The following packages will be upgraded:
39 webapp webserver
402 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
41Inst webserver [1] (2 unstable [amd64])
42Inst webapp [1] (2 unstable [all])
43Conf webserver (2 unstable [amd64])
44Conf webapp (2 unstable [all])' aptget dist-upgrade -s
45
25b86db1 46testsuccessequal 'Reading package lists...
40faab46
DK
47Building dependency tree...
48The following packages will be upgraded:
49 webapp webserver
502 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
51Inst webserver [1] (2 unstable [amd64])
52Inst webapp [1] (2 unstable [all])
53Conf webserver (2 unstable [amd64])
54Conf webapp (2 unstable [all])' aptget install webapp webserver -s
55
25b86db1 56testsuccessequal 'Reading package lists...
40faab46
DK
57Building dependency tree...
58The following packages will be upgraded:
59 webapp webserver
602 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
61Inst webserver [1] (2 unstable [amd64])
62Inst webapp [1] (3 experimental [all])
63Conf webserver (2 unstable [amd64])
64Conf webapp (3 experimental [all])' aptget install webapp=3 webserver -s
65
25b86db1 66testsuccessequal 'Reading package lists...
40faab46
DK
67Building dependency tree...
68The following packages will be upgraded:
69 webapp webserver
702 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
71Inst webserver [1] (3 experimental [amd64])
72Inst webapp [1] (2 unstable [all])
73Conf webserver (3 experimental [amd64])
74Conf webapp (2 unstable [all])' aptget install webapp webserver=3 -s
75
25b86db1 76testsuccessequal 'Reading package lists...
40faab46
DK
77Building dependency tree...
78The following NEW packages will be installed:
79 foreign-webserver:i386
80The following packages will be upgraded:
81 webapp
821 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
83Inst foreign-webserver:i386 (2 unstable [i386])
84Inst webapp [1] (2 unstable [all])
85Conf foreign-webserver:i386 (2 unstable [i386])
86Conf webapp (2 unstable [all])' aptget install webapp foreign-webserver:i386 -s
87
25b86db1 88testsuccessequal 'Reading package lists...
40faab46
DK
89Building dependency tree...
90The following NEW packages will be installed:
91 foreign-webserver:i386
92The following packages will be upgraded:
93 webapp
941 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
95Inst foreign-webserver:i386 (2 unstable [i386])
96Inst webapp [1] (3 experimental [all])
97Conf foreign-webserver:i386 (2 unstable [i386])
98Conf webapp (3 experimental [all])' aptget install webapp=3 foreign-webserver:i386 -s
99
25b86db1 100testsuccessequal 'Reading package lists...
40faab46
DK
101Building dependency tree...
102The following NEW packages will be installed:
103 foreign-webserver:i386
104The following packages will be upgraded:
105 webapp
1061 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
107Inst foreign-webserver:i386 (4 experimental [i386])
108Inst webapp [1] (2 unstable [all])
109Conf foreign-webserver:i386 (4 experimental [i386])
110Conf webapp (2 unstable [all])' aptget install webapp foreign-webserver:i386=4 -s
111
25b86db1 112testfailureequal 'Reading package lists...
40faab46
DK
113Building dependency tree...
114Some packages could not be installed. This may mean that you have
115requested an impossible situation or if you are using the unstable
116distribution that some required packages have not yet been created
117or been moved out of Incoming.
118The following information may help to resolve the situation:
119
120The following packages have unmet dependencies:
121 cool-webapp : Depends: httpd (>= 4)
122E: Unable to correct problems, you have held broken packages.' aptget install cool-webapp -s
123
25b86db1 124testfailureequal 'Reading package lists...
40faab46
DK
125Building dependency tree...
126Some packages could not be installed. This may mean that you have
127requested an impossible situation or if you are using the unstable
128distribution that some required packages have not yet been created
129or been moved out of Incoming.
130The following information may help to resolve the situation:
131
132The following packages have unmet dependencies:
133 cool-webapp : Depends: httpd (>= 4)
134E: Unable to correct problems, you have held broken packages.' aptget install cool-webapp foreign-webserver:i386 -s
135
25b86db1 136testsuccessequal 'Reading package lists...
40faab46
DK
137Building dependency tree...
138The following NEW packages will be installed:
139 cool-webapp foreign-webserver:i386
1400 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
141Inst foreign-webserver:i386 (4 experimental [i386])
142Inst cool-webapp (4 experimental [all])
143Conf foreign-webserver:i386 (4 experimental [i386])
144Conf cool-webapp (4 experimental [all])' aptget install cool-webapp foreign-webserver:i386=4 -s
25b86db1
DK
145
146testsuccessequal 'Reading package lists...
147Building dependency tree...
148The following extra packages will be installed:
149 foo
150The following NEW packages will be installed:
151 baz:i386 foo
1520 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
153Inst foo (1 unstable [all])
154Inst baz:i386 (1 unstable [i386])
155Conf foo (1 unstable [all])
156Conf baz:i386 (1 unstable [i386])' aptget install baz:i386 -s
157
158testfailureequal 'Reading package lists...
159Building dependency tree...
160Some packages could not be installed. This may mean that you have
161requested an impossible situation or if you are using the unstable
162distribution that some required packages have not yet been created
163or been moved out of Incoming.
164The following information may help to resolve the situation:
165
166The following packages have unmet dependencies:
167 baz : Depends: bar but it is not installable
168E: Unable to correct problems, you have held broken packages.' aptget install baz:amd64 -s
169
170testsuccessequal "Reading package lists...
171Building dependency tree...
172Selected version '2' (experimental [amd64]) for 'baz'
173The following extra packages will be installed:
174 foo
175The following NEW packages will be installed:
176 baz foo
1770 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
178Inst foo (1 unstable [all])
179Inst baz (2 experimental [amd64])
180Conf foo (1 unstable [all])
181Conf baz (2 experimental [amd64])" aptget install baz/experimental -s -q=0
182
183testsuccessequal "Reading package lists...
184Building dependency tree...
185Selected version '2' (experimental [i386]) for 'baz:i386'
186The following extra packages will be installed:
187 foo
188The following NEW packages will be installed:
189 baz:i386 foo
1900 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
191Inst foo (1 unstable [all])
192Inst baz:i386 (2 experimental [i386])
193Conf foo (1 unstable [all])
194Conf baz:i386 (2 experimental [i386])" aptget install baz:i386/experimental -s -q=0
195
196testfailureequal 'Reading package lists...
197Building dependency tree...
198Some packages could not be installed. This may mean that you have
199requested an impossible situation or if you are using the unstable
200distribution that some required packages have not yet been created
201or been moved out of Incoming.
202The following information may help to resolve the situation:
203
204The following packages have unmet dependencies:
205 baz-broken:i386 : Depends: bar but it is not installable
206E: Unable to correct problems, you have held broken packages.' aptget install baz-broken -s