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