summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-720597-build-dep-purge
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-11-28 21:24:47 +0100
committerMichael Vogt <mvo@debian.org>2013-11-28 21:24:47 +0100
commit89033d0b41c843a9fbbcb36a429cde6253cdd6c3 (patch)
tree9746bacd642c01395233a938395dccfd053d3716 /test/integration/test-bug-720597-build-dep-purge
parent72d65ff69371b82f6547b4d3f6471541ecfaef67 (diff)
parentf42f6ef0e20d4ebd4653ccbad210b00a3ebbc269 (diff)
Merge branch 'debian/sid' into ubuntu/master
Diffstat (limited to 'test/integration/test-bug-720597-build-dep-purge')
-rwxr-xr-xtest/integration/test-bug-720597-build-dep-purge36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/integration/test-bug-720597-build-dep-purge b/test/integration/test-bug-720597-build-dep-purge
new file mode 100755
index 000000000..1e24ed5f1
--- /dev/null
+++ b/test/integration/test-bug-720597-build-dep-purge
@@ -0,0 +1,36 @@
+#!/bin/sh
+set -e
+
+TESTDIR=$(readlink -f $(dirname $0))
+. $TESTDIR/framework
+setupenvironment
+configarchitecture 'amd64'
+
+insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
+insertinstalledpackage 'pkga' 'all' '1'
+buildsimplenativepackage 'pkgb' 'amd64' '1' 'stable' 'Conflicts: pkga'
+buildsimplenativepackage 'pkgc' 'amd64' '1' 'stable' 'Build-Depends: pkgb'
+
+setupaptarchive
+
+testequal 'Reading package lists...
+Building dependency tree...
+The following packages will be REMOVED:
+ pkga
+The following NEW packages will be installed:
+ pkgb
+0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
+Remv pkga [1]
+Inst pkgb (1 stable [amd64])
+Conf pkgb (1 stable [amd64])' aptget build-dep pkgc -s
+
+testequal 'Reading package lists...
+Building dependency tree...
+The following packages will be REMOVED:
+ pkga*
+The following NEW packages will be installed:
+ pkgb
+0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
+Purg pkga [1]
+Inst pkgb (1 stable [amd64])
+Conf pkgb (1 stable [amd64])' aptget build-dep pkgc -s --purge