]> git.saurik.com Git - apt.git/blame - test/integration/test-ubuntu-bug-761175-remove-purge
add changelog
[apt.git] / test / integration / test-ubuntu-bug-761175-remove-purge
CommitLineData
949e033c
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
ea65d079 7configarchitecture 'native'
949e033c 8
ea65d079 9setupsimplenativepackage 'compiz-core' 'native' '1.0' 'unstable'
949e033c
DK
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
ea65d079 14buildpackage "$BUILDDIR" 'unstable' 'main' 'native'
949e033c
DK
15rm -rf "$BUILDDIR"
16
17setupaptarchive
18
19
20testdpkgnotinstalled compiz-core
21msgtest 'Install package' 'compiz-core'
22aptget install compiz-core -qq 2>&1 >/dev/null && msgpass || msgfail
23testdpkginstalled compiz-core
24
25msgtest 'Remove package' 'compiz-core'
26aptget remove compiz-core -y -qq 2>&1 >/dev/null && msgpass || msgfail
27testdpkgnotinstalled compiz-core
28
29msgtest 'Check that conffiles are still around for' 'compiz-core'
ea65d079 30dpkg -l compiz-core | grep -q '^rc' && msgpass || msgfail
949e033c
DK
31
32testequal 'Reading package lists...
33Building dependency tree...
34Reading state information...
35The following packages will be REMOVED:
36 compiz-core*
370 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
38Purg compiz-core' aptget purge compiz-core -s