]> git.saurik.com Git - apt.git/blob - test/integration/test-suggest-installed-multiarch-silbing
Merge remote-tracking branch 'upstream/debian/experimental' into feature/acq-trans
[apt.git] / test / integration / test-suggest-installed-multiarch-silbing
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'amd64' 'i386' 'armel'
8
9 insertinstalledpackage 'foo' 'i386' '1'
10 insertpackage 'unstable' 'foo' 'amd64,i386' '1'
11
12 insertinstalledpackage 'foo2' 'i386' '1'
13 insertpackage 'unstable' 'foo2' 'i386' '1'
14
15 insertinstalledpackage 'foo3' 'amd64' '1'
16 insertpackage 'unstable' 'foo3' 'amd64,i386' '1'
17
18 insertinstalledpackage 'samefoo' 'i386,amd64' '1' 'Multi-Arch: same'
19 insertpackage 'unstable' 'samefoo' 'amd64,i386,armel' '1' 'Multi-Arch: same'
20
21 insertinstalledpackage 'samefoo2' 'i386' '1' 'Multi-Arch: same'
22 insertpackage 'unstable' 'samefoo2' 'amd64,i386,armel' '1' 'Multi-Arch: same'
23
24 insertinstalledpackage 'mozplugger' 'i386' '1' 'Depends: iceweasel | fireweasel'
25 insertinstalledpackage 'fireweasel' 'i386' '1'
26 insertpackage 'unstable' 'mozplugger' 'i386,amd64' '1' 'Depends: iceweasel | fireweasel'
27
28 setupaptarchive
29
30 testequal "Reading package lists...
31 Building dependency tree...
32 Package 'foo' is not installed, so not removed. Did you mean 'foo:i386'?
33 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove foo -s
34
35 testequal "Reading package lists...
36 Building dependency tree...
37 The following packages will be REMOVED:
38 foo2:i386
39 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
40 Remv foo2:i386 [1]" aptget remove foo2 -s
41
42 testequal "Reading package lists...
43 Building dependency tree...
44 The following packages will be REMOVED:
45 foo3
46 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
47 Remv foo3 [1]" aptget remove foo3 -s
48
49 testequal "Reading package lists...
50 Building dependency tree...
51 Package 'foo3:i386' is not installed, so not removed. Did you mean 'foo3'?
52 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove foo3:i386 -s
53
54 testequalor2 "Reading package lists...
55 Building dependency tree...
56 Package 'samefoo:armel' is not installed, so not removed. Did you mean 'samefoo'?
57 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." "Reading package lists...
58 Building dependency tree...
59 Package 'samefoo:armel' is not installed, so not removed. Did you mean 'samefoo:i386'?
60 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo:armel -s
61
62 testequal "Reading package lists...
63 Building dependency tree...
64 Package 'samefoo2' is not installed, so not removed. Did you mean 'samefoo2:i386'?
65 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo2 -s
66
67 testequal "Reading package lists...
68 Building dependency tree...
69 Package 'samefoo2:armel' is not installed, so not removed. Did you mean 'samefoo2:i386'?
70 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo2:armel -s
71
72 testequal "Reading package lists...
73 Building dependency tree...
74 Package 'iceweasel' is not installed, so not removed
75 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove iceweasel -s
76
77 testequal "Reading package lists...
78 Building dependency tree...
79 Package 'fireweasel' is not installed, so not removed. Did you mean 'fireweasel:i386'?
80 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove fireweasel:amd64 -s