]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-470115-new-and-tighten-recommends
rework hashsum verification in the acquire system
[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
DK
51Building dependency tree...
52The following extra packages will be installed:
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
DK
63Building dependency tree...
64The following extra packages will be installed:
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
DK
75Building dependency tree...
76The following extra packages will be installed:
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
DK
87Building dependency tree...
88The following extra packages will be installed:
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
DK
99Building dependency tree...
100The following extra packages will be installed:
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
DK
113Building dependency tree...
114The following extra packages will be installed:
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
DK
125Building dependency tree...
126The following extra packages will be installed:
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
DK
137Building dependency tree...
138The following extra packages will be installed:
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
DK
153Building dependency tree...
154The following extra packages will be installed:
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
DK
167Building dependency tree...
168The following packages will be upgraded:
169 now-satisfiable
1701 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
171Inst now-satisfiable [1] (2 unstable [all])
172Conf now-satisfiable (2 unstable [all])' aptget install now-satisfiable -s