4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
'amd64' 'i386'
9 insertpackage
'unstable' 'bar' 'amd64,i386' '1'
10 insertpackage
'unstable' 'uninstalled' 'all' '1'
11 insertpackage
'unstable' 'uninstalled-native' 'amd64' '1'
13 insertinstalledpackage
'foo' 'all' '1'
14 insertinstalledpackage
'bar' 'amd64' '1'
18 # dpkg is "installed" by our test framework
19 testdpkginstalled dpkg
22 testempty aptmark showauto
25 foo' aptmark showmanual
27 foo' aptmark showmanual bar foo uninstalled
29 testmarkonpkgasauto
() {
30 testsuccess aptmark
$1 foo
31 testequal
'foo' aptmark showauto
32 testequal
'foo' aptmark showauto foo
34 dpkg' aptmark showmanual
35 testequal
'bar' aptmark showmanual bar
37 testsuccess aptmark
$2 foo
41 testequal
'E: No packages found' aptmark auto
42 testequal
'E: No packages found' aptmark manual
45 testmarkonpkgasauto
'auto' 'manual'
46 testmarkonpkgasauto
'markauto' 'unmarkauto'
49 testempty aptmark showhold
50 testempty aptmark showholds
# typical "typo"
51 testempty aptmark showhold dpkg
52 testempty aptmark showholds dpkg
54 testmarkonepkgashold
() {
55 testsuccess aptmark hold
$1
56 testequal
"$1" aptmark showhold
57 testequal
"$1" aptmark showholds
58 testsuccess aptmark unhold
$1
62 testequal
'E: No packages found' aptmark hold
63 testequal
'E: No packages found' aptmark unhold
66 testmarkonepkgashold
'foo'
67 testmarkonepkgashold
'bar'
68 testmarkonepkgashold
'uninstalled'
69 testmarkonepkgashold
'uninstalled-native'
71 testequal
'uninstalled set on hold.' aptmark hold uninstalled
72 testequal
'uninstalled-native set on hold.' aptmark hold uninstalled
-native