]> git.saurik.com Git - apt.git/blame - test/integration/test-suggest-installed-multiarch-silbing
stop handling items in doomed transactions
[apt.git] / test / integration / test-suggest-installed-multiarch-silbing
CommitLineData
0c73b84b
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
0c73b84b
DK
6setupenvironment
7configarchitecture 'amd64' 'i386' 'armel'
8
9insertinstalledpackage 'foo' 'i386' '1'
10insertpackage 'unstable' 'foo' 'amd64,i386' '1'
11
10e100e5 12insertpackage 'unstable,installed' 'foo2' 'i386' '1'
0c73b84b
DK
13
14insertinstalledpackage 'foo3' 'amd64' '1'
15insertpackage 'unstable' 'foo3' 'amd64,i386' '1'
16
17insertinstalledpackage 'samefoo' 'i386,amd64' '1' 'Multi-Arch: same'
18insertpackage 'unstable' 'samefoo' 'amd64,i386,armel' '1' 'Multi-Arch: same'
19
20insertinstalledpackage 'samefoo2' 'i386' '1' 'Multi-Arch: same'
21insertpackage 'unstable' 'samefoo2' 'amd64,i386,armel' '1' 'Multi-Arch: same'
22
ca5e41fd
DK
23insertinstalledpackage 'mozplugger' 'i386' '1' 'Depends: iceweasel | fireweasel'
24insertinstalledpackage 'fireweasel' 'i386' '1'
25insertpackage 'unstable' 'mozplugger' 'i386,amd64' '1' 'Depends: iceweasel | fireweasel'
26
0c73b84b
DK
27setupaptarchive
28
25b86db1 29testsuccessequal "Reading package lists...
0c73b84b
DK
30Building dependency tree...
31Package 'foo' is not installed, so not removed. Did you mean 'foo:i386'?
320 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove foo -s
33
25b86db1 34testsuccessequal "Reading package lists...
0c73b84b
DK
35Building dependency tree...
36The following packages will be REMOVED:
37 foo2:i386
380 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
39Remv foo2:i386 [1]" aptget remove foo2 -s
40
25b86db1 41testsuccessequal "Reading package lists...
0c73b84b
DK
42Building dependency tree...
43The following packages will be REMOVED:
44 foo3
450 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
46Remv foo3 [1]" aptget remove foo3 -s
47
25b86db1 48testsuccessequal "Reading package lists...
0c73b84b
DK
49Building dependency tree...
50Package 'foo3:i386' is not installed, so not removed. Did you mean 'foo3'?
510 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove foo3:i386 -s
52
53testequalor2 "Reading package lists...
54Building dependency tree...
55Package 'samefoo:armel' is not installed, so not removed. Did you mean 'samefoo'?
560 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." "Reading package lists...
57Building dependency tree...
58Package 'samefoo:armel' is not installed, so not removed. Did you mean 'samefoo:i386'?
590 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo:armel -s
60
25b86db1 61testsuccessequal "Reading package lists...
0c73b84b
DK
62Building dependency tree...
63Package 'samefoo2' is not installed, so not removed. Did you mean 'samefoo2:i386'?
640 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo2 -s
65
25b86db1 66testsuccessequal "Reading package lists...
0c73b84b
DK
67Building dependency tree...
68Package 'samefoo2:armel' is not installed, so not removed. Did you mean 'samefoo2:i386'?
690 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove samefoo2:armel -s
ca5e41fd 70
25b86db1 71testsuccessequal "Reading package lists...
ca5e41fd
DK
72Building dependency tree...
73Package 'iceweasel' is not installed, so not removed
740 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove iceweasel -s
75
25b86db1 76testsuccessequal "Reading package lists...
ca5e41fd
DK
77Building dependency tree...
78Package 'fireweasel' is not installed, so not removed. Did you mean 'fireweasel:i386'?
790 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." aptget remove fireweasel:amd64 -s