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