]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-cachecontainer-architecture-specification
report warnings&errors consistently in edit-sources
[apt.git] / test / integration / test-cachecontainer-architecture-specification
... / ...
CommitLineData
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'
11insertpackage 'unstable' 'foo' 'all' '1'
12
13setupaptarchive
14
15testsuccessequal '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
22testsuccessequal '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
29testfailureequal 'Reading package lists...
30Building dependency tree...
31E: Unable to locate package libsame:armhf' aptget -s install libsame:armhf
32testsuccessequal 'Reading package lists...
33Building dependency tree...
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
39testsuccessequal '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
48testsuccessequal '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:*
57testsuccessequal '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
64testsuccessequal '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*
73testsuccessequal '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
80testsuccessequal '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-*
89testfailureequal 'Reading package lists...
90Building dependency tree...
91E: Unable to locate package libsame:windows-any' aptget -s install libsame:windows-any
92
93testfailureequal 'Reading package lists...
94Building dependency tree...
95E: Unable to locate package foo:armel' aptget -s install foo:armel
96testsuccessequal '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
103testsuccessequal '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
110testsuccessequal '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
117testsuccessequal '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