summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-673536-pre-depends-breaks-loop
blob: f6a90b21f6097e40237025939f981e5888540ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e

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

buildsimplenativepackage 'basic' 'native' '1' 'stable'
buildsimplenativepackage 'basic' 'native' '2' 'unstable' 'Pre-Depends: common'
buildsimplenativepackage 'common' 'native' '2' 'unstable' 'Breaks: basic (<= 1)'

setupaptarchive

# we check with 'real' packages here as the simulation reports a 'Conf broken'
# which is technical correct for the simulation, but testing errormsg is ugly

testsuccess aptget install basic=1 -y
testdpkginstalled basic
testdpkgnotinstalled common

testsuccess aptget dist-upgrade -y
testdpkginstalled basic common