]>
Commit | Line | Data |
---|---|---|
177645ed DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | setupenvironment | |
7 | configarchitecture 'native' | |
8 | ||
0eb4af9d DK |
9 | buildsimplenativepackage 'advanced' 'native' '1' 'stable' |
10 | buildsimplenativepackage 'advanced' 'native' '2' 'unstable' 'Pre-Depends: basic' | |
177645ed | 11 | buildsimplenativepackage 'basic' 'native' '2' 'unstable' 'Pre-Depends: common' |
0eb4af9d DK |
12 | |
13 | buildsimplenativepackage 'common' 'native' '2~conflict' 'unstable-conflict' 'Conflicts: advanced (<= 1)' | |
14 | buildsimplenativepackage 'common' 'native' '2~break' 'unstable-break' 'Conflicts: advanced (<= 1)' | |
177645ed DK |
15 | |
16 | setupaptarchive | |
17 | ||
18 | # we check with 'real' packages here as the simulation reports a 'Conf broken' | |
19 | # which is technical correct for the simulation, but testing errormsg is ugly | |
20 | ||
0eb4af9d DK |
21 | cp -a rootdir/var/lib/dpkg/status dpkg.status.backup |
22 | ||
23 | testloopbreak() { | |
24 | cp -a dpkg.status.backup rootdir/var/lib/dpkg/status | |
25 | rm -f rootdir/var/lib/apt/extended_states | |
26 | ||
27 | ||
28 | testsuccess aptget install advanced=1 -y -t "$1" -o Debug::pkgPackageManager=1 | |
29 | testdpkginstalled advanced | |
30 | testdpkgnotinstalled basic common | |
31 | ||
32 | testsuccess aptget dist-upgrade -y -t "$1" -o Debug::pkgPackageManager=1 | |
33 | testdpkginstalled advanced basic common | |
34 | } | |
177645ed | 35 | |
0eb4af9d DK |
36 | testloopbreak 'unstable-break' |
37 | testloopbreak 'unstable-conflict' |