]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-showlist-orgroup-in-recommends
bunch of micro-optimizations for depcache
[apt.git] / test / integration / test-apt-showlist-orgroup-in-recommends
CommitLineData
9112f777
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
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
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 --no-install-recommends
43testsuccessequal 'Reading package lists...
44Building dependency tree...
45Suggested packages:
46 ccc
47Recommended packages:
48 aaa bbb
49The following packages will be REMOVED:
50 aaa
51The following NEW packages will be installed:
52 simple
530 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
54Remv aaa [1]
55Inst simple (1 unstable [all])
56Conf simple (1 unstable [all])' aptget install simple aaa- -s --no-install-recommends
57testsuccessequal 'Reading package lists...
58Building dependency tree...
59The following NEW packages will be installed:
60 orgroup
610 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
62Inst orgroup (1 unstable [all])
63Conf orgroup (1 unstable [all])' aptget install orgroup -s --no-install-recommends
64testsuccessequal 'Reading package lists...
65Building dependency tree...
66Recommended packages:
67 aaa | bbb
68The following packages will be REMOVED:
69 aaa
70The following NEW packages will be installed:
71 orgroup
720 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
73Remv aaa [1]
74Inst orgroup (1 unstable [all])
75Conf orgroup (1 unstable [all])' aptget install orgroup aaa- -s --no-install-recommends
76testsuccessequal 'Reading package lists...
77Building dependency tree...
78Suggested packages:
79 yyy | zzz
80Recommended packages:
81 xxx | yyy
82The following NEW packages will be installed:
83 orgroup2
840 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
85Inst orgroup2 (1 unstable [all])
86Conf orgroup2 (1 unstable [all])' aptget install orgroup2 -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 orgroup3
950 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
96Inst orgroup2 (1 unstable [all])
97Inst orgroup3 (1 unstable [all])
98Conf orgroup2 (1 unstable [all])
99Conf orgroup3 (1 unstable [all])' aptget install orgroup2 orgroup3 -s --no-install-recommends
100testsuccessequal 'Reading package lists...
101Building dependency tree...
102Suggested packages:
103 yyy | zzz zzz
104Recommended packages:
105 xxx | yyy xxx
106The following NEW packages will be installed:
107 orgroup2 orgroup4
1080 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
109Inst orgroup2 (1 unstable [all])
110Inst orgroup4 (1 unstable [all])
111Conf orgroup2 (1 unstable [all])
112Conf orgroup4 (1 unstable [all])' aptget install orgroup2 orgroup4 -s --no-install-recommends
113testsuccessequal 'Reading package lists...
114Building dependency tree...
115Suggested packages:
116 yyy (1)
117 | zzz (1)
118 zzz (1)
119Recommended packages:
120 xxx
121 | yyy (1)
122 xxx
123The following NEW packages will be installed:
124 orgroup2 (1)
125 orgroup4 (1)
1260 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
127Inst orgroup2 (1 unstable [all])
128Inst orgroup4 (1 unstable [all])
129Conf orgroup2 (1 unstable [all])
130Conf orgroup4 (1 unstable [all])' aptget install orgroup2 orgroup4 -s -V --no-install-recommends
131testsuccessequal 'Reading package lists...
132Building dependency tree...
133Suggested packages:
134 zzz (1)
135Recommended packages:
136 xxx
137The following NEW packages will be installed:
138 orgroup2 (1)
139 orgroup4 (1)
140 yyy (1)
1410 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
142Inst orgroup2 (1 unstable [all])
143Inst orgroup4 (1 unstable [all])
144Inst yyy (1 unstable [all])
145Conf orgroup2 (1 unstable [all])
146Conf orgroup4 (1 unstable [all])
147Conf yyy (1 unstable [all])' aptget install orgroup2 orgroup4 yyy -s -V --no-install-recommends
148testsuccessequal 'Reading package lists...
149Building dependency tree...
150Suggested packages:
151 ccc | ddd
152Recommended packages:
153 aaa | bbb
154The following NEW packages will be installed:
155 versionedor
1560 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
157Inst versionedor (1 unstable [all])
158Conf versionedor (1 unstable [all])' aptget install versionedor -s --no-install-recommends