]> git.saurik.com Git - apt.git/blame - test/integration/test-ubuntu-bug-761175-remove-purge
add an additional test for arch specific conflicts
[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
0440d936 21testsuccess aptget install compiz-core
949e033c
DK
22testdpkginstalled compiz-core
23
0440d936 24testsuccess aptget remove compiz-core -y
949e033c
DK
25testdpkgnotinstalled compiz-core
26
27msgtest 'Check that conffiles are still around for' 'compiz-core'
ea65d079 28dpkg -l compiz-core | grep -q '^rc' && msgpass || msgfail
949e033c
DK
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