summaryrefslogtreecommitdiffstats
path: root/test/integration/test-solver3-dependencies
blob: 330ded8f99b3cf3812938090935b04b23fa71e9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh
set -e

TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture 'amd64'

insertinstalledpackage 'replaces' 'all' '2' 'Replaces: replaced (<< 3)'
insertinstalledpackage 'replaced' 'all' '2'

insertinstalledpackage 'enhances' 'all' '2' 'Enhances: enhanced (<< 3)'
insertinstalledpackage 'enhanced' 'all' '2'

insertpackage 'unstable' 'replaces' 'all' '3' 'Replaces: replaced (<< 3)'
insertpackage 'unstable' 'enhances' 'all' '3' 'Enhances: enhanced (<< 3)'
insertpackage 'unstable' 'replaced' 'all' '3'
insertpackage 'unstable' 'enhanced' 'all' '3'

setupaptarchive

testsuccessequal "Reading package lists...
Building dependency tree...
Calculating upgrade...
The following packages will be upgraded:
  enhanced enhances replaced replaces
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Inst enhanced [2] (3 unstable [all])
Inst enhances [2] (3 unstable [all])
Inst replaced [2] (3 unstable [all])
Inst replaces [2] (3 unstable [all])
Conf enhanced (3 unstable [all])
Conf enhances (3 unstable [all])
Conf replaced (3 unstable [all])
Conf replaces (3 unstable [all])" aptget upgrade -s

testsuccessequal "Reading package lists...
Building dependency tree...
Calculating upgrade...
The following packages will be upgraded:
  enhanced enhances replaced replaces
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Inst enhanced [2] (3 unstable [all])
Inst enhances [2] (3 unstable [all])
Inst replaced [2] (3 unstable [all])
Inst replaces [2] (3 unstable [all])
Conf enhanced (3 unstable [all])
Conf enhances (3 unstable [all])
Conf replaced (3 unstable [all])
Conf replaces (3 unstable [all])" apt upgrade -s

testsuccessequal "Reading package lists...
Building dependency tree...
Calculating upgrade...
The following packages will be upgraded:
  enhanced enhances replaced replaces
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Inst enhanced [2] (3 unstable [all])
Inst enhances [2] (3 unstable [all])
Inst replaced [2] (3 unstable [all])
Inst replaces [2] (3 unstable [all])
Conf enhanced (3 unstable [all])
Conf enhances (3 unstable [all])
Conf replaced (3 unstable [all])
Conf replaces (3 unstable [all])" apt dist-upgrade -s