]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-get-upgrade
4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
"i386"
11 insertpackage
'stable,installed' 'upgrade-simple' 'all' '1.0'
12 insertpackage
'unstable' 'upgrade-simple' 'all' '2.0'
14 # upgrade with a new dependency
15 insertpackage
'stable,installed' 'upgrade-with-new-dep' 'all' '1.0'
16 insertpackage
'unstable' 'upgrade-with-new-dep' 'all' '2.0' 'Depends: new-dep'
17 insertpackage
'stable' 'new-dep' 'all' '1.0'
19 # upgrade with conflict and a new pkg with higher priority than conflict
20 insertpackage
'stable,installed' 'upgrade-with-conflict' 'all' '1.0'
21 insertpackage
'unstable' 'upgrade-with-conflict' 'all' '2.0' 'Conflicts: conflicting-dep' 'standard'
22 insertpackage
'stable,installed' 'conflicting-dep' 'all' '1.0'
26 # Test if normal upgrade works as expected
27 testequal
'Reading package lists...
28 Building dependency tree...
29 Calculating upgrade...
30 The following packages have been kept back:
31 upgrade-with-conflict upgrade-with-new-dep
32 The following packages will be upgraded:
34 1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
35 Inst upgrade-simple [1.0] (2.0 unstable [all])
36 Conf upgrade-simple (2.0 unstable [all])' aptget
-s upgrade
38 # Test if apt-get upgrade --with-new-pkgs works
39 testequal
'Reading package lists...
40 Building dependency tree...
41 Calculating upgrade...
42 The following NEW packages will be installed:
44 The following packages have been kept back:
46 The following packages will be upgraded:
47 upgrade-simple upgrade-with-new-dep
48 2 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
49 Inst new-dep (1.0 stable [all])
50 Inst upgrade-simple [1.0] (2.0 unstable [all])
51 Inst upgrade-with-new-dep [1.0] (2.0 unstable [all])
52 Conf new-dep (1.0 stable [all])
53 Conf upgrade-simple (2.0 unstable [all])
54 Conf upgrade-with-new-dep (2.0 unstable [all])' aptget
-s upgrade
--with-new-pkgs
56 # Test if apt-get dist-upgrade works
57 testequal
'Reading package lists...
58 Building dependency tree...
59 Calculating upgrade...
60 The following packages will be REMOVED:
62 The following NEW packages will be installed:
64 The following packages will be upgraded:
65 upgrade-simple upgrade-with-conflict upgrade-with-new-dep
66 3 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
67 Remv conflicting-dep [1.0]
68 Inst upgrade-with-conflict [1.0] (2.0 unstable [all])
69 Inst new-dep (1.0 stable [all])
70 Inst upgrade-simple [1.0] (2.0 unstable [all])
71 Inst upgrade-with-new-dep [1.0] (2.0 unstable [all])
72 Conf upgrade-with-conflict (2.0 unstable [all])
73 Conf new-dep (1.0 stable [all])
74 Conf upgrade-simple (2.0 unstable [all])
75 Conf upgrade-with-new-dep (2.0 unstable [all])' aptget
-s dist
-upgrade