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