]> git.saurik.com Git - apt.git/blob - test/integration/test-apt-progress-fd-deb822
restore binary compatiblity with the pkgPackageManager interface
[apt.git] / test / integration / test-apt-progress-fd-deb822
1
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6
7 setupenvironment
8 configarchitecture 'amd64' 'i386'
9
10 buildsimplenativepackage 'testing' 'amd64' '0.1' 'stable'
11 buildsimplenativepackage 'testing' 'all' '0.8.15' 'stable'
12 buildsimplenativepackage 'testing2' 'amd64,i386' '0.8.15' 'stable'
13 setupaptarchive
14
15 # install native
16 exec 3> apt-progress.log
17 testsuccess aptget install testing=0.1 -y -o APT::Status-deb822-Fd=3
18 testequal "# and compare
19 testequal "percent:0
20 message: Running dpkg
21
22 package: testing2
23 percent: 0
24 message: Installing testing2 (i386)
25
26 package: testing2
27 percent: 20
28 message: Preparing testing2 (i386)
29
30 package: testing2
31 percent: 40
32 message: Unpacking testing2 (i386)
33
34 package: testing2
35 percent: 60
36 message: Preparing to configure testing2 (i386)
37
38 percent: 60
39 message: Running dpkg
40
41 package: testing2
42 percent: 60
43 message: Configuring testing2 (i386)
44
45 package: testing2
46 percent: 80
47 message: Configuring testing2 (i386)
48
49 package: testing2
50 percent: 100
51 message: Installed testing2 (i386)" cat apt-progress.log
52
53
54 rm -f apt-progress*.log