]>
Commit | Line | Data |
---|---|---|
b855a400 DK |
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 | ||
25b86db1 | 20 | testfailureequal 'Reading package lists... |
b855a400 | 21 | Building dependency tree... |
2a884c61 | 22 | Calculating upgrade... |
b855a400 DK |
23 | The following packages will be upgraded: |
24 | pkgall pkgarch | |
25 | 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
26 | After this operation, 0 B of additional disk space will be used. | |
27 | E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only | |
28 | ||
25b86db1 DK |
29 | testsuccessequal 'pkgarch set on hold.' aptmark hold pkgarch |
30 | testsuccessequal 'pkgarch' aptmark showhold | |
b855a400 | 31 | |
25b86db1 | 32 | testfailureequal 'Reading package lists... |
b855a400 | 33 | Building dependency tree... |
2a884c61 | 34 | Calculating upgrade... |
b855a400 DK |
35 | The following packages have been kept back: |
36 | pkgarch | |
37 | The following packages will be upgraded: | |
38 | pkgall | |
39 | 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. | |
40 | After this operation, 0 B of additional disk space will be used. | |
41 | E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only | |
42 | ||
25b86db1 | 43 | testsuccessequal 'Canceled hold on pkgarch.' aptmark unhold pkgarch |
b855a400 DK |
44 | testempty aptmark showhold |
45 | ||
25b86db1 | 46 | testfailureequal 'Reading package lists... |
b855a400 | 47 | Building dependency tree... |
2a884c61 | 48 | Calculating upgrade... |
b855a400 DK |
49 | The following packages will be upgraded: |
50 | pkgall pkgarch | |
51 | 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
52 | After this operation, 0 B of additional disk space will be used. | |
53 | E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only | |
54 | ||
25b86db1 DK |
55 | testsuccessequal 'pkgall set on hold.' aptmark hold pkgall |
56 | testsuccessequal 'pkgall' aptmark showhold | |
b855a400 | 57 | |
25b86db1 | 58 | testfailureequal 'Reading package lists... |
b855a400 | 59 | Building dependency tree... |
2a884c61 | 60 | Calculating upgrade... |
b855a400 DK |
61 | The following packages have been kept back: |
62 | pkgall | |
63 | The following packages will be upgraded: | |
64 | pkgarch | |
65 | 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. | |
66 | After this operation, 0 B of additional disk space will be used. | |
67 | E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only | |
68 | ||
25b86db1 | 69 | testsuccessequal 'Canceled hold on pkgall.' aptmark unhold pkgall |
b855a400 DK |
70 | testempty aptmark showhold |
71 | } | |
72 | # single-arch | |
73 | runtests | |
74 | # multi-arch | |
75 | configarchitecture 'amd64' 'i386' | |
76 | runtests |