]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-get-upgrade
4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
"i386"
10 # FIXME: use simulated packages instead
12 insertpackage
'stable' 'foo' 'all' '1.0'
13 insertpackage
'unstable' 'foo' 'all' '2.0'
15 insertpackage
'unstable' 'bar' 'all' '1.0'
17 insertpackage
'stable' 'apx' 'all' '1.0'
18 insertpackage
'unstable' 'apx' 'all' '2.0' 'Conflicts: foo'
20 insertpackage
'stable' 'apc' 'all' '1.0'
21 insertpackage
'unstable' 'apc' 'all' '2.0' 'Depends: bar'
23 insertinstalledpackage
'apx' 'all' '1.0'
24 insertinstalledpackage
'apc' 'all' '1.0'
25 insertinstalledpackage
'foo' 'all' '1.0'
29 msgtest
"Test normal upgrade works"
30 testequal
'Reading package lists...
31 Building dependency tree...
32 The following packages have been kept back:
34 The following packages will be upgraded:
36 1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
37 Inst foo [1.0] (2.0 unstable [all])
38 Conf foo (2.0 unstable [all])' aptget
-s upgrade
&& msgpass
|| msgfail
40 msgtest
"Test if upgrade --with-new-pkgs works"
41 testequal
'Reading package lists...
42 Building dependency tree...
43 The following NEW packages will be installed:
45 The following packages have been kept back:
47 The following packages will be upgraded:
49 1 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
50 Inst bar (1.0 unstable [all])
51 Inst apc [1.0] (2.0 unstable [all])
52 Conf bar (1.0 unstable [all])
53 Conf apc (2.0 unstable [all])' aptget
-s upgrade
--with-new-pkgs && msgpass
|| msgfail
55 msgtest
"Test dist-upgrade works"
56 testequal
'Reading package lists...
57 Building dependency tree...
58 The following NEW packages will be installed:
60 The following packages have been kept back:
62 The following packages will be upgraded:
64 2 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
65 Inst bar (1.0 unstable [all])
66 Inst apc [1.0] (2.0 unstable [all])
67 Inst foo [1.0] (2.0 unstable [all])
68 Conf bar (1.0 unstable [all])
69 Conf apc (2.0 unstable [all])
70 Conf foo (2.0 unstable [all])' aptget
-s dist
-upgrade && msgpass
|| msgfail