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