]>
Commit | Line | Data |
---|---|---|
d4b4e5ea DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
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' | |
22 | testequal 'Reading package lists... | |
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' | |
32 | testequal 'Reading package lists... | |
33 | Building dependency tree... | |
34 | Correcting dependencies... Done | |
35 | The following extra packages will be installed: | |
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' | |
48 | testequal 'Reading package lists... | |
49 | Building dependency tree... | |
50 | Correcting dependencies... Done | |
51 | The following extra packages will be installed: | |
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' | |
64 | testequal 'Reading package lists... | |
65 | Building dependency tree... | |
66 | Correcting dependencies... Done | |
67 | The following extra packages will be installed: | |
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' | |
80 | testequal 'Reading package lists... | |
81 | Building dependency tree... | |
82 | Correcting dependencies... Done | |
83 | The following extra packages will be installed: | |
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' | |
96 | testequal 'Reading package lists... | |
97 | Building dependency tree... | |
98 | Correcting dependencies... Done | |
99 | The following extra packages will be installed: | |
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' | |
111 | testequal 'Reading package lists... | |
112 | Building dependency tree... | |
113 | Correcting dependencies... Done | |
114 | The following extra packages will be installed: | |
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 |