summaryrefslogtreecommitdiffstats
path: root/tests/openpgp/signdemokey
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2006-08-21 22:20:23 +0200
committerWerner Koch <wk@gnupg.org>2006-08-21 22:20:23 +0200
commit0ebd23fa76e5af72ad3dc33144efa45500101a1b (patch)
treef5b5f10a242e8d597c7fc599663a455350f0c43b /tests/openpgp/signdemokey
parentdisconnectafter wake-up bug fix by Bob Dunlop. (diff)
downloadgnupg2-0ebd23fa76e5af72ad3dc33144efa45500101a1b.tar.xz
gnupg2-0ebd23fa76e5af72ad3dc33144efa45500101a1b.zip
Migrated more stuff to doc/
Migrated the gpg regression tests. Some changes tp the gpg code to fix bugs and for the use in testing. make distcheck works now with gpg enabled.
Diffstat (limited to 'tests/openpgp/signdemokey')
-rwxr-xr-xtests/openpgp/signdemokey16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/openpgp/signdemokey b/tests/openpgp/signdemokey
new file mode 100755
index 000000000..9a1257cc4
--- /dev/null
+++ b/tests/openpgp/signdemokey
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+if [ $# != 3 ]; then
+ echo "Usage: signdemokey name user_id user_id_no"
+ exit 1
+fi
+name="$1"
+user_id="$2"
+user_id_no="$3"
+
+echo "abc" | ../g10/gpg2 --options ./gpg.conf --homedir $name \
+ --sign-key --batch --yes --passphrase-fd 0 $user_id \
+ $user_id_no sign save
+