]>
Commit | Line | Data |
---|---|---|
6a910c9d DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | setupenvironment | |
7 | configarchitecture "i386" "amd64" | |
8 | ||
9 | buildsimplenativepackage 'peace-dpkg' 'all' '1.0' 'stable' | |
10 | ||
11 | buildsimplenativepackage 'libc6' 'i386' '1.0' 'stable' | |
12 | buildsimplenativepackage 'libc6' 'amd64' '1.0' 'stable' | |
13 | buildsimplenativepackage 'libc6' 'all' '2.0' 'testing' | |
14 | ||
15 | buildsimplenativepackage 'foobar' 'i386' '1.0' 'stable' 'Depends: libc6' | |
16 | buildsimplenativepackage 'foobar' 'amd64' '1.0' 'stable' 'Depends: libc6' | |
17 | ||
18 | setupaptarchive | |
19 | ||
20 | aptget install peace-dpkg:i386 -y -qq 2>&1 > /dev/null | |
21 | testdpkginstalled peace-dpkg | |
22 | ||
23 | aptget install libc6:i386 -t stable -y -qq 2>&1 > /dev/null | |
24 | testdpkginstalled libc6 | |
25 | testequal 'Reading package lists... | |
26 | Building dependency tree... | |
27 | Reading state information... | |
28 | The following packages will be REMOVED: | |
29 | libc6 | |
30 | The following NEW packages will be installed: | |
31 | libc6:amd64 | |
32 | 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. | |
33 | Remv libc6 [1.0] | |
34 | Inst libc6:amd64 (1.0 stable [amd64]) | |
35 | Conf libc6:amd64 (1.0 stable [amd64])' aptget install libc6:amd64 -s -t stable | |
36 | ||
37 | testequal 'Reading package lists... | |
38 | Building dependency tree... | |
39 | Reading state information... | |
40 | The following NEW packages will be installed: | |
41 | foobar | |
42 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
43 | Inst foobar (1.0 stable [i386]) | |
44 | Conf foobar (1.0 stable [i386])' aptget install foobar -st stable | |
45 | ||
46 | testequal 'Reading package lists... | |
47 | Building dependency tree... | |
48 | Reading state information... | |
49 | The following extra packages will be installed: | |
50 | libc6:amd64 | |
51 | The following packages will be REMOVED: | |
52 | libc6 | |
53 | The following NEW packages will be installed: | |
54 | foobar:amd64 libc6:amd64 | |
55 | 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. | |
56 | Remv libc6 [1.0] | |
57 | Inst libc6:amd64 (1.0 stable [amd64]) | |
58 | Inst foobar:amd64 (1.0 stable [amd64]) | |
59 | Conf libc6:amd64 (1.0 stable [amd64]) | |
60 | Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64 -st stable | |
61 | ||
6a910c9d DK |
62 | testequal 'Reading package lists... |
63 | Building dependency tree... | |
64 | Reading state information... | |
6a910c9d | 65 | The following NEW packages will be installed: |
28166356 DK |
66 | foobar |
67 | The following packages will be upgraded: | |
68 | libc6 | |
69 | 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
ca238ede | 70 | Inst libc6 [1.0] (2.0 testing [all]) |
6a910c9d | 71 | Inst foobar (1.0 stable [i386]) |
ca238ede | 72 | Conf libc6 (2.0 testing [all]) |
6a910c9d DK |
73 | Conf foobar (1.0 stable [i386])' aptget install foobar/stable libc6 -st testing |
74 | ||
6a910c9d DK |
75 | testequal 'Reading package lists... |
76 | Building dependency tree... | |
77 | Reading state information... | |
28166356 | 78 | The following packages will be upgraded: |
6a910c9d | 79 | libc6 |
28166356 | 80 | 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
ca238ede DK |
81 | Inst libc6 [1.0] (2.0 testing [all]) |
82 | Conf libc6 (2.0 testing [all])' aptget upgrade -t testing -s | |
6a910c9d DK |
83 | aptget upgrade -y -qq 2>&1 > /dev/null |
84 | testdpkginstalled libc6 | |
85 | ||
86 | testequal 'Reading package lists... | |
87 | Building dependency tree... | |
88 | Reading state information... | |
89 | The following NEW packages will be installed: | |
90 | foobar | |
91 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
28166356 | 92 | Inst foobar (1.0 stable [i386]) |
6a910c9d DK |
93 | Conf foobar (1.0 stable [i386])' aptget install foobar/stable -st testing |
94 | ||
95 | testequal 'Reading package lists... | |
96 | Building dependency tree... | |
97 | Reading state information... | |
28166356 DK |
98 | The following extra packages will be installed: |
99 | libc6:amd64 | |
100 | The following packages will be REMOVED: | |
101 | libc6 | |
6a910c9d | 102 | The following NEW packages will be installed: |
28166356 DK |
103 | foobar:amd64 libc6:amd64 |
104 | 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. | |
105 | Remv libc6 [2.0] | |
106 | Inst libc6:amd64 (1.0 stable [amd64]) | |
6a910c9d | 107 | Inst foobar:amd64 (1.0 stable [amd64]) |
28166356 | 108 | Conf libc6:amd64 (1.0 stable [amd64]) |
6a910c9d DK |
109 | Conf foobar:amd64 (1.0 stable [amd64])' aptget install foobar:amd64/stable -st testing |
110 | ||
111 | ||
6a910c9d DK |
112 | testequal "Reading package lists... |
113 | Building dependency tree... | |
114 | Reading state information... | |
115 | Selected version '1.0' (stable [i386]) for 'libc6' | |
28166356 | 116 | The following packages will be DOWNGRADED: |
6a910c9d | 117 | libc6 |
28166356 DK |
118 | 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded. |
119 | Inst libc6 [2.0] (1.0 stable [i386]) | |
6a910c9d DK |
120 | Conf libc6 (1.0 stable [i386])" aptget install libc6/stable -s -q=0 |
121 | ||
122 | ||
123 | buildsimplenativepackage 'libc6-same' 'i386' '1.0' 'stable' 'Multi-Arch: same' | |
124 | buildsimplenativepackage 'libc6-same' 'amd64' '1.0' 'stable' 'Multi-Arch: same' | |
125 | buildsimplenativepackage 'libc6-same' 'all' '2.0' 'testing' | |
126 | ||
127 | buildsimplenativepackage 'foobar-same' 'i386' '1.0' 'stable' 'Depends: libc6-same' | |
128 | buildsimplenativepackage 'foobar-same' 'amd64' '1.0' 'stable' 'Depends: libc6-same' | |
129 | ||
130 | setupaptarchive | |
131 | ||
132 | aptget install libc6-same:i386 -t stable -y -qq 2>&1 > /dev/null | |
133 | testdpkginstalled libc6-same | |
134 | ||
135 | testequal 'Reading package lists... | |
136 | Building dependency tree... | |
137 | Reading state information... | |
138 | The following NEW packages will be installed: | |
139 | foobar-same | |
140 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
141 | Inst foobar-same (1.0 stable [i386]) | |
142 | Conf foobar-same (1.0 stable [i386])' aptget install foobar-same -st stable | |
143 | ||
144 | testequal 'Reading package lists... | |
145 | Building dependency tree... | |
146 | Reading state information... | |
147 | The following extra packages will be installed: | |
148 | libc6-same:amd64 | |
149 | The following NEW packages will be installed: | |
150 | foobar-same:amd64 libc6-same:amd64 | |
151 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
152 | Inst libc6-same:amd64 (1.0 stable [amd64]) | |
153 | Inst foobar-same:amd64 (1.0 stable [amd64]) | |
154 | Conf libc6-same:amd64 (1.0 stable [amd64]) | |
155 | Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64 -st stable | |
156 | ||
157 | testequal 'Reading package lists... | |
158 | Building dependency tree... | |
159 | Reading state information... | |
160 | The following NEW packages will be installed: | |
161 | libc6-same:amd64 | |
162 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
163 | Inst libc6-same:amd64 (1.0 stable [amd64]) | |
164 | Conf libc6-same:amd64 (1.0 stable [amd64])' aptget install libc6-same:amd64 -s -t stable | |
165 | ||
166 | # FIXME: We should test installing libc6-same:amd64 here, but dpkg doesn't allow it currently | |
167 | ||
6a910c9d DK |
168 | testequal 'Reading package lists... |
169 | Building dependency tree... | |
170 | Reading state information... | |
28166356 | 171 | The following packages will be upgraded: |
6a910c9d | 172 | libc6-same |
28166356 | 173 | 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
ca238ede DK |
174 | Inst libc6-same [1.0] (2.0 testing [all]) |
175 | Conf libc6-same (2.0 testing [all])' aptget upgrade -t testing -s | |
6a910c9d DK |
176 | aptget upgrade -y -qq 2>&1 > /dev/null |
177 | testdpkginstalled libc6-same | |
178 | ||
6a910c9d DK |
179 | testequal "Reading package lists... |
180 | Building dependency tree... | |
181 | Reading state information... | |
182 | Selected version '1.0' (stable [i386]) for 'libc6-same' | |
28166356 | 183 | The following packages will be DOWNGRADED: |
6a910c9d | 184 | libc6-same |
28166356 DK |
185 | 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded. |
186 | Inst libc6-same [2.0] (1.0 stable [i386]) | |
6a910c9d DK |
187 | Conf libc6-same (1.0 stable [i386])" aptget install libc6-same/stable -s -q=0 |
188 | ||
189 | testequal 'Reading package lists... | |
190 | Building dependency tree... | |
191 | Reading state information... | |
192 | The following NEW packages will be installed: | |
193 | foobar-same | |
194 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
28166356 | 195 | Inst foobar-same (1.0 stable [i386]) |
6a910c9d DK |
196 | Conf foobar-same (1.0 stable [i386])' aptget install foobar-same/stable -st testing |
197 | ||
198 | testequal 'Reading package lists... | |
199 | Building dependency tree... | |
200 | Reading state information... | |
28166356 DK |
201 | The following extra packages will be installed: |
202 | libc6-same:amd64 | |
203 | The following packages will be REMOVED: | |
204 | libc6-same | |
6a910c9d | 205 | The following NEW packages will be installed: |
28166356 DK |
206 | foobar-same:amd64 libc6-same:amd64 |
207 | 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. | |
208 | Remv libc6-same [2.0] | |
209 | Inst libc6-same:amd64 (1.0 stable [amd64]) | |
6a910c9d | 210 | Inst foobar-same:amd64 (1.0 stable [amd64]) |
28166356 | 211 | Conf libc6-same:amd64 (1.0 stable [amd64]) |
6a910c9d | 212 | Conf foobar-same:amd64 (1.0 stable [amd64])' aptget install foobar-same:amd64/stable -st testing |