]> git.saurik.com Git - apt.git/blame - test/integration/test-handling-broken-orgroups
test: Automatically discover CMake build directory
[apt.git] / test / integration / test-handling-broken-orgroups
CommitLineData
df77d8a5
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
df77d8a5
DK
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
25b86db1 26testsuccessequal 'Reading package lists...
df77d8a5 27Building dependency tree...
e7ebb414 28The following additional packages will be installed:
df77d8a5
DK
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
25b86db1 38testsuccessequal 'Reading package lists...
df77d8a5 39Building dependency tree...
e7ebb414 40The following additional packages will be installed:
df77d8a5
DK
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
25b86db1 50testfailureequal 'Reading package lists...
df77d8a5
DK
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
d953d210 61E: Unable to correct problems, you have held broken packages.' aptget install coolstuff-broken -s
df77d8a5 62
25b86db1 63testsuccessequal 'Reading package lists...
df77d8a5
DK
64Building dependency tree...
65Recommended packages:
9112f777 66 cool2 | stuff2
df77d8a5
DK
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
25b86db1 73testsuccessequal 'Reading package lists...
df77d8a5 74Building dependency tree...
e7ebb414 75The following additional packages will be installed:
df77d8a5
DK
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
25b86db1 85testsuccessequal 'Reading package lists...
df77d8a5 86Building dependency tree...
e7ebb414 87The following additional packages will be installed:
df77d8a5
DK
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
25b86db1 97testfailureequal 'Reading package lists...
df77d8a5
DK
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
d953d210 108E: Unable to correct problems, you have held broken packages.' aptget install coolstuff-provided-broken -s