]> git.saurik.com Git - apt.git/blob - test/integration/test-multiarch-foreign
Merge remote-tracking branch 'mvo/feature/hash-stats' into debian/experimental
[apt.git] / test / integration / test-multiarch-foreign
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'amd64' 'i386' 'armel'
8
9 insertpackage 'unstable' 'cool-foo' 'amd64,i386' '1.0' 'Depends: foo'
10 insertpackage 'unstable' 'foo' 'amd64,i386,armel' '1.0' 'Multi-Arch: foreign'
11
12 insertpackage 'unstable' 'cool-bar' 'amd64,i386' '1.0' 'Depends: bar-provider'
13 insertpackage 'unstable' 'bar' 'amd64,i386,armel' '1.0' 'Provides: bar-provider
14 Multi-Arch: foreign'
15
16 setupaptarchive
17
18 testequal 'Reading package lists...
19 Building dependency tree...
20 The following extra packages will be installed:
21 foo
22 The following NEW packages will be installed:
23 cool-foo:i386 foo
24 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
25 Inst foo (1.0 unstable [amd64])
26 Inst cool-foo:i386 (1.0 unstable [i386])
27 Conf foo (1.0 unstable [amd64])
28 Conf cool-foo:i386 (1.0 unstable [i386])' aptget install cool-foo:i386 -s
29
30 testequal 'Reading package lists...
31 Building dependency tree...
32 The following extra packages will be installed:
33 foo
34 The following NEW packages will be installed:
35 cool-foo foo
36 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
37 Inst foo (1.0 unstable [amd64])
38 Inst cool-foo (1.0 unstable [amd64])
39 Conf foo (1.0 unstable [amd64])
40 Conf cool-foo (1.0 unstable [amd64])' aptget install cool-foo:amd64 -s
41
42 testequal 'Reading package lists...
43 Building dependency tree...
44 The following NEW packages will be installed:
45 cool-foo foo
46 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
47 Inst foo (1.0 unstable [amd64])
48 Inst cool-foo (1.0 unstable [amd64])
49 Conf foo (1.0 unstable [amd64])
50 Conf cool-foo (1.0 unstable [amd64])' aptget install cool-foo:amd64 foo:amd64 -s
51
52 testequal 'Reading package lists...
53 Building dependency tree...
54 The following NEW packages will be installed:
55 cool-foo foo:i386
56 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
57 Inst foo:i386 (1.0 unstable [i386])
58 Inst cool-foo (1.0 unstable [amd64])
59 Conf foo:i386 (1.0 unstable [i386])
60 Conf cool-foo (1.0 unstable [amd64])' aptget install cool-foo:amd64 foo:i386 -s
61
62 testequal 'Reading package lists...
63 Building dependency tree...
64 The following NEW packages will be installed:
65 cool-foo foo:armel
66 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
67 Inst foo:armel (1.0 unstable [armel])
68 Inst cool-foo (1.0 unstable [amd64])
69 Conf foo:armel (1.0 unstable [armel])
70 Conf cool-foo (1.0 unstable [amd64])' aptget install cool-foo:amd64 foo:armel -s
71
72
73
74
75
76 testequal 'Reading package lists...
77 Building dependency tree...
78 The following extra packages will be installed:
79 bar
80 The following NEW packages will be installed:
81 bar cool-bar:i386
82 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
83 Inst bar (1.0 unstable [amd64])
84 Inst cool-bar:i386 (1.0 unstable [i386])
85 Conf bar (1.0 unstable [amd64])
86 Conf cool-bar:i386 (1.0 unstable [i386])' aptget install cool-bar:i386 -s
87
88 testequal 'Reading package lists...
89 Building dependency tree...
90 The following extra packages will be installed:
91 bar
92 The following NEW packages will be installed:
93 bar cool-bar
94 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
95 Inst bar (1.0 unstable [amd64])
96 Inst cool-bar (1.0 unstable [amd64])
97 Conf bar (1.0 unstable [amd64])
98 Conf cool-bar (1.0 unstable [amd64])' aptget install cool-bar:amd64 -s
99
100 testequal 'Reading package lists...
101 Building dependency tree...
102 The following NEW packages will be installed:
103 bar cool-bar
104 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
105 Inst bar (1.0 unstable [amd64])
106 Inst cool-bar (1.0 unstable [amd64])
107 Conf bar (1.0 unstable [amd64])
108 Conf cool-bar (1.0 unstable [amd64])' aptget install cool-bar:amd64 bar:amd64 -s
109
110 testequal 'Reading package lists...
111 Building dependency tree...
112 The following NEW packages will be installed:
113 bar:i386 cool-bar
114 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
115 Inst bar:i386 (1.0 unstable [i386])
116 Inst cool-bar (1.0 unstable [amd64])
117 Conf bar:i386 (1.0 unstable [i386])
118 Conf cool-bar (1.0 unstable [amd64])' aptget install cool-bar:amd64 bar:i386 -s
119
120 testequal 'Reading package lists...
121 Building dependency tree...
122 The following NEW packages will be installed:
123 bar:armel cool-bar
124 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
125 Inst bar:armel (1.0 unstable [armel])
126 Inst cool-bar (1.0 unstable [amd64])
127 Conf bar:armel (1.0 unstable [armel])
128 Conf cool-bar (1.0 unstable [amd64])' aptget install cool-bar:amd64 bar:armel -s
129
130 testequal "Reading package lists...
131 Building dependency tree...
132 Note, selecting 'bar' instead of 'bar-provider'
133 The following NEW packages will be installed:
134 bar cool-bar
135 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
136 Inst bar (1.0 unstable [amd64])
137 Inst cool-bar (1.0 unstable [amd64])
138 Conf bar (1.0 unstable [amd64])
139 Conf cool-bar (1.0 unstable [amd64])" aptget install cool-bar bar-provider -s -q=0
140
141 testequal "Reading package lists...
142 Building dependency tree...
143 Note, selecting 'bar:i386' instead of 'bar-provider:i386'
144 The following NEW packages will be installed:
145 bar:i386 cool-bar
146 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
147 Inst bar:i386 (1.0 unstable [i386])
148 Inst cool-bar (1.0 unstable [amd64])
149 Conf bar:i386 (1.0 unstable [i386])
150 Conf cool-bar (1.0 unstable [amd64])" aptget install cool-bar bar-provider:i386 -s -q=0