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