]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-apt-progress-fd-deb822
Merge remote-tracking branch 'upstream/debian/experimental' into feature/acq-trans
[apt.git] / test / integration / test-apt-progress-fd-deb822
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture 'amd64' 'i386'
9
10buildsimplenativepackage 'testing' 'amd64' '0.1' 'stable'
11buildsimplenativepackage 'testing' 'all' '0.8.15' 'stable'
12buildsimplenativepackage 'testing2' 'amd64,i386' '0.8.15' 'stable'
13setupaptarchive
14
15# install native
16exec 3> apt-progress.log
17testsuccess aptget install testing=0.1 -y -o APT::Status-deb822-Fd=3
18
19testequal "Status: progress
20Percent: 0
21Message: Running dpkg
22
23Status: progress
24Package: testing:amd64
25Percent: 0
26Message: Installing testing (amd64)
27
28Status: progress
29Package: testing:amd64
30Percent: 20
31Message: Preparing testing (amd64)
32
33Status: progress
34Package: testing:amd64
35Percent: 40
36Message: Unpacking testing (amd64)
37
38Status: progress
39Package: testing:amd64
40Percent: 60
41Message: Preparing to configure testing (amd64)
42
43Status: progress
44Percent: 60
45Message: Running dpkg
46
47Status: progress
48Package: testing:amd64
49Percent: 60
50Message: Configuring testing (amd64)
51
52Status: progress
53Package: testing:amd64
54Percent: 80
55Message: Configuring testing (amd64)
56
57Status: progress
58Package: testing:amd64
59Percent: 100
60Message: Installed testing (amd64)
61" cat apt-progress.log
62
63
64rm -f apt-progress*.log