]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-ubuntu-bug-761175-remove-purge
adapt to the new CacheSetHelper API
[apt.git] / test / integration / test-ubuntu-bug-761175-remove-purge
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'native'
8
9setupsimplenativepackage 'compiz-core' 'native' '1.0' 'unstable'
10BUILDDIR='incoming/compiz-core-1.0'
11mkdir -p ${BUILDDIR}/debian/compiz-core/etc
12echo 'foo=bar;' > ${BUILDDIR}/compiz.conf
13echo 'compiz.conf /etc/compiz.conf' >> ${BUILDDIR}/debian/install
14buildpackage "$BUILDDIR" 'unstable' 'main' 'native'
15rm -rf "$BUILDDIR"
16
17setupaptarchive
18
19
20testdpkgnotinstalled compiz-core
21testsuccess aptget install compiz-core
22testdpkginstalled compiz-core
23
24testsuccess aptget remove compiz-core -y
25testdpkgnotinstalled compiz-core
26
27msgtest 'Check that conffiles are still around for' 'compiz-core'
28dpkg -l compiz-core | grep -q '^rc' && msgpass || msgfail
29
30testequal 'Reading package lists...
31Building dependency tree...
32Reading state information...
33The following packages will be REMOVED:
34 compiz-core*
350 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
36Purg compiz-core' aptget purge compiz-core -s