]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-lp1445239-download-loop
3 # this is a regression test for LP: #1445239 where a partial download can
4 # trigger an endless hang of the download method
9 TESTDIR
="$(readlink -f "$(dirname "$0")")"
10 . "$TESTDIR/framework
"
12 configarchitecture 'amd64'
15 webserverconfig 'aptwebserver::support::range' 'true'
17 TESTFILE='aptarchive/testfile'
18 dd if=/dev/zero of=$TESTFILE bs=100k count=1 2>/dev/null
20 DOWNLOADLOG='rootdir/tmp/testdownloadfile.log'
22 TARGET=./downloaded/testfile-downloaded
23 dd if=/dev/zero of=$TARGET bs=99k count=1 2>/dev/null
24 if ! downloadfile http://localhost:${APTHTTPPORT}/testfile "$TARGET" > "$DOWNLOADLOG"; then
25 cat >&2 "$DOWNLOADLOG"