summaryrefslogtreecommitdiff
path: root/test/integration/test-kernel-helper-autoremove.fake-dpkg
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2012-11-05 12:32:27 -0800
committerSteve Langasek <steve.langasek@canonical.com>2012-11-05 12:32:27 -0800
commit08807527cb1f8ecd9883f284dad278def3175933 (patch)
treefb62abb3dd2a629c935a90c71cf3667f72b8ca7c /test/integration/test-kernel-helper-autoremove.fake-dpkg
parent200b3080e739050c3f6c9e1b74242d9140bcbf21 (diff)
parenta7e926d57fbed2e0cc1c059364191a3544ce2fe5 (diff)
Merge test case from mvo
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..a365c5370
--- /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-$(uname -r) not-used 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
+