4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
"i386"
9 insertpackage
'unstable' 'apt' 'i386' '0.8.15'
14 msgtest
"Test that the Candidate for $1 is" $2
15 if [ "$(aptcache policy $1 | grep '^ Candidate:')" = " Candidate: $2" ]; then
24 testcandidate apt
'0.8.15'
25 testequal
'N: Unable to locate package doesntexist' aptcache policy doesntexist
-q=0
26 testequal
'Reading package lists...
27 Building dependency tree...
28 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget dist
-upgrade
31 Pin: release a=unstable
32 Pin-Priority: -1' > rootdir
/etc
/apt
/preferences
34 testcandidate apt
'(none)'
35 testequal
'N: Unable to locate package doesntexist' aptcache policy doesntexist
-q=0
36 testequal
'Reading package lists...
37 Building dependency tree...
38 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget dist
-upgrade
42 Pin: release a=unstable
43 Pin-Priority: 1000' >> rootdir
/etc
/apt
/preferences
45 testcandidate apt
'(none)'
49 Pin: release a=unstable
50 Pin-Priority: 1000' >> rootdir
/etc
/apt
/preferences
52 testcandidate apt
'(none)'
53 testequal
'N: Unable to locate package doesntexist' aptcache policy doesntexist
-q=0
55 testequal
'Reading package lists...
56 Building dependency tree...
57 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget dist
-upgrade