]> git.saurik.com Git - apt.git/blame - test/integration/test-parse-all-archs-into-cache
do delay the test for http, too, to make it more reliable
[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
50testsuccessequal 'Reading package lists...
51Building dependency tree...
e7ebb414 52The following additional packages will be installed:
7f8c0eed
DK
53 libfoo1
54The following packages will be REMOVED:
55 foo:amd64 libfoo1:amd64
56The following NEW packages will be installed:
57 foo libfoo1
580 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
59Remv foo:amd64 [1]
60Remv libfoo1:amd64 [1]
61Inst libfoo1 (2 experimental [i386])
62Inst foo (2 experimental [i386])
63Conf libfoo1 (2 experimental [i386])
64Conf foo (2 experimental [i386])' aptget install foo/experimental -s
65
66testsuccessequal 'Reading package lists...
67Building dependency tree...
e7ebb414 68The following additional packages will be installed:
7f8c0eed
DK
69 foo libfoo1
70The following packages will be REMOVED:
71 foo:amd64
72The following NEW packages will be installed:
73 bar foo libfoo1
740 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
75Remv foo:amd64 [1]
76Inst libfoo1 (1 unstable [i386])
77Inst foo (1 unstable [i386])
78Inst bar (1 unstable [i386])
79Conf libfoo1 (1 unstable [i386])
80Conf foo (1 unstable [i386])
81Conf bar (1 unstable [i386])' aptget install bar -s
82
83configarchitecture 'i386' 'amd64'
84
85testsuccessequal 'Reading package lists...
86Building dependency tree...
87The following NEW packages will be installed:
88 bar
890 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
90Inst bar (1 unstable [i386])
91Conf bar (1 unstable [i386])' aptget install bar -s