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