summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCraig Jennings <craigmartinjennings@gmail.com>2023-07-16 15:11:07 -0500
committerCraig Jennings <craigmartinjennings@gmail.com>2023-07-16 15:11:07 -0500
commit15b2ac2204a40de0693bf76f66bc471050e38e6a (patch)
tree6036b356b31dca92be068ac387892b1068c4055e /test
moving from githubHEADmain
Diffstat (limited to 'test')
-rwxr-xr-xtest43
1 files changed, 43 insertions, 0 deletions
diff --git a/test b/test
new file mode 100755
index 0000000..c63c8ce
--- /dev/null
+++ b/test
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+if [[ $1 -eq 1 ]]; then
+
+echo "SETTITLE title
+SETPROMPT prompt
+SETDESC PROMPT
+GETPIN
+BYE" | ./pinentry-dmenu
+
+elif [[ $1 -eq 2 ]]; then
+
+echo "SETTITLE title
+SETPROMPT confirm
+SETDESC CONFIRM
+confirm
+BYE" | ./pinentry-dmenu
+
+elif [[ $1 -eq 3 ]]; then
+
+echo "SETTITLE title
+SETPROMPT prompt
+SETDESC REPEAT
+SETREPEAT repeat
+GETPIN
+BYE" | ./pinentry-dmenu
+
+else
+
+echo "SETTITLE title
+SETPROMPT prompt
+SETDESC PROMPT
+GETPIN
+SETPROMPT confirm
+SETDESC CONFIRM
+confirm
+SETPROMPT repeat
+SETDESC REPEAT
+SETREPEAT
+GETPIN
+BYE" | ./pinentry-dmenu
+
+fi