]>
Commit | Line | Data |
---|---|---|
20e6965a DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | ||
7 | setupenvironment | |
8 | configarchitecture 'amd64' | |
9 | ||
10 | insertpackage 'testing' 'foo' 'all' '1' | |
11 | insertpackage 'unstable' 'foo' 'all' '2' | |
12 | insertinstalledpackage 'foo' 'all' '3' | |
13 | ||
14 | setupaptarchive | |
15 | ||
16 | # nothing to do always works | |
17 | testsuccess aptget clean | |
18 | ||
19 | # generate some dirt and clean it up | |
20 | touch rootdir/var/lib/apt/lists/partial/http.debian.net_debian_dists_sid_main_i18n_Translation-en | |
04a54261 | 21 | mkdir -p rootdir/var/cache/apt/archives |
20e6965a DK |
22 | touch rootdir/var/cache/apt/archives/foo_1_all.deb |
23 | touch rootdir/var/cache/apt/archives/foo_2_all.deb | |
24 | touch rootdir/var/cache/apt/archives/foo_3_all.deb | |
25 | touch rootdir/var/cache/apt/archives/foo_4_all.deb | |
26 | ||
27 | testsuccess aptget clean | |
28 | ||
29 | testsuccess test ! -e rootdir/var/lib/apt/lists/partial/http.debian.net_debian_dists_sid_main_i18n_Translation-en | |
30 | testsuccess test ! -e rootdir/var/cache/apt/archives/foo_1_all.deb | |
31 | testsuccess test ! -e rootdir/var/cache/apt/archives/foo_2_all.deb | |
32 | testsuccess test ! -e rootdir/var/cache/apt/archives/foo_3_all.deb | |
33 | testsuccess test ! -e rootdir/var/cache/apt/archives/foo_4_all.deb | |
34 | ||
35 |