]>
Commit | Line | Data |
---|---|---|
5f4495e3 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
5f4495e3 | 6 | setupenvironment |
90b56f54 | 7 | configarchitecture 'native' |
5f4495e3 DK |
8 | |
9 | aptconfig dump --no-empty --format '%v%n' APT::Move-Autobit-Sections > move-autobit.sections | |
10 | testsuccess grep '^oldlibs$' move-autobit.sections | |
11 | ||
90b56f54 DK |
12 | buildsimplenativepackage 'libabc' 'native' '1' 'stable' '' '' 'libs' |
13 | buildsimplenativepackage 'libabc' 'native' '2' 'unstable' 'Depends: libdef' '' 'oldlibs' | |
14 | buildsimplenativepackage 'libdef' 'native' '1' 'unstable' '' '' 'libs' | |
5f4495e3 DK |
15 | setupaptarchive |
16 | ||
17 | testmarkedauto | |
561a3557 | 18 | testmarkedmanual 'dpkg' |
5f4495e3 DK |
19 | |
20 | testsuccess aptget install libabc/stable -y | |
21 | testdpkginstalled 'libabc' | |
22 | testdpkgnotinstalled 'libdef' | |
23 | ||
561a3557 | 24 | testmarkedmanual 'dpkg' 'libabc' |
5f4495e3 DK |
25 | testmarkedauto |
26 | ||
27 | testsuccess aptget dist-upgrade -y | |
28 | testdpkginstalled 'libabc' 'libdef' | |
29 | ||
30 | testmarkedauto 'libabc' | |
561a3557 | 31 | testmarkedmanual 'dpkg' 'libdef' |