File: test-conflicts-real-multiarch-same

package info (click to toggle)
apt 1.0.9.8
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 16,100 kB
  • sloc: cpp: 50,948; sh: 11,941; xml: 4,130; makefile: 854; perl: 209; python: 28
file content (50 lines) | stat: -rwxr-xr-x 1,843 bytes parent folder | download | duplicates (3)
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
#!/bin/sh
set -e

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

insertpackage 'unstable' 'virtual-provider' 'amd64,i386' '2' 'Provides: virtual
Conflicts: virtual
Multi-Arch: same'
insertpackage 'unstable' 'real' 'amd64,i386' '2' 'Conflicts: real
Multi-Arch: same'
insertpackage 'unstable' 'real-provider' 'amd64,i386' '2' 'Provides: real-provider
Conflicts: real-provider
Multi-Arch: same'
setupaptarchive

testequal "Reading package lists...
Building dependency tree...
Note, selecting 'virtual-provider' instead of 'virtual'
Note, selecting 'virtual-provider:i386' instead of 'virtual:i386'
The following NEW packages will be installed:
  virtual-provider virtual-provider:i386
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst virtual-provider (2 unstable [amd64])
Inst virtual-provider:i386 (2 unstable [i386])
Conf virtual-provider (2 unstable [amd64])
Conf virtual-provider:i386 (2 unstable [i386])" aptget install virtual:* -s -q=0

testequal 'Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
  real real:i386
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst real (2 unstable [amd64])
Inst real:i386 (2 unstable [i386])
Conf real (2 unstable [amd64])
Conf real:i386 (2 unstable [i386])' aptget install real:* -s -q=0

# ensure that we are not confused by the provides
testequal 'Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
  real-provider real-provider:i386
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst real-provider (2 unstable [amd64])
Inst real-provider:i386 (2 unstable [i386])
Conf real-provider (2 unstable [amd64])
Conf real-provider:i386 (2 unstable [i386])' aptget install real-provider:* -s -q=0