4 TESTDIR
=$(readlink -f $(dirname $0)) 
   7 configarchitecture 
'i386' 
   9 insertpackage 
'unstable' 'cool' 'all' '1.0-1' 
  11 getcodenamefromsuite
() { 
  12         if [ "$SUITE" = 'unstable' ]; then 
  18 getreleaseversionfromsuite
() { 
  19         if [ "$SUITE" = 'unstable' ]; then 
  27         if [ "$SUITE" = 'unstable' ]; then 
  28                 echo -n 'UnstableTestcases' 
  37         msgtest 
'Test that target-release is accepted' $1 
  38         testsuccess 
--nomsg aptget dist
-upgrade -t $1 
  39         msgtest 
'Test that target-release pins with' $1 
  40         aptcache policy 
-t $1 | grep -q ' 990' && msgpass 
|| msgfail
 
  44         msgtest 
'Test that target-release is refused' $1 
  45         testfailure 
--nomsg aptget dist
-upgrade -t $1 
  48 msgtest 
'Test that no default-release is active in this test' 'setup' 
  49 aptcache policy 
| grep -q ' 990' && msgfall 
|| msgpass
 
  61 # we accept, but don't validate the following 
  66 passdist l
=UnstableTestcases