summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-07-05 08:59:52 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-07-05 08:59:52 +0200
commit469b02781dfb4517282da4d497c5f7fd0dcb97f4 (patch)
treee82f0448586103cc0efccd52fea7a9c4975148e8 /test/integration
parentb855a40058f99a0f10184c410b3bbf3c2ee4ae83 (diff)
* apt-pkg/clean.cc:
- run autoclean against pkg:arch and not always against pkg:native as this removes valid cache entries (Closes: #679371)
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-bug-679371-apt-get-autoclean-multiarch24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/integration/test-bug-679371-apt-get-autoclean-multiarch b/test/integration/test-bug-679371-apt-get-autoclean-multiarch
new file mode 100755
index 000000000..ba6857b73
--- /dev/null
+++ b/test/integration/test-bug-679371-apt-get-autoclean-multiarch
@@ -0,0 +1,24 @@
+#!/bin/sh
+set -e
+
+TESTDIR=$(readlink -f $(dirname $0))
+. $TESTDIR/framework
+setupenvironment
+configarchitecture 'amd64' 'i386'
+
+buildsimplenativepackage 'pkgall' 'all' '1' 'stable'
+buildsimplenativepackage 'pkgnative' 'amd64' '1' 'stable'
+buildsimplenativepackage 'pkgforeign' 'i386' '1' 'stable'
+
+setupaptarchive
+
+changetowebserver
+
+aptget update -qq
+aptget install pkgall pkgnative pkgforeign -y -qq > /dev/null
+
+testdpkginstalled pkgall pkgnative pkgforeign
+
+testequal 'Reading package lists...
+Building dependency tree...
+Reading state information...' aptget autoclean -s