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