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