]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-progress-fd-deb822
restore binary compatiblity with the pkgPackageManager interface
[apt.git] / test / integration / test-apt-progress-fd-deb822
CommitLineData
3b1b0f29
MV
1
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
18testequal "# and compare
19testequal "percent:0
20message: Running dpkg
21
22package: testing2
23percent: 0
24message: Installing testing2 (i386)
25
26package: testing2
27percent: 20
28message: Preparing testing2 (i386)
29
30package: testing2
31percent: 40
32message: Unpacking testing2 (i386)
33
34package: testing2
35percent: 60
36message: Preparing to configure testing2 (i386)
37
38percent: 60
39message: Running dpkg
40
41package: testing2
42percent: 60
43message: Configuring testing2 (i386)
44
45package: testing2
46percent: 80
47message: Configuring testing2 (i386)
48
49package: testing2
50percent: 100
51message: Installed testing2 (i386)" cat apt-progress.log
52
53
54rm -f apt-progress*.log