summaryrefslogtreecommitdiffstats
path: root/test/integration/test-unpack-different-version-unpacked
blob: 810e2e9537d301b73d428421f3a889df5b8158ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#!/bin/sh
set -e

TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture 'amd64' 'i386'

insertpackage 'unstable' 'libqtcore4' 'i386,amd64' '2' 'Multi-Arch: same'
setupaptarchive

cleanstatus() {
	rm -f rootdir/var/lib/dpkg/status
	rm rootdir/var/cache/apt/*.bin
}

insertinstalledpackage 'libqtcore4' 'i386,amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked'
#FIXME(internal): the reported version is wrong, it should be 1, not 2
testsuccessequal 'Reading package lists...
Building dependency tree...
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
2 not fully installed or removed.
Conf libqtcore4 (2 unstable [amd64])
Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f --solver internal

# FIXED(3.0): the reported version is correct now
testsuccessequal 'Reading package lists...
Building dependency tree...
Solving dependencies...
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
2 not fully installed or removed.
Conf libqtcore4 (1  [amd64])
Conf libqtcore4:i386 (1  [i386])' aptget install -s -f --solver 3.0


cleanstatus
insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same' '' 'install ok unpacked'
insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same' '' 'install ok unpacked'
testsuccessequal 'Reading package lists...
Building dependency tree...
Correcting dependencies... Done
The following additional packages will be installed:
  libqtcore4:i386
The following packages will be upgraded:
  libqtcore4:i386
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Inst libqtcore4:i386 [1] (2 unstable [i386])
Conf libqtcore4:i386 (2 unstable [i386])
Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f

cleanstatus
insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same' '' 'install ok unpacked'
insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked'
testsuccessequal 'Reading package lists...
Building dependency tree...
Correcting dependencies... Done
The following additional packages will be installed:
  libqtcore4
The following packages will be upgraded:
  libqtcore4
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Inst libqtcore4 [1] (2 unstable [amd64])
Conf libqtcore4 (2 unstable [amd64])
Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f

cleanstatus
insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same' '' 'install ok unpacked'
insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same'
testsuccessequal 'Reading package lists...
Building dependency tree...
Correcting dependencies... Done
The following additional packages will be installed:
  libqtcore4:i386
The following packages will be upgraded:
  libqtcore4:i386
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Inst libqtcore4:i386 [1] (2 unstable [i386])
Conf libqtcore4:i386 (2 unstable [i386])
Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f

cleanstatus
insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same' '' 'install ok unpacked'
insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same'
testsuccessequal 'Reading package lists...
Building dependency tree...
Correcting dependencies... Done
The following additional packages will be installed:
  libqtcore4
The following packages will be upgraded:
  libqtcore4
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Inst libqtcore4 [1] (2 unstable [amd64])
Conf libqtcore4 (2 unstable [amd64])
Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f

cleanstatus
insertinstalledpackage 'libqtcore4' 'amd64' '2' 'Multi-Arch: same'
insertinstalledpackage 'libqtcore4' 'i386' '1' 'Multi-Arch: same' '' 'install ok unpacked'
testsuccessequal 'Reading package lists...
Building dependency tree...
Correcting dependencies... Done
The following additional packages will be installed:
  libqtcore4:i386
The following packages will be upgraded:
  libqtcore4:i386
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Inst libqtcore4:i386 [1] (2 unstable [i386])
Conf libqtcore4:i386 (2 unstable [i386])' aptget install -s -f

cleanstatus
insertinstalledpackage 'libqtcore4' 'i386' '2' 'Multi-Arch: same'
insertinstalledpackage 'libqtcore4' 'amd64' '1' 'Multi-Arch: same' '' 'install ok unpacked'
testsuccessequal 'Reading package lists...
Building dependency tree...
Correcting dependencies... Done
The following additional packages will be installed:
  libqtcore4
The following packages will be upgraded:
  libqtcore4
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Inst libqtcore4 [1] (2 unstable [amd64])
Conf libqtcore4 (2 unstable [amd64])' aptget install -s -f