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