Commit | Line | Data |
---|---|---|
42c1513b MV |
1 | #!/bin/sh |
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' 'amd64' '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-Fd=3 | |
25b86db1 | 18 | testfileequal './apt-progress.log' 'dlstatus:1:0:Retrieving file 1 of 1 |
ff86d7df | 19 | dlstatus:1:0:Retrieving file 1 of 1 |
f7bf262e | 20 | dlstatus:1:20:Retrieving file 1 of 1 |
42c1513b | 21 | pmstatus:dpkg-exec:0:Running dpkg |
dd640f3c | 22 | pmstatus:testing:0:Installing testing (amd64) |
ecb777dd DK |
23 | pmstatus:testing:16.6667:Preparing testing (amd64) |
24 | pmstatus:testing:33.3333:Unpacking testing (amd64) | |
25 | pmstatus:testing:50:Preparing to configure testing (amd64) | |
26 | pmstatus:dpkg-exec:50:Running dpkg | |
27 | pmstatus:testing:50:Configuring testing (amd64) | |
28 | pmstatus:testing:66.6667:Configuring testing (amd64) | |
29 | pmstatus:testing:83.3333:Installed testing (amd64) | |
25b86db1 | 30 | pmstatus:dpkg-exec:83.3333:Running dpkg' |
42c1513b MV |
31 | |
32 | # upgrade | |
33 | exec 3> apt-progress.log | |
34 | testsuccess aptget install testing=0.8.15 -y -o APT::Status-Fd=3 | |
25b86db1 | 35 | testfileequal './apt-progress.log' 'dlstatus:1:0:Retrieving file 1 of 1 |
ff86d7df | 36 | dlstatus:1:0:Retrieving file 1 of 1 |
f7bf262e | 37 | dlstatus:1:20:Retrieving file 1 of 1 |
42c1513b | 38 | pmstatus:dpkg-exec:0:Running dpkg |
4c559e97 | 39 | pmstatus:testing:0:Installing testing (amd64) |
ecb777dd DK |
40 | pmstatus:testing:16.6667:Preparing testing (amd64) |
41 | pmstatus:testing:33.3333:Unpacking testing (amd64) | |
42 | pmstatus:testing:50:Preparing to configure testing (amd64) | |
43 | pmstatus:dpkg-exec:50:Running dpkg | |
44 | pmstatus:testing:50:Configuring testing (amd64) | |
45 | pmstatus:testing:66.6667:Configuring testing (amd64) | |
46 | pmstatus:testing:83.3333:Installed testing (amd64) | |
25b86db1 | 47 | pmstatus:dpkg-exec:83.3333:Running dpkg' |
4c559e97 DK |
48 | |
49 | # reinstall | |
50 | exec 3> apt-progress.log | |
51 | testsuccess aptget install testing=0.8.15 --reinstall -y -o APT::Status-Fd=3 | |
25b86db1 | 52 | testfileequal './apt-progress.log' 'dlstatus:1:0:Retrieving file 1 of 1 |
ff86d7df | 53 | dlstatus:1:0:Retrieving file 1 of 1 |
a1380a5c | 54 | dlstatus:1:20:Retrieving file 1 of 1 |
4c559e97 DK |
55 | pmstatus:dpkg-exec:0:Running dpkg |
56 | pmstatus:testing:0:Installing testing (amd64) | |
ecb777dd DK |
57 | pmstatus:testing:16.6667:Preparing testing (amd64) |
58 | pmstatus:testing:33.3333:Unpacking testing (amd64) | |
59 | pmstatus:testing:50:Preparing to configure testing (amd64) | |
60 | pmstatus:dpkg-exec:50:Running dpkg | |
61 | pmstatus:testing:50:Configuring testing (amd64) | |
62 | pmstatus:testing:66.6667:Configuring testing (amd64) | |
63 | pmstatus:testing:83.3333:Installed testing (amd64) | |
25b86db1 | 64 | pmstatus:dpkg-exec:83.3333:Running dpkg' |
42c1513b MV |
65 | |
66 | # and remove | |
67 | exec 3> apt-progress.log | |
68 | testsuccess aptget remove testing -y -o APT::Status-Fd=3 | |
25b86db1 | 69 | testfileequal './apt-progress.log' 'pmstatus:dpkg-exec:0:Running dpkg |
dd640f3c | 70 | pmstatus:testing:0:Removing testing (amd64) |
ecb777dd DK |
71 | pmstatus:testing:25:Preparing for removal of testing (amd64) |
72 | pmstatus:testing:50:Removing testing (amd64) | |
73 | pmstatus:testing:75:Removed testing (amd64) | |
25b86db1 | 74 | pmstatus:dpkg-exec:75:Running dpkg' |
42c1513b | 75 | |
42c1513b MV |
76 | # install non-native and ensure we get proper progress info |
77 | exec 3> apt-progress.log | |
78 | testsuccess aptget install testing2:i386 -y -o APT::Status-Fd=3 | |
25b86db1 | 79 | testfileequal './apt-progress.log' 'dlstatus:1:0:Retrieving file 1 of 1 |
ff86d7df | 80 | dlstatus:1:0:Retrieving file 1 of 1 |
f7bf262e | 81 | dlstatus:1:20:Retrieving file 1 of 1 |
42c1513b | 82 | pmstatus:dpkg-exec:0:Running dpkg |
dd640f3c | 83 | pmstatus:testing2:0:Installing testing2 (i386) |
ecb777dd DK |
84 | pmstatus:testing2:16.6667:Preparing testing2 (i386) |
85 | pmstatus:testing2:33.3333:Unpacking testing2 (i386) | |
86 | pmstatus:testing2:50:Preparing to configure testing2 (i386) | |
87 | pmstatus:dpkg-exec:50:Running dpkg | |
88 | pmstatus:testing2:50:Configuring testing2 (i386) | |
89 | pmstatus:testing2:66.6667:Configuring testing2 (i386) | |
90 | pmstatus:testing2:83.3333:Installed testing2 (i386) | |
25b86db1 | 91 | pmstatus:dpkg-exec:83.3333:Running dpkg' |
42c1513b | 92 | |
dd640f3c | 93 | rm -f apt-progress*.log |