]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-update-reporting
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture 'amd64'
9 for i in $(seq 100); do
10 insertpackage 'unstable' "foo
-$i" 'all' '1.0'
11 insertsource 'unstable' "foo
-$i" 'all' '1.0'
14 setupaptarchive --no-update
17 aptget update -o Debug::Acquire::Progress=1 2>progress.log >ignore.out
21 percent="$(echo "$line"|cut -b2-6)"
22 # need to cut the decimal point and digits because sh can not do
24 if [ "${percent%%.*}" -lt "${prev_percent%%.*}" ]; then
25 echo "progress goes backwards
"
29 prev_percent="$percent"