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