]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-758153-versioned-provides-support
Merge branch 'debian/sid' into debian/experimental
[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
27setupaptarchive
28
29testequal 'Reading package lists...
30Building dependency tree...
2a884c61 31Calculating upgrade...
40faab46
DK
32The following packages will be upgraded:
33 webapp webserver
342 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
35Inst webserver [1] (2 unstable [amd64])
36Inst webapp [1] (2 unstable [all])
37Conf webserver (2 unstable [amd64])
38Conf webapp (2 unstable [all])' aptget dist-upgrade -s
39
40testequal 'Reading package lists...
41Building dependency tree...
42The following packages will be upgraded:
43 webapp webserver
442 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
45Inst webserver [1] (2 unstable [amd64])
46Inst webapp [1] (2 unstable [all])
47Conf webserver (2 unstable [amd64])
48Conf webapp (2 unstable [all])' aptget install webapp webserver -s
49
50testequal 'Reading package lists...
51Building dependency tree...
52The following packages will be upgraded:
53 webapp webserver
542 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
55Inst webserver [1] (2 unstable [amd64])
56Inst webapp [1] (3 experimental [all])
57Conf webserver (2 unstable [amd64])
58Conf webapp (3 experimental [all])' aptget install webapp=3 webserver -s
59
60testequal 'Reading package lists...
61Building dependency tree...
62The following packages will be upgraded:
63 webapp webserver
642 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
65Inst webserver [1] (3 experimental [amd64])
66Inst webapp [1] (2 unstable [all])
67Conf webserver (3 experimental [amd64])
68Conf webapp (2 unstable [all])' aptget install webapp webserver=3 -s
69
70testequal 'Reading package lists...
71Building dependency tree...
72The following NEW packages will be installed:
73 foreign-webserver:i386
74The following packages will be upgraded:
75 webapp
761 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
77Inst foreign-webserver:i386 (2 unstable [i386])
78Inst webapp [1] (2 unstable [all])
79Conf foreign-webserver:i386 (2 unstable [i386])
80Conf webapp (2 unstable [all])' aptget install webapp foreign-webserver:i386 -s
81
82testequal 'Reading package lists...
83Building dependency tree...
84The following NEW packages will be installed:
85 foreign-webserver:i386
86The following packages will be upgraded:
87 webapp
881 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
89Inst foreign-webserver:i386 (2 unstable [i386])
90Inst webapp [1] (3 experimental [all])
91Conf foreign-webserver:i386 (2 unstable [i386])
92Conf webapp (3 experimental [all])' aptget install webapp=3 foreign-webserver:i386 -s
93
94testequal 'Reading package lists...
95Building dependency tree...
96The following NEW packages will be installed:
97 foreign-webserver:i386
98The following packages will be upgraded:
99 webapp
1001 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
101Inst foreign-webserver:i386 (4 experimental [i386])
102Inst webapp [1] (2 unstable [all])
103Conf foreign-webserver:i386 (4 experimental [i386])
104Conf webapp (2 unstable [all])' aptget install webapp foreign-webserver:i386=4 -s
105
106testequal 'Reading package lists...
107Building dependency tree...
108Some packages could not be installed. This may mean that you have
109requested an impossible situation or if you are using the unstable
110distribution that some required packages have not yet been created
111or been moved out of Incoming.
112The following information may help to resolve the situation:
113
114The following packages have unmet dependencies:
115 cool-webapp : Depends: httpd (>= 4)
116E: Unable to correct problems, you have held broken packages.' aptget install cool-webapp -s
117
118testequal 'Reading package lists...
119Building dependency tree...
120Some packages could not be installed. This may mean that you have
121requested an impossible situation or if you are using the unstable
122distribution that some required packages have not yet been created
123or been moved out of Incoming.
124The following information may help to resolve the situation:
125
126The following packages have unmet dependencies:
127 cool-webapp : Depends: httpd (>= 4)
128E: Unable to correct problems, you have held broken packages.' aptget install cool-webapp foreign-webserver:i386 -s
129
130testequal 'Reading package lists...
131Building dependency tree...
132The following NEW packages will be installed:
133 cool-webapp foreign-webserver:i386
1340 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
135Inst foreign-webserver:i386 (4 experimental [i386])
136Inst cool-webapp (4 experimental [all])
137Conf foreign-webserver:i386 (4 experimental [i386])
138Conf cool-webapp (4 experimental [all])' aptget install cool-webapp foreign-webserver:i386=4 -s