summaryrefslogtreecommitdiffstats
path: root/test/integration/test-implicit-conflicts-real-not-virtual
blob: 02bd44208a4bb92603da112e1ca18c3b245a9c7d (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
#!/bin/sh
set -e

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

insertpackage 'unstable-mp' 'crda' 'i386,amd64' '1.1.1-1ubuntu4mp' 'Provides: wireless-crda
Multi-Arch: foreign'
insertpackage 'unstable-m' 'crda' 'i386,amd64' '1.1.1-1ubuntu4m' 'Multi-Arch: foreign'
insertpackage 'unstable-p' 'crda' 'i386,amd64' '1.1.1-1ubuntu4p' 'Provides: wireless-crda'
insertpackage 'unstable' 'wireless-crda' 'i386,amd64' '1.16'


insertinstalledpackage 'wireless-crda' 'amd64' '1.14'

setupaptarchive

testsuccessequal 'Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
  crda
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Inst crda (1.1.1-1ubuntu4m unstable-m [amd64])
Conf crda (1.1.1-1ubuntu4m unstable-m [amd64])' aptget install crda -s -t unstable-m

testsuccessequal 'Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
  crda
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Inst crda (1.1.1-1ubuntu4p unstable-p [amd64])
Conf crda (1.1.1-1ubuntu4p unstable-p [amd64])' aptget install crda -s -t unstable-p

testsuccessequal 'Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
  crda
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Inst crda (1.1.1-1ubuntu4mp unstable-mp [amd64])
Conf crda (1.1.1-1ubuntu4mp unstable-mp [amd64])' aptget install crda -s -t unstable-mp

rm rootdir/var/lib/dpkg/status
insertinstalledpackage 'crda' 'amd64' '1.1.1-1ubuntu4mp' 'Provides: wireless-crda
Conflicts: wireless-crda (<< 1.15)
Replaces: wireless-crda ( << 1.15)
Multi-arch: foreign'

testsuccessequal 'Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
  wireless-crda
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Inst wireless-crda (1.16 unstable [amd64])
Conf wireless-crda (1.16 unstable [amd64])' aptget install wireless-crda -s -t unstable