]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-move-and-forget-manual-sections
run update post-invokes even on (partial) failures
[apt.git] / test / integration / test-apt-move-and-forget-manual-sections
CommitLineData
5f4495e3
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
5f4495e3 6setupenvironment
90b56f54 7configarchitecture 'native'
5f4495e3
DK
8
9aptconfig dump --no-empty --format '%v%n' APT::Move-Autobit-Sections > move-autobit.sections
10testsuccess grep '^oldlibs$' move-autobit.sections
11
90b56f54
DK
12buildsimplenativepackage 'libabc' 'native' '1' 'stable' '' '' 'libs'
13buildsimplenativepackage 'libabc' 'native' '2' 'unstable' 'Depends: libdef' '' 'oldlibs'
14buildsimplenativepackage 'libdef' 'native' '1' 'unstable' '' '' 'libs'
5f4495e3
DK
15setupaptarchive
16
17testmarkedauto
18testmarkedmanual
19
20testsuccess aptget install libabc/stable -y
21testdpkginstalled 'libabc'
22testdpkgnotinstalled 'libdef'
23
24testmarkedmanual 'libabc'
25testmarkedauto
26
27testsuccess aptget dist-upgrade -y
28testdpkginstalled 'libabc' 'libdef'
29
30testmarkedauto 'libabc'
31testmarkedmanual 'libdef'