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