]> git.saurik.com Git - apt.git/blame - test/integration/test-autoremove
* apt-pkg/deb/dpkgpm.cc:
[apt.git] / test / integration / test-autoremove
CommitLineData
b093a199
DK
1#!/bin/sh
2set -e
3
4local TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture "i386"
8
9buildsimplenativepackage "unrelated" "all" "1" "unstable"
10buildsimplenativepackage "po-debconf" "all" "1.0.16" "unstable"
11buildsimplenativepackage "debhelper" "all" "8.0.0" "unstable" "Depends: po-debconf"
12setupaptarchive
13
14aptget install unrelated debhelper -qq 2>&1 > /dev/null
15
16testfileequal "rootdir/var/lib/apt/extended_states" "Package: po-debconf
17Architecture: i386
18Auto-Installed: 1
19"
20aptget remove debhelper -y -qq 2>&1 > /dev/null
21aptget autoremove -y -qq 2>&1 > /dev/null
22
23testfileequal "rootdir/var/lib/apt/extended_states" ""
24
25sed -i rootdir/var/log/apt/history.log -e '/^Commandline: / d' -e '/^Start-Date: / d' -e '/^End-Date: / d'
26testfileequal "rootdir/var/log/apt/history.log" '
27Install: unrelated:i386 (1), debhelper:i386 (8.0.0), po-debconf:i386 (1.0.16, automatic)
28
29Remove: debhelper:i386 (8.0.0)
30
31Remove: po-debconf:i386 (1.0.16)'