]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-740843-versioned-up-down-breaks
test-apt-download-progress: Allow smaller progress change
[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...
2a884c61 27Calculating upgrade...
0caa5a4c
DK
28The following packages will be upgraded:
29 foo-driver libfoo libfoo:i386 libgl1-foo-glx libgl1-foo-glx:i386
305 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
31Inst 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 ]
32Inst 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 ]
33Inst foo-driver [1] (2 stable [amd64]) []
34Inst libfoo:i386 [1] (2 stable [i386]) [libfoo:amd64 on libfoo:i386] [libfoo:i386 on libfoo:amd64] [libfoo:amd64 ]
35Inst libfoo [1] (2 stable [amd64])
36Conf libfoo:i386 (2 stable [i386])
37Conf libfoo (2 stable [amd64])
38Conf libgl1-foo-glx:i386 (2 stable [i386])
39Conf libgl1-foo-glx (2 stable [amd64])
40Conf foo-driver (2 stable [amd64])' 'Reading package lists...
41Building dependency tree...
2a884c61 42Calculating upgrade...
0caa5a4c
DK
43The following packages will be upgraded:
44 foo-driver libfoo libfoo:i386 libgl1-foo-glx libgl1-foo-glx:i386
455 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
46Inst 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 ]
47Inst 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 ]
48Inst foo-driver [1] (2 stable [amd64]) []
49Inst libfoo:i386 [1] (2 stable [i386]) [libfoo:amd64 on libfoo:i386] [libfoo:i386 on libfoo:amd64] [libfoo:amd64 ]
50Inst libfoo [1] (2 stable [amd64])
51Conf libfoo:i386 (2 stable [i386])
52Conf libfoo (2 stable [amd64])
53Conf libgl1-foo-glx:i386 (2 stable [i386])
54Conf libgl1-foo-glx (2 stable [amd64])
55Conf foo-driver (2 stable [amd64])' aptget dist-upgrade -s
56
57testsuccess aptget dist-upgrade -y -o Debug::pkgPackageManager=1 -o Debug::pkgOrderList=1