4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
'i386' 'amd64'
9 buildsimplenativepackage
'libc6' 'i386' '1.0' 'stable'
10 buildsimplenativepackage
'libc6' 'amd64' '1.0' 'stable'
11 buildsimplenativepackage
'libc6' 'all' '2.0' 'testing'
13 buildsimplenativepackage
'foobar' 'i386' '1.0' 'stable' 'Depends: libc6'
14 buildsimplenativepackage
'foobar' 'amd64' '1.0' 'stable' 'Depends: libc6'
18 testsuccess aptget
install libc6
:i386
-t stable
-y
19 testdpkginstalled libc6
:i386
20 testsuccessequal
'Reading package lists...
21 Building dependency tree...
22 Reading state information...
23 The following packages will be REMOVED:
25 The following NEW packages will be installed:
27 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
29 Inst libc6:amd64 (1.0 stable [amd64])
30 Conf libc6:amd64 (1.0 stable [amd64])' aptget
install libc6
:amd64
-s -t stable
32 testsuccessequal
'Reading package lists...
33 Building dependency tree...
34 Reading state information...
35 The following NEW packages will be installed:
37 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
38 Inst foobar (1.0 stable [i386])
39 Conf foobar (1.0 stable [i386])' aptget
install foobar
-st stable
41 testsuccessequal
'Reading package lists...
42 Building dependency tree...
43 Reading state information...
44 The following extra packages will be installed:
46 The following packages will be REMOVED:
48 The following NEW packages will be installed:
49 foobar:amd64 libc6:amd64
50 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
52 Inst libc6:amd64 (1.0 stable [amd64])
53 Inst foobar:amd64 (1.0 stable [amd64])
54 Conf libc6:amd64 (1.0 stable [amd64])
55 Conf foobar:amd64 (1.0 stable [amd64])' aptget
install foobar
:amd64
-st stable
57 testsuccessequal
'Reading package lists...
58 Building dependency tree...
59 Reading state information...
60 The following NEW packages will be installed:
62 The following packages will be upgraded:
64 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
65 Inst libc6 [1.0] (2.0 testing [all])
66 Inst foobar (1.0 stable [i386])
67 Conf libc6 (2.0 testing [all])
68 Conf foobar (1.0 stable [i386])' aptget
install foobar
/stable libc6
-st testing
70 testsuccessequal
'Reading package lists...
71 Building dependency tree...
72 Reading state information...
73 Calculating upgrade...
74 The following packages will be upgraded:
76 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
77 Inst libc6 [1.0] (2.0 testing [all])
78 Conf libc6 (2.0 testing [all])' aptget upgrade
-t testing
-s
79 # FIXME: on amd64 systems this test wouldn't run with a real upgrade
80 # as APT (here i386) disagree about the native architecture, so
82 #aptget upgrade -y -qq >/dev/null 2>&1
83 testsuccess aptget purge libc6
-y
84 testsuccess aptget
install libc6
:i386
-y
85 testdpkginstalled libc6
:all
87 testsuccessequal
'Reading package lists...
88 Building dependency tree...
89 Reading state information...
90 The following NEW packages will be installed:
92 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
93 Inst foobar (1.0 stable [i386])
94 Conf foobar (1.0 stable [i386])' aptget
install foobar
/stable
-st testing
96 testsuccessequal
'Reading package lists...
97 Building dependency tree...
98 Reading state information...
99 The following extra packages will be installed:
101 The following packages will be REMOVED:
103 The following NEW packages will be installed:
104 foobar:amd64 libc6:amd64
105 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
107 Inst libc6:amd64 (1.0 stable [amd64])
108 Inst foobar:amd64 (1.0 stable [amd64])
109 Conf libc6:amd64 (1.0 stable [amd64])
110 Conf foobar:amd64 (1.0 stable [amd64])' aptget
install foobar
:amd
64/stable
-st testing
113 testsuccessequal
"Reading package lists...
114 Building dependency tree...
115 Reading state information...
116 Selected version '1.0' (stable [i386]) for 'libc6'
117 The following packages will be DOWNGRADED:
119 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
120 Inst libc6 [2.0] (1.0 stable [i386])
121 Conf libc6 (1.0 stable [i386])" aptget
install libc
6/stable
-s -q=0
124 buildsimplenativepackage
'libc6-same' 'i386' '1.0' 'stable' 'Multi-Arch: same'
125 buildsimplenativepackage
'libc6-same' 'amd64' '1.0' 'stable' 'Multi-Arch: same'
126 buildsimplenativepackage
'libc6-same' 'all' '2.0' 'testing'
128 buildsimplenativepackage
'foobar-same' 'i386' '1.0' 'stable' 'Depends: libc6-same'
129 buildsimplenativepackage
'foobar-same' 'amd64' '1.0' 'stable' 'Depends: libc6-same'
133 testsuccess aptget
install libc6
-same:i386
-t stable
-y
134 testdpkginstalled libc6
-same:i386
136 testsuccessequal
'Reading package lists...
137 Building dependency tree...
138 Reading state information...
139 The following NEW packages will be installed:
141 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
142 Inst foobar-same (1.0 stable [i386])
143 Conf foobar-same (1.0 stable [i386])' aptget
install foobar
-same -st stable
145 testsuccessequal
'Reading package lists...
146 Building dependency tree...
147 Reading state information...
148 The following extra packages will be installed:
150 The following NEW packages will be installed:
151 foobar-same:amd64 libc6-same:amd64
152 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
153 Inst libc6-same:amd64 (1.0 stable [amd64])
154 Inst foobar-same:amd64 (1.0 stable [amd64])
155 Conf libc6-same:amd64 (1.0 stable [amd64])
156 Conf foobar-same:amd64 (1.0 stable [amd64])' aptget
install foobar
-same:amd64
-st stable
158 testsuccessequal
'Reading package lists...
159 Building dependency tree...
160 Reading state information...
161 The following NEW packages will be installed:
163 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
164 Inst libc6-same:amd64 (1.0 stable [amd64])
165 Conf libc6-same:amd64 (1.0 stable [amd64])' aptget
install libc6
-same:amd64
-s -t stable
167 # FIXME: We should test installing libc6-same:amd64 here, but dpkg doesn't allow it currently
169 testsuccessequal
'Reading package lists...
170 Building dependency tree...
171 Reading state information...
172 Calculating upgrade...
173 The following packages will be upgraded:
175 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
176 Inst libc6-same [1.0] (2.0 testing [all])
177 Conf libc6-same (2.0 testing [all])' aptget upgrade
-t testing
-s
178 # FIXME: on amd64 systems this test wouldn't run with a real upgrade
179 # as APT (here i386) disagree about the native architecture, so
181 #aptget upgrade -y -qq >/dev/null 2>&1
182 testsuccess aptget purge libc6
-same -y
183 testsuccess aptget
install libc6
-same:i386
-y
184 testdpkginstalled libc6
-same:all
187 testsuccessequal
"Reading package lists...
188 Building dependency tree...
189 Reading state information...
190 Selected version '1.0' (stable [i386]) for 'libc6-same'
191 The following packages will be DOWNGRADED:
193 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
194 Inst libc6-same [2.0] (1.0 stable [i386])
195 Conf libc6-same (1.0 stable [i386])" aptget
install libc6
-same/stable
-s -q=0
197 testsuccessequal
'Reading package lists...
198 Building dependency tree...
199 Reading state information...
200 The following NEW packages will be installed:
202 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
203 Inst foobar-same (1.0 stable [i386])
204 Conf foobar-same (1.0 stable [i386])' aptget
install foobar
-same/stable
-st testing
206 testsuccessequal
'Reading package lists...
207 Building dependency tree...
208 Reading state information...
209 The following extra packages will be installed:
211 The following packages will be REMOVED:
213 The following NEW packages will be installed:
214 foobar-same:amd64 libc6-same:amd64
215 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
216 Remv libc6-same [2.0]
217 Inst libc6-same:amd64 (1.0 stable [amd64])
218 Inst foobar-same:amd64 (1.0 stable [amd64])
219 Conf libc6-same:amd64 (1.0 stable [amd64])
220 Conf foobar-same:amd64 (1.0 stable [amd64])' aptget
install foobar
-same:amd
64/stable
-st testing