]> git.saurik.com Git - apt.git/blob - test/integration/test-apt-showlist-orgroup-in-recommends
tests: check apt-get source release name switching with -t
[apt.git] / test / integration / test-apt-showlist-orgroup-in-recommends
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 --no-install-recommends
43 testsuccessequal 'Reading package lists...
44 Building dependency tree...
45 Suggested packages:
46 ccc
47 Recommended packages:
48 aaa bbb
49 The following packages will be REMOVED:
50 aaa
51 The following NEW packages will be installed:
52 simple
53 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
54 Remv aaa [1]
55 Inst simple (1 unstable [all])
56 Conf simple (1 unstable [all])' aptget install simple aaa- -s --no-install-recommends
57 testsuccessequal 'Reading package lists...
58 Building dependency tree...
59 The following NEW packages will be installed:
60 orgroup
61 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
62 Inst orgroup (1 unstable [all])
63 Conf orgroup (1 unstable [all])' aptget install orgroup -s --no-install-recommends
64 testsuccessequal 'Reading package lists...
65 Building dependency tree...
66 Recommended packages:
67 aaa | bbb
68 The following packages will be REMOVED:
69 aaa
70 The following NEW packages will be installed:
71 orgroup
72 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
73 Remv aaa [1]
74 Inst orgroup (1 unstable [all])
75 Conf orgroup (1 unstable [all])' aptget install orgroup aaa- -s --no-install-recommends
76 testsuccessequal 'Reading package lists...
77 Building dependency tree...
78 Suggested packages:
79 yyy | zzz
80 Recommended packages:
81 xxx | yyy
82 The following NEW packages will be installed:
83 orgroup2
84 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
85 Inst orgroup2 (1 unstable [all])
86 Conf orgroup2 (1 unstable [all])' aptget install orgroup2 -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 orgroup3
95 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
96 Inst orgroup2 (1 unstable [all])
97 Inst orgroup3 (1 unstable [all])
98 Conf orgroup2 (1 unstable [all])
99 Conf orgroup3 (1 unstable [all])' aptget install orgroup2 orgroup3 -s --no-install-recommends
100 testsuccessequal 'Reading package lists...
101 Building dependency tree...
102 Suggested packages:
103 yyy | zzz zzz
104 Recommended packages:
105 xxx | yyy xxx
106 The following NEW packages will be installed:
107 orgroup2 orgroup4
108 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
109 Inst orgroup2 (1 unstable [all])
110 Inst orgroup4 (1 unstable [all])
111 Conf orgroup2 (1 unstable [all])
112 Conf orgroup4 (1 unstable [all])' aptget install orgroup2 orgroup4 -s --no-install-recommends
113 testsuccessequal 'Reading package lists...
114 Building dependency tree...
115 Suggested packages:
116 yyy (1)
117 | zzz (1)
118 zzz (1)
119 Recommended packages:
120 xxx
121 | yyy (1)
122 xxx
123 The following NEW packages will be installed:
124 orgroup2 (1)
125 orgroup4 (1)
126 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
127 Inst orgroup2 (1 unstable [all])
128 Inst orgroup4 (1 unstable [all])
129 Conf orgroup2 (1 unstable [all])
130 Conf orgroup4 (1 unstable [all])' aptget install orgroup2 orgroup4 -s -V --no-install-recommends
131 testsuccessequal 'Reading package lists...
132 Building dependency tree...
133 Suggested packages:
134 zzz (1)
135 Recommended packages:
136 xxx
137 The following NEW packages will be installed:
138 orgroup2 (1)
139 orgroup4 (1)
140 yyy (1)
141 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
142 Inst orgroup2 (1 unstable [all])
143 Inst orgroup4 (1 unstable [all])
144 Inst yyy (1 unstable [all])
145 Conf orgroup2 (1 unstable [all])
146 Conf orgroup4 (1 unstable [all])
147 Conf yyy (1 unstable [all])' aptget install orgroup2 orgroup4 yyy -s -V --no-install-recommends
148 testsuccessequal 'Reading package lists...
149 Building dependency tree...
150 Suggested packages:
151 ccc | ddd
152 Recommended packages:
153 aaa | bbb
154 The following NEW packages will be installed:
155 versionedor
156 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
157 Inst versionedor (1 unstable [all])
158 Conf versionedor (1 unstable [all])' aptget install versionedor -s --no-install-recommends