]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-680041-apt-mark-holds-correctly
ensure partial dirs are 0700 and owned by _apt:root
[apt.git] / test / integration / test-bug-680041-apt-mark-holds-correctly
CommitLineData
b855a400
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64'
8
9insertinstalledpackage 'pkgarch' 'amd64' '1'
10insertinstalledpackage 'pkgall' 'all' '1'
11
12insertpackage 'unstable' 'pkgarch' 'amd64' '2'
13insertpackage 'unstable' 'pkgall' 'all' '2'
14
15setupaptarchive
16
17runtests() {
18 testempty aptmark showhold
19
20 testequal 'Reading package lists...
21Building dependency tree...
2a884c61 22Calculating upgrade...
b855a400
DK
23The following packages will be upgraded:
24 pkgall pkgarch
252 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
26After this operation, 0 B of additional disk space will be used.
27E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
28
29 testequal 'pkgarch set on hold.' aptmark hold pkgarch
30 testequal 'pkgarch' aptmark showhold
31
32 testequal 'Reading package lists...
33Building dependency tree...
2a884c61 34Calculating upgrade...
b855a400
DK
35The following packages have been kept back:
36 pkgarch
37The following packages will be upgraded:
38 pkgall
391 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
40After this operation, 0 B of additional disk space will be used.
41E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
42
43 testequal 'Canceled hold on pkgarch.' aptmark unhold pkgarch
44 testempty aptmark showhold
45
46 testequal 'Reading package lists...
47Building dependency tree...
2a884c61 48Calculating upgrade...
b855a400
DK
49The following packages will be upgraded:
50 pkgall pkgarch
512 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
52After this operation, 0 B of additional disk space will be used.
53E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
54
55 testequal 'pkgall set on hold.' aptmark hold pkgall
56 testequal 'pkgall' aptmark showhold
57
58 testequal 'Reading package lists...
59Building dependency tree...
2a884c61 60Calculating upgrade...
b855a400
DK
61The following packages have been kept back:
62 pkgall
63The following packages will be upgraded:
64 pkgarch
651 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
66After this operation, 0 B of additional disk space will be used.
67E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
68
69 testequal 'Canceled hold on pkgall.' aptmark unhold pkgall
70 testempty aptmark showhold
71}
72# single-arch
73runtests
74# multi-arch
75configarchitecture 'amd64' 'i386'
76runtests