]> git.saurik.com Git - apt.git/blame - test/integration/test-cachecontainer-architecture-specification
merged from the debian-sid branch
[apt.git] / test / integration / test-cachecontainer-architecture-specification
CommitLineData
01f520ce
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'armel'
8
9#insertinstalledpackage 'xserver-xorg-core' 'amd64' '2:1.7.6-2ubuntu7.10'
10insertpackage 'unstable' 'libsame' 'armel,amd64' '1' 'Multi-Arch: same'
f1d86c0e 11insertpackage 'unstable' 'foo' 'all' '1'
01f520ce
DK
12
13setupaptarchive
14
15testequal 'Reading package lists...
16Building dependency tree...
17The following NEW packages will be installed:
18 libsame
190 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
20Inst libsame (1 unstable [amd64])
21Conf libsame (1 unstable [amd64])' aptget -s install libsame
22testequal 'Reading package lists...
23Building dependency tree...
24The following NEW packages will be installed:
25 libsame:armel
260 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
27Inst libsame:armel (1 unstable [armel])
28Conf libsame:armel (1 unstable [armel])' aptget -s install libsame:armel
29testequal 'Reading package lists...
30Building dependency tree...
5f20ac7f
DK
31E: Unable to locate package libsame' aptget -s install libsame:armhf
32testequal 'Reading package lists...
33Building dependency tree...
01f520ce
DK
34The following NEW packages will be installed:
35 libsame
360 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
37Inst libsame (1 unstable [amd64])
38Conf libsame (1 unstable [amd64])' aptget -s install libsame:amd64
39testequal 'Reading package lists...
40Building dependency tree...
41The following NEW packages will be installed:
42 libsame libsame:armel
430 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
44Inst libsame (1 unstable [amd64])
45Inst libsame:armel (1 unstable [armel])
46Conf libsame (1 unstable [amd64])
47Conf libsame:armel (1 unstable [armel])' aptget -s install libsame:armel libsame:amd64
48testequal 'Reading package lists...
49Building dependency tree...
50The following NEW packages will be installed:
51 libsame libsame:armel
520 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
53Inst libsame (1 unstable [amd64])
54Inst libsame:armel (1 unstable [armel])
55Conf libsame (1 unstable [amd64])
56Conf libsame:armel (1 unstable [armel])' aptget -s install libsame:*
57testequal 'Reading package lists...
58Building dependency tree...
59The following NEW packages will be installed:
60 libsame
610 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
62Inst libsame (1 unstable [amd64])
63Conf libsame (1 unstable [amd64])' aptget -s install libsame:any
64testequal 'Reading package lists...
65Building dependency tree...
66The following NEW packages will be installed:
67 libsame libsame:armel
680 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
69Inst libsame (1 unstable [amd64])
70Inst libsame:armel (1 unstable [armel])
71Conf libsame (1 unstable [amd64])
72Conf libsame:armel (1 unstable [armel])' aptget -s install libsame:a*
73testequal 'Reading package lists...
74Building dependency tree...
75The following NEW packages will be installed:
76 libsame
770 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
78Inst libsame (1 unstable [amd64])
79Conf libsame (1 unstable [amd64])' aptget -s install libsame:linux-any
80testequal 'Reading package lists...
81Building dependency tree...
82The following NEW packages will be installed:
83 libsame libsame:armel
840 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
85Inst libsame (1 unstable [amd64])
86Inst libsame:armel (1 unstable [armel])
87Conf libsame (1 unstable [amd64])
88Conf libsame:armel (1 unstable [armel])' aptget -s install libsame:linux-*
89testequal 'Reading package lists...
90Building dependency tree...
91E: Unable to locate package libsame' aptget -s install libsame:windows-any
f1d86c0e
DK
92
93testequal 'Reading package lists...
94Building dependency tree...
95E: Unable to locate package foo' aptget -s install foo:armel
96testequal 'Reading package lists...
97Building dependency tree...
98The following NEW packages will be installed:
99 foo
1000 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
101Inst foo (1 unstable [all])
102Conf foo (1 unstable [all])' aptget -s install foo
103testequal 'Reading package lists...
104Building dependency tree...
105The following NEW packages will be installed:
106 foo
1070 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
108Inst foo (1 unstable [all])
109Conf foo (1 unstable [all])' aptget -s install foo:all
110testequal 'Reading package lists...
111Building dependency tree...
112The following NEW packages will be installed:
113 foo
1140 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
115Inst foo (1 unstable [all])
116Conf foo (1 unstable [all])' aptget -s install foo:amd64
117testequal 'Reading package lists...
118Building dependency tree...
119The following NEW packages will be installed:
120 foo
1210 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
122Inst foo (1 unstable [all])
123Conf foo (1 unstable [all])' aptget -s install foo:native