]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-cli-upgrade
ignore Acquire::GzipIndexes for cdrom sources
[apt.git] / test / integration / test-apt-cli-upgrade
CommitLineData
59e81cec
MV
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture "i386"
9
3c74988b
MV
10if [ ! -x ${BUILDDIRECTORY}/apt ]; then
11 msgmsg "No ${BUILDDIRECTORY}/apt"
12 msgskip
13 exit 0
14fi
15
16
59e81cec
MV
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
33b813ce 26testequal "The following NEW packages will be installed:
59e81cec
MV
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
33b813ce 37testequal "The following packages have been kept back:
59e81cec
MV
38 foo
390 upgraded, 0 newly installed, 0 to remove and 1 not upgraded." apt upgrade -qq -s --no-new-pkgs