]> git.saurik.com Git - apt.git/blob - test/integration/test-handling-broken-orgroups
eipp: make no difference between remove & purge
[apt.git] / test / integration / test-handling-broken-orgroups
1 #!/bin/sh
2 set -e
3
4 TESTDIR="$(readlink -f "$(dirname "$0")")"
5 . "$TESTDIR/framework"
6 setupenvironment
7 configarchitecture 'i386'
8
9 insertpackage 'unstable' 'cool' 'all' '1.0-1'
10 insertpackage 'unstable' 'stuff' 'all' '1.0-1'
11 insertpackage 'unstable' 'coolstuff' 'all' '1.0-1' 'Depends: cool | stuff'
12 insertpackage 'unstable' 'coolstuff2' 'all' '1.0-1' 'Depends: cool2 | stuff'
13 insertpackage 'unstable' 'coolstuff-broken' 'all' '1.0-1' 'Depends: cool2 | stuff2'
14 insertpackage 'unstable' 'coolstuff-brokenrec' 'all' '1.0-1' 'Recommends: cool2 | stuff2'
15 insertpackage 'unstable' 'coolstuff-conflict' 'all' '1.0-1' 'Depends: cool | stuff
16 Conflicts: cool'
17 insertpackage 'unstable' 'coolstuff-provided' 'all' '1.0-1' 'Depends: cool2 | stuff-abi'
18 insertpackage 'unstable' 'extrastuff' 'all' '1.0-1' 'Provides: stuff-abi'
19
20 insertpackage 'unstable' 'coolstuff-provided-broken' 'all' '1.0-1' 'Depends: cool2 | stuff-abi-2'
21 insertpackage 'unstable' 'extrastuff' 'all' '1.0-1' 'Depends: stuff2
22 Provides: stuff-abi-2'
23
24 setupaptarchive
25
26 testsuccessequal 'Reading package lists...
27 Building dependency tree...
28 The following additional packages will be installed:
29 cool
30 The following NEW packages will be installed:
31 cool coolstuff
32 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
33 Inst cool (1.0-1 unstable [all])
34 Inst coolstuff (1.0-1 unstable [all])
35 Conf cool (1.0-1 unstable [all])
36 Conf coolstuff (1.0-1 unstable [all])' aptget install coolstuff -s
37
38 testsuccessequal 'Reading package lists...
39 Building dependency tree...
40 The following additional packages will be installed:
41 stuff
42 The following NEW packages will be installed:
43 coolstuff2 stuff
44 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
45 Inst stuff (1.0-1 unstable [all])
46 Inst coolstuff2 (1.0-1 unstable [all])
47 Conf stuff (1.0-1 unstable [all])
48 Conf coolstuff2 (1.0-1 unstable [all])' aptget install coolstuff2 -s
49
50 testfailureequal 'Reading package lists...
51 Building dependency tree...
52 Some packages could not be installed. This may mean that you have
53 requested an impossible situation or if you are using the unstable
54 distribution that some required packages have not yet been created
55 or been moved out of Incoming.
56 The following information may help to resolve the situation:
57
58 The following packages have unmet dependencies:
59 coolstuff-broken : Depends: cool2 but it is not installable or
60 stuff2 but it is not installable
61 E: Unable to correct problems, you have held broken packages.' aptget install coolstuff-broken -s
62
63 testsuccessequal 'Reading package lists...
64 Building dependency tree...
65 Recommended packages:
66 cool2 | stuff2
67 The following NEW packages will be installed:
68 coolstuff-brokenrec
69 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
70 Inst coolstuff-brokenrec (1.0-1 unstable [all])
71 Conf coolstuff-brokenrec (1.0-1 unstable [all])' aptget install coolstuff-brokenrec -s
72
73 testsuccessequal 'Reading package lists...
74 Building dependency tree...
75 The following additional packages will be installed:
76 stuff
77 The following NEW packages will be installed:
78 coolstuff-conflict stuff
79 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
80 Inst stuff (1.0-1 unstable [all])
81 Inst coolstuff-conflict (1.0-1 unstable [all])
82 Conf stuff (1.0-1 unstable [all])
83 Conf coolstuff-conflict (1.0-1 unstable [all])' aptget install coolstuff-conflict -s
84
85 testsuccessequal 'Reading package lists...
86 Building dependency tree...
87 The following additional packages will be installed:
88 extrastuff
89 The following NEW packages will be installed:
90 coolstuff-provided extrastuff
91 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
92 Inst extrastuff (1.0-1 unstable [all])
93 Inst coolstuff-provided (1.0-1 unstable [all])
94 Conf extrastuff (1.0-1 unstable [all])
95 Conf coolstuff-provided (1.0-1 unstable [all])' aptget install coolstuff-provided -s
96
97 testfailureequal 'Reading package lists...
98 Building dependency tree...
99 Some packages could not be installed. This may mean that you have
100 requested an impossible situation or if you are using the unstable
101 distribution that some required packages have not yet been created
102 or been moved out of Incoming.
103 The following information may help to resolve the situation:
104
105 The following packages have unmet dependencies:
106 coolstuff-provided-broken : Depends: cool2 but it is not installable or
107 stuff-abi-2
108 E: Unable to correct problems, you have held broken packages.' aptget install coolstuff-provided-broken -s