]> git.saurik.com Git - apt.git/blob - test/integration/test-suggest-installed-multiarch-silbing
fix file ownership tests to work on kfreebsd
[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 insertpackage 'unstable,installed' 'foo2' 'i386' '1'
13
14 insertinstalledpackage 'foo3' 'amd64' '1'
15 insertpackage 'unstable' 'foo3' 'amd64,i386' '1'
16
17 insertinstalledpackage 'samefoo' 'i386,amd64' '1' 'Multi-Arch: same'
18 insertpackage 'unstable' 'samefoo' 'amd64,i386,armel' '1' 'Multi-Arch: same'
19
20 insertinstalledpackage 'samefoo2' 'i386' '1' 'Multi-Arch: same'
21 insertpackage 'unstable' 'samefoo2' 'amd64,i386,armel' '1' 'Multi-Arch: same'
22
23 insertinstalledpackage 'mozplugger' 'i386' '1' 'Depends: iceweasel | fireweasel'
24 insertinstalledpackage 'fireweasel' 'i386' '1'
25 insertpackage 'unstable' 'mozplugger' 'i386,amd64' '1' 'Depends: iceweasel | fireweasel'
26
27 setupaptarchive
28
29 testequal "Reading package lists...
30 Building dependency tree...
31 Package 'foo' is not installed, so not removed. Did you mean 'foo:i386'?
32 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove foo -s
33
34 testequal "Reading package lists...
35 Building dependency tree...
36 The following packages will be REMOVED:
37 foo2:i386
38 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
39 Remv foo2:i386 [1]" aptget remove foo2 -s
40
41 testequal "Reading package lists...
42 Building dependency tree...
43 The following packages will be REMOVED:
44 foo3
45 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
46 Remv foo3 [1]" aptget remove foo3 -s
47
48 testequal "Reading package lists...
49 Building dependency tree...
50 Package 'foo3:i386' is not installed, so not removed. Did you mean 'foo3'?
51 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove foo3:i386 -s
52
53 testequalor2 "Reading package lists...
54 Building dependency tree...
55 Package 'samefoo:armel' is not installed, so not removed. Did you mean 'samefoo'?
56 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." "Reading package lists...
57 Building dependency tree...
58 Package 'samefoo:armel' is not installed, so not removed. Did you mean 'samefoo:i386'?
59 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo:armel -s
60
61 testequal "Reading package lists...
62 Building dependency tree...
63 Package 'samefoo2' is not installed, so not removed. Did you mean 'samefoo2:i386'?
64 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo2 -s
65
66 testequal "Reading package lists...
67 Building dependency tree...
68 Package 'samefoo2:armel' is not installed, so not removed. Did you mean 'samefoo2:i386'?
69 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo2:armel -s
70
71 testequal "Reading package lists...
72 Building dependency tree...
73 Package 'iceweasel' is not installed, so not removed
74 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove iceweasel -s
75
76 testequal "Reading package lists...
77 Building dependency tree...
78 Package 'fireweasel' is not installed, so not removed. Did you mean 'fireweasel:i386'?
79 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove fireweasel:amd64 -s