]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-758153-versioned-provides-support
pass-through stdin fd instead of content if not a terminal
[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...
31The following packages will be upgraded:
32 webapp webserver
332 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
34Inst webserver [1] (2 unstable [amd64])
35Inst webapp [1] (2 unstable [all])
36Conf webserver (2 unstable [amd64])
37Conf webapp (2 unstable [all])' aptget dist-upgrade -s
38
39testequal 'Reading package lists...
40Building dependency tree...
41The following packages will be upgraded:
42 webapp webserver
432 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
44Inst webserver [1] (2 unstable [amd64])
45Inst webapp [1] (2 unstable [all])
46Conf webserver (2 unstable [amd64])
47Conf webapp (2 unstable [all])' aptget install webapp webserver -s
48
49testequal 'Reading package lists...
50Building dependency tree...
51The following packages will be upgraded:
52 webapp webserver
532 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
54Inst webserver [1] (2 unstable [amd64])
55Inst webapp [1] (3 experimental [all])
56Conf webserver (2 unstable [amd64])
57Conf webapp (3 experimental [all])' aptget install webapp=3 webserver -s
58
59testequal 'Reading package lists...
60Building dependency tree...
61The following packages will be upgraded:
62 webapp webserver
632 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
64Inst webserver [1] (3 experimental [amd64])
65Inst webapp [1] (2 unstable [all])
66Conf webserver (3 experimental [amd64])
67Conf webapp (2 unstable [all])' aptget install webapp webserver=3 -s
68
69testequal 'Reading package lists...
70Building dependency tree...
71The following NEW packages will be installed:
72 foreign-webserver:i386
73The following packages will be upgraded:
74 webapp
751 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
76Inst foreign-webserver:i386 (2 unstable [i386])
77Inst webapp [1] (2 unstable [all])
78Conf foreign-webserver:i386 (2 unstable [i386])
79Conf webapp (2 unstable [all])' aptget install webapp foreign-webserver:i386 -s
80
81testequal 'Reading package lists...
82Building dependency tree...
83The following NEW packages will be installed:
84 foreign-webserver:i386
85The following packages will be upgraded:
86 webapp
871 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
88Inst foreign-webserver:i386 (2 unstable [i386])
89Inst webapp [1] (3 experimental [all])
90Conf foreign-webserver:i386 (2 unstable [i386])
91Conf webapp (3 experimental [all])' aptget install webapp=3 foreign-webserver:i386 -s
92
93testequal 'Reading package lists...
94Building dependency tree...
95The following NEW packages will be installed:
96 foreign-webserver:i386
97The following packages will be upgraded:
98 webapp
991 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
100Inst foreign-webserver:i386 (4 experimental [i386])
101Inst webapp [1] (2 unstable [all])
102Conf foreign-webserver:i386 (4 experimental [i386])
103Conf webapp (2 unstable [all])' aptget install webapp foreign-webserver:i386=4 -s
104
105testequal 'Reading package lists...
106Building dependency tree...
107Some packages could not be installed. This may mean that you have
108requested an impossible situation or if you are using the unstable
109distribution that some required packages have not yet been created
110or been moved out of Incoming.
111The following information may help to resolve the situation:
112
113The following packages have unmet dependencies:
114 cool-webapp : Depends: httpd (>= 4)
115E: Unable to correct problems, you have held broken packages.' aptget install cool-webapp -s
116
117testequal 'Reading package lists...
118Building dependency tree...
119Some packages could not be installed. This may mean that you have
120requested an impossible situation or if you are using the unstable
121distribution that some required packages have not yet been created
122or been moved out of Incoming.
123The following information may help to resolve the situation:
124
125The following packages have unmet dependencies:
126 cool-webapp : Depends: httpd (>= 4)
127E: Unable to correct problems, you have held broken packages.' aptget install cool-webapp foreign-webserver:i386 -s
128
129testequal 'Reading package lists...
130Building dependency tree...
131The following NEW packages will be installed:
132 cool-webapp foreign-webserver:i386
1330 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
134Inst foreign-webserver:i386 (4 experimental [i386])
135Inst cool-webapp (4 experimental [all])
136Conf foreign-webserver:i386 (4 experimental [i386])
137Conf cool-webapp (4 experimental [all])' aptget install cool-webapp foreign-webserver:i386=4 -s