]>
Commit | Line | Data |
---|---|---|
0c73b84b DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
0c73b84b DK |
6 | setupenvironment |
7 | configarchitecture 'amd64' 'i386' 'armel' | |
8 | ||
9 | insertinstalledpackage 'foo' 'i386' '1' | |
10 | insertpackage 'unstable' 'foo' 'amd64,i386' '1' | |
11 | ||
10e100e5 | 12 | insertpackage 'unstable,installed' 'foo2' 'i386' '1' |
0c73b84b DK |
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 | ||
ca5e41fd DK |
23 | insertinstalledpackage 'mozplugger' 'i386' '1' 'Depends: iceweasel | fireweasel' |
24 | insertinstalledpackage 'fireweasel' 'i386' '1' | |
25 | insertpackage 'unstable' 'mozplugger' 'i386,amd64' '1' 'Depends: iceweasel | fireweasel' | |
26 | ||
0c73b84b DK |
27 | setupaptarchive |
28 | ||
25b86db1 | 29 | testsuccessequal "Reading package lists... |
0c73b84b DK |
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 | ||
25b86db1 | 34 | testsuccessequal "Reading package lists... |
0c73b84b DK |
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 | ||
25b86db1 | 41 | testsuccessequal "Reading package lists... |
0c73b84b DK |
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 | ||
25b86db1 | 48 | testsuccessequal "Reading package lists... |
0c73b84b DK |
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 | ||
25b86db1 | 61 | testsuccessequal "Reading package lists... |
0c73b84b DK |
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 | ||
25b86db1 | 66 | testsuccessequal "Reading package lists... |
0c73b84b DK |
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 | |
ca5e41fd | 70 | |
25b86db1 | 71 | testsuccessequal "Reading package lists... |
ca5e41fd DK |
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 | ||
25b86db1 | 76 | testsuccessequal "Reading package lists... |
ca5e41fd DK |
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 |