summaryrefslogtreecommitdiff
path: root/test/integration/test-allow-scores-for-all-dependency-types
blob: 7e15a883b1792c599b7320f07f8620ae30f584c6 (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
#!/bin/sh
set -e

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

insertinstalledpackage 'libdb-dev' 'amd64' '5.1.7' 'Depends: libdb5.1-dev'
insertinstalledpackage 'libdb5.1-dev' 'amd64' '5.1.29-7'

insertpackage 'unstable' 'libdb-dev' 'amd64' '5.3.0' 'Depends: libdb5.3-dev
Conflicts: libdb5.1-dev'
insertpackage 'unstable' 'libdb5.1-dev' 'amd64' '5.1.29-7'
insertpackage 'unstable' 'libdb5.3-dev' 'amd64' '5.3.28-3' 'Conflicts: libdb5.1-dev'

insertpackage 'unstable' 'foo' 'amd64' '1'
insertpackage 'unstable' 'bar' 'amd64' '1'
insertpackage 'unstable' 'foo' 'amd64' '2' 'Conflicts: bar'
insertpackage 'unstable' 'bar' 'amd64' '2' 'Conflicts: foo'

setupaptarchive

testequal 'Reading package lists...
Building dependency tree...
The following packages will be REMOVED:
  libdb5.1-dev
The following NEW packages will be installed:
  libdb5.3-dev
The following packages will be upgraded:
  libdb-dev
1 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Remv libdb5.1-dev [5.1.29-7] [libdb-dev:amd64 ]
Inst libdb-dev [5.1.7] (5.3.0 unstable [amd64]) []
Inst libdb5.3-dev (5.3.28-3 unstable [amd64])
Conf libdb5.3-dev (5.3.28-3 unstable [amd64])
Conf libdb-dev (5.3.0 unstable [amd64])' aptget dist-upgrade -s

rm rootdir/var/lib/dpkg/status
insertinstalledpackage 'foo' 'amd64' '1'
insertinstalledpackage 'bar' 'amd64' '1'

testequal 'Reading package lists...
Building dependency tree...
The following packages have been kept back:
  bar foo
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.' aptget dist-upgrade -s