]> git.saurik.com Git - apt.git/blob - test/integration/test-parse-all-archs-into-cache
Don't download "optional" files not in Release :/.
[apt.git] / test / integration / test-parse-all-archs-into-cache
1 #!/bin/sh
2 set -e
3
4 TESTDIR="$(readlink -f "$(dirname "$0")")"
5 . "$TESTDIR/framework"
6 setupenvironment
7 configarchitecture 'i386'
8
9 insertpackage 'unstable' 'bar' 'i386' '1' 'Depends: foo'
10 insertpackage 'unstable' 'foo' 'i386' '1' 'Multi-Arch: foreign
11 Depends: libfoo1'
12 insertpackage 'unstable' 'libfoo1' 'i386' '1' 'Multi-Arch: same'
13 insertpackage 'experimental' 'foo' 'i386' '2' 'Multi-Arch: foreign
14 Depends: libfoo1 (>= 2)'
15 insertpackage 'experimental' 'libfoo1' 'i386' '2' 'Multi-Arch: same'
16
17 # note: the system has amd64 not configured!
18 insertinstalledpackage 'foo' 'amd64' '1' 'Multi-Arch: foreign
19 Depends: libfoo1'
20
21 setupaptarchive
22
23 testfailureequal "Reading package lists...
24 Building dependency tree...
25 You might want to run 'apt-get -f install' to correct these.
26 The following packages have unmet dependencies:
27 foo:amd64 : Depends: libfoo1:amd64 but it is not installable
28 E: Unmet dependencies. Try using -f." aptget check -s
29
30 insertinstalledpackage 'libfoo1' 'amd64' '1' 'Multi-Arch: same'
31
32 testsuccessequal 'Reading package lists...
33 Building dependency tree...' aptget check -s
34
35 testsuccessequal 'Reading package lists...
36 Building dependency tree...
37 The following additional packages will be installed:
38 libfoo1
39 The following packages will be REMOVED:
40 foo:amd64
41 The following NEW packages will be installed:
42 foo libfoo1
43 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
44 Remv foo:amd64 [1]
45 Inst libfoo1 (1 unstable [i386])
46 Inst foo (1 unstable [i386])
47 Conf libfoo1 (1 unstable [i386])
48 Conf foo (1 unstable [i386])' aptget install foo -s
49
50 testsuccessequal "Reading package lists...
51 Building dependency tree...
52 Selected version '2' (experimental [i386]) for 'foo'
53 Selected version '2' (experimental [i386]) for 'libfoo1' because of 'foo'
54 The following additional packages will be installed:
55 libfoo1
56 The following packages will be REMOVED:
57 foo:amd64 libfoo1:amd64
58 The following NEW packages will be installed:
59 foo libfoo1
60 0 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
61 Remv foo:amd64 [1]
62 Remv libfoo1:amd64 [1]
63 Inst libfoo1 (2 experimental [i386])
64 Inst foo (2 experimental [i386])
65 Conf libfoo1 (2 experimental [i386])
66 Conf foo (2 experimental [i386])" aptget install foo/experimental -s
67
68 testsuccessequal 'Reading package lists...
69 Building dependency tree...
70 The following additional packages will be installed:
71 foo libfoo1
72 The following packages will be REMOVED:
73 foo:amd64
74 The following NEW packages will be installed:
75 bar foo libfoo1
76 0 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
77 Remv foo:amd64 [1]
78 Inst libfoo1 (1 unstable [i386])
79 Inst foo (1 unstable [i386])
80 Inst bar (1 unstable [i386])
81 Conf libfoo1 (1 unstable [i386])
82 Conf foo (1 unstable [i386])
83 Conf bar (1 unstable [i386])' aptget install bar -s
84
85 configarchitecture 'i386' 'amd64'
86
87 testsuccessequal 'Reading package lists...
88 Building dependency tree...
89 The following NEW packages will be installed:
90 bar
91 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
92 Inst bar (1 unstable [i386])
93 Conf bar (1 unstable [i386])' aptget install bar -s