]>
Commit | Line | Data |
---|---|---|
7f8c0eed DK |
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... | |
e7ebb414 | 37 | The following additional packages will be installed: |
7f8c0eed DK |
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... | |
e7ebb414 | 52 | The following additional packages will be installed: |
7f8c0eed DK |
53 | libfoo1 |
54 | The following packages will be REMOVED: | |
55 | foo:amd64 libfoo1:amd64 | |
56 | The following NEW packages will be installed: | |
57 | foo libfoo1 | |
58 | 0 upgraded, 2 newly installed, 2 to remove and 0 not upgraded. | |
59 | Remv foo:amd64 [1] | |
60 | Remv libfoo1:amd64 [1] | |
61 | Inst libfoo1 (2 experimental [i386]) | |
62 | Inst foo (2 experimental [i386]) | |
63 | Conf libfoo1 (2 experimental [i386]) | |
64 | Conf foo (2 experimental [i386])' aptget install foo/experimental -s | |
65 | ||
66 | testsuccessequal 'Reading package lists... | |
67 | Building dependency tree... | |
e7ebb414 | 68 | The following additional packages will be installed: |
7f8c0eed DK |
69 | foo libfoo1 |
70 | The following packages will be REMOVED: | |
71 | foo:amd64 | |
72 | The following NEW packages will be installed: | |
73 | bar foo libfoo1 | |
74 | 0 upgraded, 3 newly installed, 1 to remove and 0 not upgraded. | |
75 | Remv foo:amd64 [1] | |
76 | Inst libfoo1 (1 unstable [i386]) | |
77 | Inst foo (1 unstable [i386]) | |
78 | Inst bar (1 unstable [i386]) | |
79 | Conf libfoo1 (1 unstable [i386]) | |
80 | Conf foo (1 unstable [i386]) | |
81 | Conf bar (1 unstable [i386])' aptget install bar -s | |
82 | ||
83 | configarchitecture 'i386' 'amd64' | |
84 | ||
85 | testsuccessequal 'Reading package lists... | |
86 | Building dependency tree... | |
87 | The following NEW packages will be installed: | |
88 | bar | |
89 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
90 | Inst bar (1 unstable [i386]) | |
91 | Conf bar (1 unstable [i386])' aptget install bar -s |