]> git.saurik.com Git - apt.git/blame - test/integration/test-ubuntu-bug-1304403-obsolete-priority-standard
CMake: Add coverage build type
[apt.git] / test / integration / test-ubuntu-bug-1304403-obsolete-priority-standard
CommitLineData
4cd4a2e7
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
4cd4a2e7
DK
6
7setupenvironment
8configarchitecture 'i386'
9
10# Regression test for LP: #1304403
11#
12# The issue here is that libkadm5srv-mit8 (priority standard) is replaced
13# by a new libkadm5srv-mit9 and libkbd5-7 breaks on the old -mit8 package.
14# The -mit8 package is no longer downloadable (and hence not upgradeable)
15
16# normal upradable pkg
17# (libkdb5-7 that breaks on libkadm5srv-mit8 (<< 1.11+dfsg~)
18insertinstalledpackage 'upgradable' 'all' '1.0' '' 'extra'
19insertpackage 'unstable' 'upgradable' 'all' '2.0' 'Breaks: not-downloadable (<< 1.1)' 'optional'
20
21# no longer downloadable pkg (libkadm5srv-mit8, replaced by libkadm5srv-mit9)
22# but priority standard pushes it higher
23insertinstalledpackage 'not-downloadable' 'all' '1.0' '' 'standard'
24
25setupaptarchive
26
27# discourage keeping obsolete high-priority packages …
25b86db1 28testsuccessequal 'Reading package lists...
4cd4a2e7 29Building dependency tree...
2a884c61 30Calculating upgrade...
4cd4a2e7
DK
31The following packages will be REMOVED:
32 not-downloadable
33The following packages will be upgraded:
34 upgradable
351 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
36Remv not-downloadable [1.0]
37Inst upgradable [1.0] (2.0 unstable [all])
38Conf upgradable (2.0 unstable [all])' aptget -s dist-upgrade
39
40# … but if it has dependencies we want to keep it as usual
41for i in $(seq 1 10); do
42insertinstalledpackage "depender$i" 'all' '1.0' 'Depends: not-downloadable'
43done
44
25b86db1 45testsuccessequal 'Reading package lists...
4cd4a2e7 46Building dependency tree...
2a884c61 47Calculating upgrade...
4cd4a2e7
DK
48The following packages have been kept back:
49 upgradable
500 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.' aptget -s dist-upgrade