]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-cli-upgrade
doc: Fix fuzzy string regression
[apt.git] / test / integration / test-apt-cli-upgrade
CommitLineData
59e81cec
MV
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
59e81cec
MV
6
7setupenvironment
8configarchitecture "i386"
9
10insertpackage 'unstable' 'foo' 'all' '2.0' 'Depends: foo-new-dependency'
11insertpackage 'unstable' 'foo-new-dependency' 'all' '2.0'
12insertinstalledpackage 'foo' 'all' '1.0'
13
14setupaptarchive
15
3abb6a6a 16APTARCHIVE="$(readlink -f ./aptarchive)"
59e81cec
MV
17
18# default is to allow new dependencies
25b86db1 19testsuccessequal "The following NEW packages will be installed:
59e81cec
MV
20 foo-new-dependency
21The following packages will be upgraded:
22 foo
231 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
24Inst foo-new-dependency (2.0 unstable [all])
25Inst foo [1.0] (2.0 unstable [all])
26Conf foo-new-dependency (2.0 unstable [all])
27Conf foo (2.0 unstable [all])" apt upgrade -qq -s
28
25b86db1
DK
29# ensure the 'old' way works as well
30testsuccessequal "The following packages have been kept back:
59e81cec
MV
31 foo
320 upgraded, 0 newly installed, 0 to remove and 1 not upgraded." apt upgrade -qq -s --no-new-pkgs