]>
Commit | Line | Data |
---|---|---|
69335858 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
69335858 DK |
6 | setupenvironment |
7 | configarchitecture 'native' | |
8 | ||
9 | insertpackage 'unstable' 'foo' 'all' '1' 'Provides: stuff' 'important' | |
10 | insertpackage 'unstable' 'bar' 'all' '1' 'Provides: stuff' 'optional' | |
11 | insertpackage 'unstable' 'baz' 'all' '1' 'Provides: stuff' 'extra' | |
12 | insertpackage 'unstable' 'awesome' 'all' '1' 'Depends: stuff' | |
13 | ||
14 | setupaptarchive | |
15 | ||
25b86db1 | 16 | testsuccessequal 'Reading package lists... |
69335858 | 17 | Building dependency tree... |
e7ebb414 | 18 | The following additional packages will be installed: |
69335858 DK |
19 | foo |
20 | The following NEW packages will be installed: | |
21 | awesome foo | |
22 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
23 | Inst foo (1 unstable [all]) | |
24 | Inst awesome (1 unstable [all]) | |
25 | Conf foo (1 unstable [all]) | |
26 | Conf awesome (1 unstable [all])' aptget install awesome -s | |
27 | ||
25b86db1 | 28 | testsuccessequal 'Reading package lists... |
69335858 DK |
29 | Building dependency tree... |
30 | The following NEW packages will be installed: | |
31 | awesome foo | |
32 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
33 | Inst foo (1 unstable [all]) | |
34 | Inst awesome (1 unstable [all]) | |
35 | Conf foo (1 unstable [all]) | |
36 | Conf awesome (1 unstable [all])' aptget install awesome foo -s | |
66706285 | 37 | |
25b86db1 | 38 | testsuccessequal "Reading package lists... |
66706285 DK |
39 | Building dependency tree... |
40 | Package 'bar' is not installed, so not removed | |
41 | Package 'baz' is not installed, so not removed | |
e7ebb414 | 42 | The following additional packages will be installed: |
66706285 DK |
43 | foo |
44 | The following NEW packages will be installed: | |
45 | awesome foo | |
46 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
47 | Inst foo (1 unstable [all]) | |
48 | Inst awesome (1 unstable [all]) | |
49 | Conf foo (1 unstable [all]) | |
50 | Conf awesome (1 unstable [all])" aptget install awesome bar- baz- -s | |
51 | ||
25b86db1 | 52 | testsuccessequal "Reading package lists... |
66706285 DK |
53 | Building dependency tree... |
54 | Package 'foo' is not installed, so not removed | |
e7ebb414 | 55 | The following additional packages will be installed: |
66706285 DK |
56 | bar |
57 | The following NEW packages will be installed: | |
58 | awesome bar | |
59 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
60 | Inst bar (1 unstable [all]) | |
61 | Inst awesome (1 unstable [all]) | |
62 | Conf bar (1 unstable [all]) | |
63 | Conf awesome (1 unstable [all])" aptget install awesome foo- -s | |
64 | ||
25b86db1 | 65 | testsuccessequal "Reading package lists... |
66706285 DK |
66 | Building dependency tree... |
67 | Package 'foo' is not installed, so not removed | |
68 | Package 'baz' is not installed, so not removed | |
e7ebb414 | 69 | The following additional packages will be installed: |
66706285 DK |
70 | bar |
71 | The following NEW packages will be installed: | |
72 | awesome bar | |
73 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
74 | Inst bar (1 unstable [all]) | |
75 | Inst awesome (1 unstable [all]) | |
76 | Conf bar (1 unstable [all]) | |
77 | Conf awesome (1 unstable [all])" aptget install awesome foo- baz- -s | |
78 | ||
25b86db1 | 79 | testsuccessequal "Reading package lists... |
66706285 DK |
80 | Building dependency tree... |
81 | Package 'foo' is not installed, so not removed | |
82 | Package 'bar' is not installed, so not removed | |
e7ebb414 | 83 | The following additional packages will be installed: |
66706285 DK |
84 | baz |
85 | The following NEW packages will be installed: | |
86 | awesome baz | |
87 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
88 | Inst baz (1 unstable [all]) | |
89 | Inst awesome (1 unstable [all]) | |
90 | Conf baz (1 unstable [all]) | |
91 | Conf awesome (1 unstable [all])" aptget install awesome foo- bar- -s | |
92 | ||
25b86db1 | 93 | testfailureequal "Reading package lists... |
66706285 DK |
94 | Building dependency tree... |
95 | Package 'foo' is not installed, so not removed | |
96 | Package 'bar' is not installed, so not removed | |
97 | Package 'baz' is not installed, so not removed | |
98 | Some packages could not be installed. This may mean that you have | |
99 | requested an impossible situation or if you are using the unstable | |
100 | distribution that some required packages have not yet been created | |
101 | or been moved out of Incoming. | |
102 | The following information may help to resolve the situation: | |
103 | ||
104 | The following packages have unmet dependencies: | |
105 | awesome : Depends: stuff | |
106 | E: Unable to correct problems, you have held broken packages." aptget install awesome foo- bar- baz- -s |