summaryrefslogtreecommitdiffstats
path: root/test/integration/test-suggests-promoted-to-recommends
blob: 57497f7d9f80d457abc6d7f5961e37a1539f0cb5 (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 'oldrec' 'all' '1'
insertinstalledpackage 'oldsug' 'all' '1'
insertinstalledpackage 'instreg' 'all' '1'
insertinstalledpackage 'instsug' 'all' '1'

insertpackage 'unstable' 'unsatrec' 'all' '2'
insertpackage 'unstable' 'unsatsug' 'all' '2'
insertpackage 'unstable' 'newrec' 'all' '2'
insertpackage 'unstable' 'newsug' 'all' '2'
insertpackage 'unstable' 'promote' 'all' '2'

insertinstalledpackage 'foo' 'all' '1' 'Recommends: oldrec, instrec, unsatrec
Suggests: oldsug, instsug, unsatsug, promote'
insertpackage 'unstable' 'foo' 'all' '2' 'Recommends: instrec, unsatrec, promote, newrec
Suggests: instsug, unsatsug, newsug'

setupaptarchive

testsuccess aptmark auto oldrec instrec oldsug instsug

testsuccessequal "Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
  oldrec oldsug
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  newrec promote
The following packages will be upgraded:
  foo
1 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst foo [1] (2 unstable [all])
Inst newrec (2 unstable [all])
Inst promote (2 unstable [all])
Conf foo (2 unstable [all])
Conf newrec (2 unstable [all])
Conf promote (2 unstable [all])" apt full-upgrade -s

testsuccessequal "Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
  oldrec oldsug
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  newrec newsug
The following packages will be upgraded:
  foo
1 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst foo [1] (2 unstable [all])
Inst newrec (2 unstable [all])
Inst newsug (2 unstable [all])
Conf foo (2 unstable [all])
Conf newrec (2 unstable [all])
Conf newsug (2 unstable [all])" apt full-upgrade -s --install-suggests