summaryrefslogtreecommitdiff
path: root/test/lisp/epg-resources/dummy-pinentry
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/epg-resources/dummy-pinentry')
-rwxr-xr-xtest/lisp/epg-resources/dummy-pinentry22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/lisp/epg-resources/dummy-pinentry b/test/lisp/epg-resources/dummy-pinentry
new file mode 100755
index 00000000000..2228dfb0c6d
--- /dev/null
+++ b/test/lisp/epg-resources/dummy-pinentry
@@ -0,0 +1,22 @@
+#! /bin/bash
+# Dummy pinentry
+#
+# Copyright 2008 g10 Code GmbH
+#
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This file is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+
+echo OK Your orders please
+
+while read cmd; do
+ case $cmd in
+ GETPIN) echo D test0123456789; echo OK;;
+ *) echo OK;;
+ esac
+done