]>
Commit | Line | Data |
---|---|---|
d4b4e5ea DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
d4b4e5ea DK |
6 | setupenvironment |
7 | configarchitecture 'amd64' 'i386' | |
8 | ||
9 | insertpackage 'unstable' 'libqtcore4' 'i386,amd64' '2' 'Multi-Arch: same' | |
10 | setupaptarchive | |
11 | ||
12 | DPKGSTATUS='rootdir/var/lib/dpkg/status' | |
13 | cp $DPKGSTATUS dpkg.status | |
14 | ||
15 | cleanstatus() { | |
16 | cp dpkg.status $DPKGSTATUS | |
17 | rm rootdir/var/cache/apt/*.bin | |
18 | } | |
19 | ||
20 | #FIXME: the reported version is wrong, it should be 1, not 2 | |
21 | insertinstalledpackage 'libqtcore4' 'i386,amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked' | |
25b86db1 | 22 | testsuccessequal 'Reading package lists... |
d4b4e5ea DK |
23 | Building dependency tree... |
24 | 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. | |
25 | 2 not fully installed or removed. | |
26 | Conf libqtcore4 (2 unstable [amd64]) | |
27 | Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f | |
28 | ||
29 | cleanstatus | |
30 | insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same' '' 'install ok unpacked' | |
31 | insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same' '' 'install ok unpacked' | |
25b86db1 | 32 | testsuccessequal 'Reading package lists... |
d4b4e5ea DK |
33 | Building dependency tree... |
34 | Correcting dependencies... Done | |
e7ebb414 | 35 | The following additional packages will be installed: |
d4b4e5ea DK |
36 | libqtcore4:i386 |
37 | The following packages will be upgraded: | |
38 | libqtcore4:i386 | |
39 | 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
40 | 2 not fully installed or removed. | |
41 | Inst libqtcore4:i386 [1] (2 unstable [i386]) | |
42 | Conf libqtcore4:i386 (2 unstable [i386]) | |
43 | Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f | |
44 | ||
45 | cleanstatus | |
46 | insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same' '' 'install ok unpacked' | |
47 | insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked' | |
25b86db1 | 48 | testsuccessequal 'Reading package lists... |
d4b4e5ea DK |
49 | Building dependency tree... |
50 | Correcting dependencies... Done | |
e7ebb414 | 51 | The following additional packages will be installed: |
d4b4e5ea DK |
52 | libqtcore4 |
53 | The following packages will be upgraded: | |
54 | libqtcore4 | |
55 | 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
56 | 2 not fully installed or removed. | |
57 | Inst libqtcore4 [1] (2 unstable [amd64]) | |
58 | Conf libqtcore4 (2 unstable [amd64]) | |
59 | Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f | |
60 | ||
61 | cleanstatus | |
62 | insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same' '' 'install ok unpacked' | |
63 | insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same' | |
25b86db1 | 64 | testsuccessequal 'Reading package lists... |
d4b4e5ea DK |
65 | Building dependency tree... |
66 | Correcting dependencies... Done | |
e7ebb414 | 67 | The following additional packages will be installed: |
d4b4e5ea DK |
68 | libqtcore4:i386 |
69 | The following packages will be upgraded: | |
70 | libqtcore4:i386 | |
71 | 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
72 | 1 not fully installed or removed. | |
73 | Inst libqtcore4:i386 [1] (2 unstable [i386]) | |
74 | Conf libqtcore4:i386 (2 unstable [i386]) | |
75 | Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f | |
76 | ||
77 | cleanstatus | |
78 | insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same' '' 'install ok unpacked' | |
79 | insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same' | |
25b86db1 | 80 | testsuccessequal 'Reading package lists... |
d4b4e5ea DK |
81 | Building dependency tree... |
82 | Correcting dependencies... Done | |
e7ebb414 | 83 | The following additional packages will be installed: |
d4b4e5ea DK |
84 | libqtcore4 |
85 | The following packages will be upgraded: | |
86 | libqtcore4 | |
87 | 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
88 | 1 not fully installed or removed. | |
89 | Inst libqtcore4 [1] (2 unstable [amd64]) | |
90 | Conf libqtcore4 (2 unstable [amd64]) | |
91 | Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f | |
92 | ||
93 | cleanstatus | |
94 | insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same' | |
95 | insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same' '' 'install ok unpacked' | |
25b86db1 | 96 | testsuccessequal 'Reading package lists... |
d4b4e5ea DK |
97 | Building dependency tree... |
98 | Correcting dependencies... Done | |
e7ebb414 | 99 | The following additional packages will be installed: |
d4b4e5ea DK |
100 | libqtcore4:i386 |
101 | The following packages will be upgraded: | |
102 | libqtcore4:i386 | |
103 | 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
104 | 1 not fully installed or removed. | |
105 | Inst libqtcore4:i386 [1] (2 unstable [i386]) | |
106 | Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f | |
107 | ||
108 | cleanstatus | |
109 | insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same' | |
110 | insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked' | |
25b86db1 | 111 | testsuccessequal 'Reading package lists... |
d4b4e5ea DK |
112 | Building dependency tree... |
113 | Correcting dependencies... Done | |
e7ebb414 | 114 | The following additional packages will be installed: |
d4b4e5ea DK |
115 | libqtcore4 |
116 | The following packages will be upgraded: | |
117 | libqtcore4 | |
118 | 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
119 | 1 not fully installed or removed. | |
120 | Inst libqtcore4 [1] (2 unstable [amd64]) | |
121 | Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f |