4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
'amd64'
10 insertpackage
'testing' 'foo' 'all' '1'
11 insertpackage
'unstable' 'foo' 'all' '2'
12 insertinstalledpackage
'foo' 'all' '3'
16 # nothing to do always works
17 testsuccess aptget clean
18 testsuccess aptget clean
-s
20 # generate some dirt and clean it up
21 touch rootdir
/var
/lib
/apt
/lists
/partial
/http.debian.net_debian_dists_sid_main_i18n_Translation
-en
22 mkdir -p rootdir
/var
/cache
/apt
/archives
23 touch rootdir
/var
/cache
/apt
/archives
/foo_1_all.deb
24 touch rootdir
/var
/cache
/apt
/archives
/foo_2_all.deb
25 touch rootdir
/var
/cache
/apt
/archives
/foo_3_all.deb
26 touch rootdir
/var
/cache
/apt
/archives
/foo_4_all.deb
28 testsuccess aptget clean
30 testfailure
test -e rootdir
/var
/lib
/apt
/lists
/partial
/http.debian.net_debian_dists_sid_main_i18n_Translation
-en
31 testfailure
test -e rootdir
/var
/cache
/apt
/archives
/foo_1_all.deb
32 testfailure
test -e rootdir
/var
/cache
/apt
/archives
/foo_2_all.deb
33 testfailure
test -e rootdir
/var
/cache
/apt
/archives
/foo_3_all.deb
34 testfailure
test -e rootdir
/var
/cache
/apt
/archives
/foo_4_all.deb