]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-apt-cli-upgrade
Merge remote-tracking branch 'donkult/debian/experimental' into debian/experimental
[apt.git] / test / integration / test-apt-cli-upgrade
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture "i386"
9
10if [ ! -x ${BUILDDIRECTORY}/apt ]; then
11 msgmsg "No ${BUILDDIRECTORY}/apt"
12 msgskip
13 exit 0
14fi
15
16
17insertpackage 'unstable' 'foo' 'all' '2.0' 'Depends: foo-new-dependency'
18insertpackage 'unstable' 'foo-new-dependency' 'all' '2.0'
19insertinstalledpackage 'foo' 'all' '1.0'
20
21setupaptarchive
22
23APTARCHIVE=$(readlink -f ./aptarchive)
24
25# default is to allow new dependencies
26testsuccessequal "The following NEW packages will be installed:
27 foo-new-dependency
28The following packages will be upgraded:
29 foo
301 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
31Inst foo-new-dependency (2.0 unstable [all])
32Inst foo [1.0] (2.0 unstable [all])
33Conf foo-new-dependency (2.0 unstable [all])
34Conf foo (2.0 unstable [all])" apt upgrade -qq -s
35
36# ensure the 'old' way works as well
37testsuccessequal "The following packages have been kept back:
38 foo
390 upgraded, 0 newly installed, 0 to remove and 1 not upgraded." apt upgrade -qq -s --no-new-pkgs