]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-showlist-orgroup-in-recommends
Allow lowering trust level of a hash via config
[apt.git] / test / integration / test-apt-showlist-orgroup-in-recommends
CommitLineData
9112f777
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
9112f777
DK
6
7setupenvironment
8configarchitecture 'i386'
9
10# simple case
11insertinstalledpackage 'aaa' 'all' '1'
12insertinstalledpackage 'ddd' 'all' '1'
13insertpackage 'unstable' 'aaa' 'all' '1'
14insertpackage 'unstable' 'ddd' 'all' '1'
15insertpackage 'unstable' 'yyy' 'all' '1'
fd23676e 16insertpackage 'unstable' 'zzz' 'all' '1:1'
9112f777
DK
17insertpackage 'unstable' 'simple' 'all' '1' 'Recommends: aaa, bbb
18Suggests: ccc, ddd'
19insertpackage 'unstable' 'orgroup' 'all' '1' 'Recommends: aaa | bbb
20Suggests: ccc | ddd'
21insertpackage 'unstable' 'orgroup2' 'all' '1' 'Recommends: xxx | yyy
22Suggests: yyy | zzz'
23insertpackage 'unstable' 'orgroup3' 'all' '1' 'Recommends: xxx | yyy
24Suggests: yyy | zzz'
25insertpackage 'unstable' 'orgroup4' 'all' '1' 'Recommends: xxx
26Suggests: zzz'
27insertpackage 'unstable' 'versionedor' 'all' '1' 'Recommends: aaa (>> 2) | bbb
28Suggests: ccc | ddd (>> 2)'
29
30setupaptarchive
31
c3ded84c
DK
32testsuccessequal 'Reading package lists...
33Building dependency tree...
34Suggested packages:
35 ccc
36Recommended packages:
37 bbb
38The following NEW packages will be installed:
39 simple
400 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
41Inst simple (1 unstable [all])
42Conf simple (1 unstable [all])' aptget install simple -s --install-recommends --install-suggests
9112f777
DK
43testsuccessequal 'Reading package lists...
44Building dependency tree...
45Suggested packages:
46 ccc
47Recommended packages:
48 bbb
49The following NEW packages will be installed:
50 simple
510 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
52Inst simple (1 unstable [all])
53Conf simple (1 unstable [all])' aptget install simple -s --no-install-recommends
54testsuccessequal 'Reading package lists...
55Building dependency tree...
56Suggested packages:
57 ccc
58Recommended packages:
59 aaa bbb
60The following packages will be REMOVED:
61 aaa
62The following NEW packages will be installed:
63 simple
640 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
65Remv aaa [1]
66Inst simple (1 unstable [all])
67Conf simple (1 unstable [all])' aptget install simple aaa- -s --no-install-recommends
68testsuccessequal 'Reading package lists...
69Building dependency tree...
70The following NEW packages will be installed:
71 orgroup
720 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
73Inst orgroup (1 unstable [all])
74Conf orgroup (1 unstable [all])' aptget install orgroup -s --no-install-recommends
75testsuccessequal 'Reading package lists...
76Building dependency tree...
77Recommended packages:
78 aaa | bbb
79The following packages will be REMOVED:
80 aaa
81The following NEW packages will be installed:
82 orgroup
830 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
84Remv aaa [1]
85Inst orgroup (1 unstable [all])
86Conf orgroup (1 unstable [all])' aptget install orgroup aaa- -s --no-install-recommends
87testsuccessequal 'Reading package lists...
88Building dependency tree...
89Suggested packages:
90 yyy | zzz
91Recommended packages:
92 xxx | yyy
93The following NEW packages will be installed:
94 orgroup2
950 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
96Inst orgroup2 (1 unstable [all])
97Conf orgroup2 (1 unstable [all])' aptget install orgroup2 -s --no-install-recommends
98testsuccessequal 'Reading package lists...
99Building dependency tree...
100Suggested packages:
101 yyy | zzz
102Recommended packages:
103 xxx | yyy
104The following NEW packages will be installed:
105 orgroup2 orgroup3
1060 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
107Inst orgroup2 (1 unstable [all])
108Inst orgroup3 (1 unstable [all])
109Conf orgroup2 (1 unstable [all])
110Conf orgroup3 (1 unstable [all])' aptget install orgroup2 orgroup3 -s --no-install-recommends
111testsuccessequal 'Reading package lists...
112Building dependency tree...
113Suggested packages:
114 yyy | zzz zzz
115Recommended packages:
116 xxx | yyy xxx
117The following NEW packages will be installed:
118 orgroup2 orgroup4
1190 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
120Inst orgroup2 (1 unstable [all])
121Inst orgroup4 (1 unstable [all])
122Conf orgroup2 (1 unstable [all])
123Conf orgroup4 (1 unstable [all])' aptget install orgroup2 orgroup4 -s --no-install-recommends
124testsuccessequal 'Reading package lists...
125Building dependency tree...
126Suggested packages:
127 yyy (1)
a38cec81
DK
128 | zzz (1:1)
129 zzz (1:1)
9112f777
DK
130Recommended packages:
131 xxx
132 | yyy (1)
133 xxx
134The following NEW packages will be installed:
135 orgroup2 (1)
136 orgroup4 (1)
1370 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
138Inst orgroup2 (1 unstable [all])
139Inst orgroup4 (1 unstable [all])
140Conf orgroup2 (1 unstable [all])
141Conf orgroup4 (1 unstable [all])' aptget install orgroup2 orgroup4 -s -V --no-install-recommends
142testsuccessequal 'Reading package lists...
143Building dependency tree...
144Suggested packages:
a38cec81 145 zzz (1:1)
9112f777
DK
146Recommended packages:
147 xxx
148The following NEW packages will be installed:
149 orgroup2 (1)
150 orgroup4 (1)
151 yyy (1)
1520 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
153Inst orgroup2 (1 unstable [all])
154Inst orgroup4 (1 unstable [all])
155Inst yyy (1 unstable [all])
156Conf orgroup2 (1 unstable [all])
157Conf orgroup4 (1 unstable [all])
158Conf yyy (1 unstable [all])' aptget install orgroup2 orgroup4 yyy -s -V --no-install-recommends
159testsuccessequal 'Reading package lists...
160Building dependency tree...
161Suggested packages:
162 ccc | ddd
163Recommended packages:
164 aaa | bbb
165The following NEW packages will be installed:
166 versionedor
1670 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
168Inst versionedor (1 unstable [all])
169Conf versionedor (1 unstable [all])' aptget install versionedor -s --no-install-recommends
c3ded84c
DK
170
171SHOWSUGGEST='Reading package lists...
172Building dependency tree...
173Suggested packages:
174 zzz
175Recommended packages:
176 xxx
177The following NEW packages will be installed:
178 orgroup4
1790 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
180Inst orgroup4 (1 unstable [all])
181Conf orgroup4 (1 unstable [all])'
182INSTSUGGEST='Reading package lists...
183Building dependency tree...
184The following additional packages will be installed:
185 zzz
186Recommended packages:
187 xxx
188The following NEW packages will be installed:
189 orgroup4 zzz
1900 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
191Inst orgroup4 (1 unstable [all])
192Inst zzz (1:1 unstable [all])
193Conf orgroup4 (1 unstable [all])
194Conf zzz (1:1 unstable [all])'
195testsuccessequal "$SHOWSUGGEST" aptget install orgroup4 -s
196testsuccessequal "$INSTSUGGEST" aptget install orgroup4 --install-suggests -s
197echo 'Binary::apt-get::APT::Install-Suggests "true";' > rootdir/etc/apt/apt.conf.d/99binaryspecific.conf
198testsuccessequal "$INSTSUGGEST" aptget install orgroup4 -s
199testsuccessequal "$SHOWSUGGEST" apt install orgroup4 -s
200testsuccessequal "$SHOWSUGGEST" aptget install orgroup4 -s --no-install-suggests