]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-470115-new-and-tighten-recommends
add --sha512 option + documentation for apt-ftparchive
[apt.git] / test / integration / test-bug-470115-new-and-tighten-recommends
CommitLineData
6ed08516
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'i386'
8
9insertinstalledpackage 'cool' 'all' '1'
10insertinstalledpackage 'stuff' 'all' '1'
11insertinstalledpackage 'coolstuff' 'all' '1'
12
13insertpackage 'unstable' 'cool' 'all' '2'
14insertpackage 'unstable' 'stuff' 'all' '2'
15insertpackage 'unstable' 'coolstuff' 'all' '2'
16insertpackage 'unstable' 'super' 'all' '2'
17
18insertinstalledpackage 'tighten-cool' 'all' '1' 'Recommends: cool (>= 1)'
19insertpackage 'unstable' 'tighten-cool' 'all' '2' 'Recommends: cool (>= 2)'
20
21insertinstalledpackage 'tighten-coolorstuff' 'all' '1' 'Recommends: cool (>= 1) | stuff (>= 1)'
22insertpackage 'unstable' 'tighten-coolorstuff' 'all' '2' 'Recommends: stuff (>= 2) | cool (>= 2)'
23
24insertinstalledpackage 'tighten-coolorstuff2' 'all' '1' 'Recommends: cool (>= 1) | stuff (>= 1)'
25insertpackage 'unstable' 'tighten-coolorstuff2' 'all' '2' 'Recommends: stuff2 (>= 2) | cool (>= 2)'
26
27insertinstalledpackage 'newrec-cool' 'all' '1'
28insertpackage 'unstable' 'newrec-cool' 'all' '2' 'Recommends: cool (>= 2)'
29
30insertinstalledpackage 'newrec-super' 'all' '1'
31insertpackage 'unstable' 'newrec-super' 'all' '2' 'Recommends: super'
32
33insertinstalledpackage 'newrec-coolorstuff' 'all' '1'
34insertpackage 'unstable' 'newrec-coolorstuff' 'all' '2' 'Recommends: cool (>= 2) | stuff (>= 2)'
35
36insertinstalledpackage 'cool-gone' 'all' '1' 'Recommends: cool (>= 1) | stuff (>= 2)'
37insertpackage 'unstable' 'cool-gone' 'all' '2' 'Recommends: stuff (>= 2)'
38
39insertinstalledpackage 'super-overtake' 'all' '1' 'Recommends: cool | super, stuff | super'
40insertpackage 'unstable' 'super-overtake' 'all' '2' 'Recommends: stuff (>= 3) | super, super | cool (>= 2)'
41
42insertinstalledpackage 'upgrade-over-new' 'all' '1' 'Recommends: cool'
43insertpackage 'unstable' 'upgrade-over-new' 'all' '2' 'Recommends: cool (>= 2) | super'
44
45insertinstalledpackage 'now-satisfiable' 'all' '1' 'Recommends: cool (>= 3)'
46insertpackage 'unstable' 'now-satisfiable' 'all' '2' 'Recommends: cool (>= 2)'
47
48setupaptarchive
49
25b86db1 50testsuccessequal 'Reading package lists...
6ed08516 51Building dependency tree...
e7ebb414 52The following additional packages will be installed:
6ed08516
DK
53 cool
54The following packages will be upgraded:
55 cool tighten-cool
562 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
57Inst cool [1] (2 unstable [all])
58Inst tighten-cool [1] (2 unstable [all])
59Conf cool (2 unstable [all])
60Conf tighten-cool (2 unstable [all])' aptget install tighten-cool -s
61
25b86db1 62testsuccessequal 'Reading package lists...
6ed08516 63Building dependency tree...
e7ebb414 64The following additional packages will be installed:
6ed08516
DK
65 stuff
66The following packages will be upgraded:
67 stuff tighten-coolorstuff
682 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
69Inst stuff [1] (2 unstable [all])
70Inst tighten-coolorstuff [1] (2 unstable [all])
71Conf stuff (2 unstable [all])
72Conf tighten-coolorstuff (2 unstable [all])' aptget install tighten-coolorstuff -s
73
25b86db1 74testsuccessequal 'Reading package lists...
6ed08516 75Building dependency tree...
e7ebb414 76The following additional packages will be installed:
6ed08516
DK
77 cool
78The following packages will be upgraded:
79 cool tighten-coolorstuff2
802 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
81Inst cool [1] (2 unstable [all])
82Inst tighten-coolorstuff2 [1] (2 unstable [all])
83Conf cool (2 unstable [all])
84Conf tighten-coolorstuff2 (2 unstable [all])' aptget install tighten-coolorstuff2 -s
85
25b86db1 86testsuccessequal 'Reading package lists...
6ed08516 87Building dependency tree...
e7ebb414 88The following additional packages will be installed:
6ed08516
DK
89 cool
90The following packages will be upgraded:
91 cool newrec-cool
922 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
93Inst cool [1] (2 unstable [all])
94Inst newrec-cool [1] (2 unstable [all])
95Conf cool (2 unstable [all])
96Conf newrec-cool (2 unstable [all])' aptget install newrec-cool -s
97
25b86db1 98testsuccessequal 'Reading package lists...
6ed08516 99Building dependency tree...
e7ebb414 100The following additional packages will be installed:
6ed08516
DK
101 super
102The following NEW packages will be installed:
103 super
104The following packages will be upgraded:
105 newrec-super
1061 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
107Inst newrec-super [1] (2 unstable [all])
108Inst super (2 unstable [all])
109Conf newrec-super (2 unstable [all])
110Conf super (2 unstable [all])' aptget install newrec-super -s
111
25b86db1 112testsuccessequal 'Reading package lists...
6ed08516 113Building dependency tree...
e7ebb414 114The following additional packages will be installed:
6ed08516
DK
115 cool
116The following packages will be upgraded:
117 cool newrec-coolorstuff
1182 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
119Inst cool [1] (2 unstable [all])
120Inst newrec-coolorstuff [1] (2 unstable [all])
121Conf cool (2 unstable [all])
122Conf newrec-coolorstuff (2 unstable [all])' aptget install newrec-coolorstuff -s
123
25b86db1 124testsuccessequal 'Reading package lists...
6ed08516 125Building dependency tree...
e7ebb414 126The following additional packages will be installed:
6ed08516
DK
127 stuff
128The following packages will be upgraded:
129 cool-gone stuff
1302 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
131Inst cool-gone [1] (2 unstable [all])
132Inst stuff [1] (2 unstable [all])
133Conf cool-gone (2 unstable [all])
134Conf stuff (2 unstable [all])' aptget install cool-gone -s
135
25b86db1 136testsuccessequal 'Reading package lists...
6ed08516 137Building dependency tree...
e7ebb414 138The following additional packages will be installed:
6ed08516
DK
139 super
140The following NEW packages will be installed:
141 super
142The following packages will be upgraded:
143 super-overtake
1441 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
145Inst super (2 unstable [all])
146Inst super-overtake [1] (2 unstable [all])
147Conf super (2 unstable [all])
148Conf super-overtake (2 unstable [all])' aptget install super-overtake -s
149
150# if super would be in front, we would get a new here as it is new and
151# the first option in an or-group should be the preferred oneā€¦
25b86db1 152testsuccessequal 'Reading package lists...
6ed08516 153Building dependency tree...
e7ebb414 154The following additional packages will be installed:
6ed08516
DK
155 cool
156The following packages will be upgraded:
157 cool upgrade-over-new
1582 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
159Inst cool [1] (2 unstable [all])
160Inst upgrade-over-new [1] (2 unstable [all])
161Conf cool (2 unstable [all])
162Conf upgrade-over-new (2 unstable [all])' aptget install upgrade-over-new -s
163
164# the recommends wasn't used before so while we could do it now,
165# the user doesn't seem to need it so avoid upgrading it
25b86db1 166testsuccessequal 'Reading package lists...
6ed08516 167Building dependency tree...
9112f777
DK
168Recommended packages:
169 cool
6ed08516
DK
170The following packages will be upgraded:
171 now-satisfiable
1721 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
173Inst now-satisfiable [1] (2 unstable [all])
174Conf now-satisfiable (2 unstable [all])' aptget install now-satisfiable -s