[pass] [Add passphrase feature 4/4] add passphrase test

Joschka Tillmanns joschka at tillmanns.me
Thu Apr 28 02:10:15 CEST 2016


---
 tests/t0011-passphrase-test.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100755 tests/t0011-passphrase-test.sh

diff --git a/tests/t0011-passphrase-test.sh b/tests/t0011-passphrase-test.sh
new file mode 100755
index 0000000..7130497
--- /dev/null
+++ b/tests/t0011-passphrase-test.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+test_description='Test passphrase generate'
+cd "$(dirname "$0")"
+. ./setup.sh
+
+test_expect_success 'Test "passphrase" command' '
+	"$PASS" init $KEY1 &&
+	"$PASS" passphrase -m 4 -w 2 cred &&
+	[[ $("$PASS" show cred | wc -m) -eq 10 ]]
+'
+
+test_done
-- 
2.8.0



More information about the Password-Store mailing list