~ubuntu-branches/ubuntu/saucy/apt/saucy

« back to all changes in this revision

Viewing changes to test/integration/test-bug-680041-apt-mark-holds-correctly

  • Committer: Package Import Robot
  • Author(s): Michael Vogt, Michael Vogt, TJ
  • Date: 2012-08-28 12:06:48 UTC
  • mfrom: (1.4.53 sid)
  • Revision ID: package-import@ubuntu.com-20120828120648-lbw0q0611jn030bx
Tags: 0.9.7.5ubuntu1
[ Michael Vogt ]
* merged latest fixes from the debian-sid branch

[ TJ ]
* apt-pkg/contrib/netrc.cc:
  - increase LOGINSIZE/PASSWORDSIZE limits and add proper error
    if the limits are reached (LP: #1008289)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
TESTDIR=$(readlink -f $(dirname $0))
 
5
. $TESTDIR/framework
 
6
setupenvironment
 
7
configarchitecture 'amd64'
 
8
 
 
9
insertinstalledpackage 'pkgarch' 'amd64' '1'
 
10
insertinstalledpackage 'pkgall' 'all' '1'
 
11
 
 
12
insertpackage 'unstable' 'pkgarch' 'amd64' '2'
 
13
insertpackage 'unstable' 'pkgall' 'all' '2'
 
14
 
 
15
setupaptarchive
 
16
 
 
17
runtests() {
 
18
        testempty aptmark showhold
 
19
 
 
20
        testequal 'Reading package lists...
 
21
Building dependency tree...
 
22
The following packages will be upgraded:
 
23
  pkgall pkgarch
 
24
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
25
After this operation, 0 B of additional disk space will be used.
 
26
E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
 
27
 
 
28
        testequal 'pkgarch set on hold.' aptmark hold pkgarch
 
29
        testequal 'pkgarch' aptmark showhold
 
30
 
 
31
        testequal 'Reading package lists...
 
32
Building dependency tree...
 
33
The following packages have been kept back:
 
34
  pkgarch
 
35
The following packages will be upgraded:
 
36
  pkgall
 
37
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
 
38
After this operation, 0 B of additional disk space will be used.
 
39
E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
 
40
 
 
41
        testequal 'Canceled hold on pkgarch.' aptmark unhold pkgarch
 
42
        testempty aptmark showhold
 
43
 
 
44
        testequal 'Reading package lists...
 
45
Building dependency tree...
 
46
The following packages will be upgraded:
 
47
  pkgall pkgarch
 
48
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
49
After this operation, 0 B of additional disk space will be used.
 
50
E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
 
51
 
 
52
        testequal 'pkgall set on hold.' aptmark hold pkgall
 
53
        testequal 'pkgall' aptmark showhold
 
54
 
 
55
        testequal 'Reading package lists...
 
56
Building dependency tree...
 
57
The following packages have been kept back:
 
58
  pkgall
 
59
The following packages will be upgraded:
 
60
  pkgarch
 
61
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
 
62
After this operation, 0 B of additional disk space will be used.
 
63
E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
 
64
 
 
65
        testequal 'Canceled hold on pkgall.' aptmark unhold pkgall
 
66
        testempty aptmark showhold
 
67
}
 
68
# single-arch
 
69
runtests
 
70
# multi-arch
 
71
configarchitecture 'amd64' 'i386'
 
72
runtests