]>
Commit | Line | Data |
---|---|---|
df77d8a5 DK |
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 | ||
25b86db1 | 26 | testsuccessequal 'Reading package lists... |
df77d8a5 | 27 | Building dependency tree... |
e7ebb414 | 28 | The following additional packages will be installed: |
df77d8a5 DK |
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 | ||
25b86db1 | 38 | testsuccessequal 'Reading package lists... |
df77d8a5 | 39 | Building dependency tree... |
e7ebb414 | 40 | The following additional packages will be installed: |
df77d8a5 DK |
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 | ||
25b86db1 | 50 | testfailureequal 'Reading package lists... |
df77d8a5 DK |
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 | |
d953d210 | 61 | E: Unable to correct problems, you have held broken packages.' aptget install coolstuff-broken -s |
df77d8a5 | 62 | |
25b86db1 | 63 | testsuccessequal 'Reading package lists... |
df77d8a5 DK |
64 | Building dependency tree... |
65 | Recommended packages: | |
9112f777 | 66 | cool2 | stuff2 |
df77d8a5 DK |
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 | ||
25b86db1 | 73 | testsuccessequal 'Reading package lists... |
df77d8a5 | 74 | Building dependency tree... |
e7ebb414 | 75 | The following additional packages will be installed: |
df77d8a5 DK |
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 | ||
25b86db1 | 85 | testsuccessequal 'Reading package lists... |
df77d8a5 | 86 | Building dependency tree... |
e7ebb414 | 87 | The following additional packages will be installed: |
df77d8a5 DK |
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 | ||
25b86db1 | 97 | testfailureequal 'Reading package lists... |
df77d8a5 DK |
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 | |
d953d210 | 108 | E: Unable to correct problems, you have held broken packages.' aptget install coolstuff-provided-broken -s |