summaryrefslogtreecommitdiffstats
path: root/test/integration/test-apt-showlist-orgroup-in-recommends
blob: a03c367f40a5e7709b24b5aaab1802333cf3edeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
#!/bin/sh
set -e

TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"

setupenvironment
configarchitecture 'i386'

# simple case
insertinstalledpackage 'aaa' 'all' '1'
insertinstalledpackage 'ddd' 'all' '1'
insertpackage 'unstable' 'aaa' 'all' '1'
insertpackage 'unstable' 'ddd' 'all' '1'
insertpackage 'unstable' 'yyy' 'all' '1'
insertpackage 'unstable' 'zzz' 'all' '1:1'
insertpackage 'unstable' 'simple' 'all' '1' 'Recommends: aaa, bbb
Suggests: ccc, ddd'
insertpackage 'unstable' 'orgroup' 'all' '1' 'Recommends: aaa | bbb
Suggests: ccc | ddd'
insertpackage 'unstable' 'orgroup2' 'all' '1' 'Recommends: xxx | yyy
Suggests: yyy | zzz'
insertpackage 'unstable' 'orgroup3' 'all' '1' 'Recommends: xxx | yyy
Suggests: yyy | zzz'
insertpackage 'unstable' 'orgroup4' 'all' '1' 'Recommends: xxx
Suggests: zzz'
insertpackage 'unstable' 'versionedor' 'all' '1' 'Recommends: aaa (>> 2) | bbb
Suggests: ccc | ddd (>> 2)'

setupaptarchive

testsuccessequal 'Reading package lists...
Building dependency tree...
Suggested packages:
  ccc
Recommended packages:
  bbb
The following NEW packages will be installed:
  simple
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst simple (1 unstable [all])
Conf simple (1 unstable [all])' aptget install simple -s --install-recommends --install-suggests
testsuccessequal 'Reading package lists...
Building dependency tree...
Suggested packages:
  ccc
Recommended packages:
  bbb
The following NEW packages will be installed:
  simple
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst simple (1 unstable [all])
Conf simple (1 unstable [all])' aptget install simple -s --no-install-recommends
testsuccessequal 'Reading package lists...
Building dependency tree...
Suggested packages:
  ccc
Recommended packages:
  aaa bbb
The following packages will be REMOVED:
  aaa
The following NEW packages will be installed:
  simple
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Remv aaa [1]
Inst simple (1 unstable [all])
Conf simple (1 unstable [all])' aptget install simple aaa- -s --no-install-recommends
testsuccessequal 'Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
  orgroup
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst orgroup (1 unstable [all])
Conf orgroup (1 unstable [all])' aptget install orgroup -s --no-install-recommends
testsuccessequal 'Reading package lists...
Building dependency tree...
Recommended packages:
  aaa | bbb
The following packages will be REMOVED:
  aaa
The following NEW packages will be installed:
  orgroup
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Remv aaa [1]
Inst orgroup (1 unstable [all])
Conf orgroup (1 unstable [all])' aptget install orgroup aaa- -s --no-install-recommends
testsuccessequal 'Reading package lists...
Building dependency tree...
Suggested packages:
  yyy | zzz
Recommended packages:
  xxx | yyy
The following NEW packages will be installed:
  orgroup2
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst orgroup2 (1 unstable [all])
Conf orgroup2 (1 unstable [all])' aptget install orgroup2 -s --no-install-recommends
testsuccessequal 'Reading package lists...
Building dependency tree...
Suggested packages:
  yyy | zzz
Recommended packages:
  xxx | yyy
The following NEW packages will be installed:
  orgroup2 orgroup3
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst orgroup2 (1 unstable [all])
Inst orgroup3 (1 unstable [all])
Conf orgroup2 (1 unstable [all])
Conf orgroup3 (1 unstable [all])' aptget install orgroup2 orgroup3 -s --no-install-recommends
testsuccessequal 'Reading package lists...
Building dependency tree...
Suggested packages:
  yyy | zzz zzz
Recommended packages:
  xxx | yyy xxx
The following NEW packages will be installed:
  orgroup2 orgroup4
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst orgroup2 (1 unstable [all])
Inst orgroup4 (1 unstable [all])
Conf orgroup2 (1 unstable [all])
Conf orgroup4 (1 unstable [all])' aptget install orgroup2 orgroup4 -s --no-install-recommends
testsuccessequal 'Reading package lists...
Building dependency tree...
Suggested packages:
   yyy (1)
   | zzz (1:1)
   zzz (1:1)
Recommended packages:
   xxx
   | yyy (1)
   xxx
The following NEW packages will be installed:
   orgroup2 (1)
   orgroup4 (1)
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst orgroup2 (1 unstable [all])
Inst orgroup4 (1 unstable [all])
Conf orgroup2 (1 unstable [all])
Conf orgroup4 (1 unstable [all])' aptget install orgroup2 orgroup4 -s -V --no-install-recommends
testsuccessequal 'Reading package lists...
Building dependency tree...
Suggested packages:
   zzz (1:1)
Recommended packages:
   xxx
The following NEW packages will be installed:
   orgroup2 (1)
   orgroup4 (1)
   yyy (1)
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Inst orgroup2 (1 unstable [all])
Inst orgroup4 (1 unstable [all])
Inst yyy (1 unstable [all])
Conf orgroup2 (1 unstable [all])
Conf orgroup4 (1 unstable [all])
Conf yyy (1 unstable [all])' aptget install orgroup2 orgroup4 yyy -s -V --no-install-recommends
testsuccessequal 'Reading package lists...
Building dependency tree...
Suggested packages:
  ccc | ddd
Recommended packages:
  aaa | bbb
The following NEW packages will be installed:
  versionedor
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst versionedor (1 unstable [all])
Conf versionedor (1 unstable [all])' aptget install versionedor -s --no-install-recommends

SHOWSUGGEST='Reading package lists...
Building dependency tree...
Suggested packages:
  zzz
Recommended packages:
  xxx
The following NEW packages will be installed:
  orgroup4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst orgroup4 (1 unstable [all])
Conf orgroup4 (1 unstable [all])'
INSTSUGGEST='Reading package lists...
Building dependency tree...
The following additional packages will be installed:
  zzz
Recommended packages:
  xxx
The following NEW packages will be installed:
  orgroup4 zzz
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst orgroup4 (1 unstable [all])
Inst zzz (1:1 unstable [all])
Conf orgroup4 (1 unstable [all])
Conf zzz (1:1 unstable [all])'
testsuccessequal "$SHOWSUGGEST" aptget install orgroup4 -s
testsuccessequal "$INSTSUGGEST" aptget install orgroup4 --install-suggests -s
echo 'Binary::apt-get::APT::Install-Suggests "true";' > rootdir/etc/apt/apt.conf.d/99binaryspecific.conf
testsuccessequal "$INSTSUGGEST" aptget install orgroup4 -s
testsuccessequal "$SHOWSUGGEST" apt install orgroup4 -s
testsuccessequal "$SHOWSUGGEST" aptget install orgroup4 -s --no-install-suggests