]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-cli-upgrade
ensure FileFd doesn't try to open /dev/null as atomic and co
[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
25b86db1 26testsuccessequal "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
25b86db1
DK
36# ensure the 'old' way works as well
37testsuccessequal "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