blob: e9d3c4de6b64bd3b54c1ba46c591d7d36e9fc803 (
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
aptget install basic=1 -qq > /dev/null
testdpkginstalled basic
testdpkgnotinstalled common
aptget dist-upgrade -qq > /dev/null
testdpkginstalled basic common
|