]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-740843-versioned-up-down-breaks
add an additional test for arch specific conflicts
[apt.git] / test / integration / test-bug-740843-versioned-up-down-breaks
CommitLineData
0caa5a4c
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'i386'
8
9insertinstalledpackage 'foo-driver' 'amd64' '1' 'Depends: libfoo (= 1)
10Recommends: libgl1-foo-glx (= 1)
11Breaks: libgl1-foo-glx (<< 1), libgl1-foo-glx (>> 1)'
12insertinstalledpackage 'libgl1-foo-glx' 'amd64,i386' '1' 'Depends: libfoo (= 1)
13Multi-Arch: same'
14insertinstalledpackage 'libfoo' 'amd64,i386' '1' 'Multi-Arch: same'
15
16buildsimplenativepackage 'foo-driver' 'amd64' '2' 'stable' 'Depends: libfoo (= 2)
17Recommends: libgl1-foo-glx (= 2)
18Breaks: libgl1-foo-glx (<< 2), libgl1-foo-glx (>> 2)'
19buildsimplenativepackage 'libgl1-foo-glx' 'amd64,i386' '2' 'stable' 'Depends: libfoo (= 2)
20Multi-Arch: same'
21buildsimplenativepackage 'libfoo' 'amd64,i386' '2' 'stable' 'Multi-Arch: same'
22
23setupaptarchive
24
25testequalor2 'Reading package lists...
26Building dependency tree...
27The following packages will be upgraded:
28 foo-driver libfoo libfoo:i386 libgl1-foo-glx libgl1-foo-glx:i386
295 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
30Inst libgl1-foo-glx [1] (2 stable [amd64]) [libgl1-foo-glx:amd64 on libgl1-foo-glx:i386] [libgl1-foo-glx:i386 on libgl1-foo-glx:amd64] [foo-driver:amd64 on libgl1-foo-glx:amd64] [libgl1-foo-glx:i386 foo-driver:amd64 ]
31Inst libgl1-foo-glx:i386 [1] (2 stable [i386]) [foo-driver:amd64 on libgl1-foo-glx:amd64] [foo-driver:amd64 on libgl1-foo-glx:i386] [foo-driver:amd64 ]
32Inst foo-driver [1] (2 stable [amd64]) []
33Inst libfoo:i386 [1] (2 stable [i386]) [libfoo:amd64 on libfoo:i386] [libfoo:i386 on libfoo:amd64] [libfoo:amd64 ]
34Inst libfoo [1] (2 stable [amd64])
35Conf libfoo:i386 (2 stable [i386])
36Conf libfoo (2 stable [amd64])
37Conf libgl1-foo-glx:i386 (2 stable [i386])
38Conf libgl1-foo-glx (2 stable [amd64])
39Conf foo-driver (2 stable [amd64])' 'Reading package lists...
40Building dependency tree...
41The following packages will be upgraded:
42 foo-driver libfoo libfoo:i386 libgl1-foo-glx libgl1-foo-glx:i386
435 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
44Inst libgl1-foo-glx [1] (2 stable [amd64]) [foo-driver:amd64 on libgl1-foo-glx:amd64] [libgl1-foo-glx:amd64 on libgl1-foo-glx:i386] [libgl1-foo-glx:i386 on libgl1-foo-glx:amd64] [foo-driver:amd64 libgl1-foo-glx:i386 ]
45Inst libgl1-foo-glx:i386 [1] (2 stable [i386]) [foo-driver:amd64 on libgl1-foo-glx:amd64] [foo-driver:amd64 on libgl1-foo-glx:i386] [foo-driver:amd64 ]
46Inst foo-driver [1] (2 stable [amd64]) []
47Inst libfoo:i386 [1] (2 stable [i386]) [libfoo:amd64 on libfoo:i386] [libfoo:i386 on libfoo:amd64] [libfoo:amd64 ]
48Inst libfoo [1] (2 stable [amd64])
49Conf libfoo:i386 (2 stable [i386])
50Conf libfoo (2 stable [amd64])
51Conf libgl1-foo-glx:i386 (2 stable [i386])
52Conf libgl1-foo-glx (2 stable [amd64])
53Conf foo-driver (2 stable [amd64])' aptget dist-upgrade -s
54
55testsuccess aptget dist-upgrade -y -o Debug::pkgPackageManager=1 -o Debug::pkgOrderList=1