~brian-murray/ubuntu/oneiric/apt/block-fsys-tarfile

« back to all changes in this revision

Viewing changes to test/integration/test-ubuntu-bug-761175-remove-purge

  • Committer: Michael Vogt
  • Date: 2011-06-28 21:41:29 UTC
  • mfrom: (1327.97.34 debian-sid)
  • Revision ID: michael.vogt@ubuntu.com-20110628214129-tait7qp81nvm7wjv
mergedĀ fromĀ debian-sid

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
TESTDIR=$(readlink -f $(dirname $0))
 
5
. $TESTDIR/framework
 
6
setupenvironment
 
7
configarchitecture 'i386'
 
8
 
 
9
setupsimplenativepackage 'compiz-core' 'i386' '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'
 
15
rm -rf "$BUILDDIR"
 
16
 
 
17
setupaptarchive
 
18
 
 
19
 
 
20
testdpkgnotinstalled compiz-core
 
21
msgtest 'Install package' 'compiz-core'
 
22
aptget install compiz-core -qq 2>&1 >/dev/null && msgpass || msgfail
 
23
testdpkginstalled compiz-core
 
24
 
 
25
msgtest 'Remove package' 'compiz-core'
 
26
aptget remove compiz-core -y -qq 2>&1 >/dev/null && msgpass || msgfail
 
27
testdpkgnotinstalled compiz-core
 
28
 
 
29
msgtest 'Check that conffiles are still around for' 'compiz-core'
 
30
dpkg -l compiz-core | grep '^rc' 2>&1 >/dev/null && msgpass || msgfail
 
31
 
 
32
testequal 'Reading package lists...
 
33
Building dependency tree...
 
34
Reading state information...
 
35
The following packages will be REMOVED:
 
36
  compiz-core*
 
37
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
 
38
Purg compiz-core' aptget purge compiz-core -s