]> git.saurik.com Git - apt.git/blame - test/integration/test-specific-architecture-dependencies
test exitcode as well as string equality
[apt.git] / test / integration / test-specific-architecture-dependencies
CommitLineData
cef094c2
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'i386'
8
9insertpackage 'unstable' 'libc6' 'amd64,i386' '1' 'Multi-Arch: same'
10insertinstalledpackage 'libold' 'amd64,i386' '1' 'Multi-Arch: same'
11insertinstalledpackage 'provider' 'amd64' '1' 'Provides: foo'
12
13insertpackage 'unstable' 'pre-depender' 'all' '1' 'Pre-Depends: libc6:i386'
14insertpackage 'unstable' 'depender' 'all' '1' 'Depends: libc6:i386'
15
16insertpackage 'unstable' 'breaker' 'all' '1' 'Breaks: libold (<< 2)'
17insertpackage 'unstable' 'breaker-x32' 'amd64' '1' 'Breaks: libold:i386 (<< 2)'
18insertpackage 'unstable' 'breaker-x64' 'i386' '1' 'Breaks: libold:amd64 (<< 2)'
19# conflicts with no effect
20insertpackage 'unstable' 'oldconflictor' 'all' '1' 'Conflicts: libold (<< 0)'
21insertpackage 'unstable' 'oldconflictor-x32' 'amd64' '1' 'Conflicts: libold:i386 (<< 0)'
22insertpackage 'unstable' 'oldconflictor-x64' 'i386' '1' 'Conflicts: libold:amd64 (<< 0)'
23
24insertpackage 'unstable' 'foo-depender' 'i386,amd64' '1' 'Depends: foo'
25insertpackage 'unstable' 'foo-foreign-depender' 'i386' '1' 'Depends: foo:amd64'
26
27insertpackage 'unstable' 'foo-conflictor' 'i386,amd64' '1' 'Conflicts: foo'
28insertpackage 'unstable' 'foo-foreign-conflictor' 'i386' '1' 'Conflicts: foo:amd64'
29insertpackage 'unstable' 'foo-no-conflictor' 'i386' '1' 'Conflicts: foo:i386'
30
31setupaptarchive
32
25b86db1 33testsuccessequal 'Reading package lists...
cef094c2
DK
34Building dependency tree...
35The following extra packages will be installed:
36 libc6:i386
37The following NEW packages will be installed:
38 libc6:i386 pre-depender
390 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
40Inst libc6:i386 (1 unstable [i386])
41Conf libc6:i386 (1 unstable [i386])
42Inst pre-depender (1 unstable [all])
43Conf pre-depender (1 unstable [all])' aptget install pre-depender -s
44
25b86db1 45testsuccessequal 'Reading package lists...
cef094c2
DK
46Building dependency tree...
47The following extra packages will be installed:
48 libc6:i386
49The following NEW packages will be installed:
50 depender libc6:i386
510 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
52Inst libc6:i386 (1 unstable [i386])
53Inst depender (1 unstable [all])
54Conf libc6:i386 (1 unstable [i386])
55Conf depender (1 unstable [all])' aptget install depender -s
56
25b86db1 57testsuccessequal 'Reading package lists...
cef094c2
DK
58Building dependency tree...
59The following packages will be REMOVED:
60 libold libold:i386
61The following NEW packages will be installed:
62 breaker
630 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
64Remv libold [1]
65Remv libold:i386 [1]
66Inst breaker (1 unstable [all])
67Conf breaker (1 unstable [all])' aptget install breaker -s
68
25b86db1 69testsuccessequal 'Reading package lists...
cef094c2
DK
70Building dependency tree...
71The following packages will be REMOVED:
72 libold:i386
73The following NEW packages will be installed:
74 breaker-x32
750 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
76Remv libold:i386 [1]
77Inst breaker-x32 (1 unstable [amd64])
78Conf breaker-x32 (1 unstable [amd64])' aptget install breaker-x32 -s
79
25b86db1 80testsuccessequal 'Reading package lists...
cef094c2
DK
81Building dependency tree...
82The following packages will be REMOVED:
83 libold
84The following NEW packages will be installed:
85 breaker-x64:i386
860 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
87Remv libold [1]
88Inst breaker-x64:i386 (1 unstable [i386])
89Conf breaker-x64:i386 (1 unstable [i386])' aptget install breaker-x64 -s
90
25b86db1 91testsuccessequal 'Reading package lists...
cef094c2
DK
92Building dependency tree...
93The following NEW packages will be installed:
94 oldconflictor
950 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
96Inst oldconflictor (1 unstable [all])
97Conf oldconflictor (1 unstable [all])' aptget install oldconflictor -s
98
25b86db1 99testsuccessequal 'Reading package lists...
cef094c2
DK
100Building dependency tree...
101The following NEW packages will be installed:
102 oldconflictor-x32
1030 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
104Inst oldconflictor-x32 (1 unstable [amd64])
105Conf oldconflictor-x32 (1 unstable [amd64])' aptget install oldconflictor-x32 -s
106
25b86db1 107testsuccessequal 'Reading package lists...
cef094c2
DK
108Building dependency tree...
109The following NEW packages will be installed:
110 oldconflictor-x64:i386
1110 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
112Inst oldconflictor-x64:i386 (1 unstable [i386])
113Conf oldconflictor-x64:i386 (1 unstable [i386])' aptget install oldconflictor-x64 -s
114
25b86db1 115testsuccessequal 'Reading package lists...
cef094c2
DK
116Building dependency tree...
117The following NEW packages will be installed:
118 foo-depender
1190 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
120Inst foo-depender (1 unstable [amd64])
121Conf foo-depender (1 unstable [amd64])' aptget install foo-depender -s
122
25b86db1 123testfailureequal 'Reading package lists...
cef094c2
DK
124Building dependency tree...
125Some packages could not be installed. This may mean that you have
126requested an impossible situation or if you are using the unstable
127distribution that some required packages have not yet been created
128or been moved out of Incoming.
129The following information may help to resolve the situation:
130
131The following packages have unmet dependencies:
132 foo-depender:i386 : Depends: foo:i386 but it is not installable
133E: Unable to correct problems, you have held broken packages.' aptget install foo-depender:i386 -s
134
25b86db1 135testsuccessequal 'Reading package lists...
cef094c2
DK
136Building dependency tree...
137The following NEW packages will be installed:
138 foo-foreign-depender:i386
1390 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
140Inst foo-foreign-depender:i386 (1 unstable [i386])
141Conf foo-foreign-depender:i386 (1 unstable [i386])' aptget install foo-foreign-depender:i386 -s
142
25b86db1 143testsuccessequal 'Reading package lists...
cef094c2
DK
144Building dependency tree...
145The following packages will be REMOVED:
146 provider
147The following NEW packages will be installed:
148 foo-conflictor
1490 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
150Remv provider [1]
151Inst foo-conflictor (1 unstable [amd64])
152Conf foo-conflictor (1 unstable [amd64])' aptget install foo-conflictor -s
153
25b86db1 154testsuccessequal 'Reading package lists...
cef094c2
DK
155Building dependency tree...
156The following packages will be REMOVED:
157 provider
158The following NEW packages will be installed:
159 foo-conflictor:i386
1600 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
161Remv provider [1]
162Inst foo-conflictor:i386 (1 unstable [i386])
163Conf foo-conflictor:i386 (1 unstable [i386])' aptget install foo-conflictor:i386 -s
164
25b86db1 165testsuccessequal 'Reading package lists...
cef094c2
DK
166Building dependency tree...
167The following packages will be REMOVED:
168 provider
169The following NEW packages will be installed:
170 foo-foreign-conflictor:i386
1710 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
172Remv provider [1]
173Inst foo-foreign-conflictor:i386 (1 unstable [i386])
174Conf foo-foreign-conflictor:i386 (1 unstable [i386])' aptget install foo-foreign-conflictor:i386 -s
175
25b86db1 176testsuccessequal 'Reading package lists...
cef094c2
DK
177Building dependency tree...
178The following NEW packages will be installed:
179 foo-no-conflictor:i386
1800 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
181Inst foo-no-conflictor:i386 (1 unstable [i386])
182Conf foo-no-conflictor:i386 (1 unstable [i386])' aptget install foo-no-conflictor:i386 -s