summaryrefslogtreecommitdiff
path: root/test/integration/test-kernel-helper-autoremove.fake-dpkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-11-05 11:31:29 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2012-11-05 11:31:29 +0100
commit0b9f0e9bba678c3e5327a260faee96ea3a71df79 (patch)
treee2c6c0329ff310ae99e6d27fe19dc141715e048e /test/integration/test-kernel-helper-autoremove.fake-dpkg
parentc1719bdbe919ae5814cbcfe5afc3f04d3ccd7efb (diff)
add testcase for the autoremove feature
Diffstat (limited to 'test/integration/test-kernel-helper-autoremove.fake-dpkg')
-rw-r--r--test/integration/test-kernel-helper-autoremove.fake-dpkg13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/test-kernel-helper-autoremove.fake-dpkg b/test/integration/test-kernel-helper-autoremove.fake-dpkg
new file mode 100644
index 000000000..aec6d4418
--- /dev/null
+++ b/test/integration/test-kernel-helper-autoremove.fake-dpkg
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "-l" ]; then
+ echo "ii linux-image-1.0.0-2-generic 1.0.01-2 amd64"
+ echo "ii linux-image-3.5.0-17-generic 3.5.0-17 amd64"
+ echo "ii linux-image-10.0.0-1-generic 10.0.0.1-1 amd64"
+elif [ "$1" = "--compare-versions" ]; then
+ dpkg "$1" "$2" "$3" "$4"
+else
+ dpkg $@
+fi
+