]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-ubuntu-bug-761175-remove-purge
always send content-length via the new addDataHeaders() to ensure w3m/curl are happy...
[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
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'
30dpkg -l compiz-core | grep -q '^rc' && msgpass || msgfail
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