summaryrefslogtreecommitdiff
path: root/tests/t0010-generate-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t0010-generate-tests.sh')
-rwxr-xr-xtests/t0010-generate-tests.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/t0010-generate-tests.sh b/tests/t0010-generate-tests.sh
index da5e41f..cadb76f 100755
--- a/tests/t0010-generate-tests.sh
+++ b/tests/t0010-generate-tests.sh
@@ -10,4 +10,10 @@ test_expect_success 'Test "generate" command' '
[[ $("$PASS" show cred | wc -m) -eq 20 ]]
'
+test_expect_success 'Test replacement of first line' '
+ "$PASS" insert -m cred2 <<<"$(printf "this is a big\\npassword\\nwith\\nmany\\nlines\\nin it bla bla")" &&
+ PATH="$TEST_HOME:$PATH" FAKE_PWGEN_PASSWORD="This is a fake password" "$PASS" generate -i cred2 88 &&
+ [[ $("$PASS" show cred2) == "$(printf "This is a fake password\\npassword\\nwith\\nmany\\nlines\\nin it bla bla")" ]]
+'
+
test_done
='2014-05-18 22:15:35 -0300'>2014-05-18feed2imap-test: reuse cache dir/protect configAntonio Terceiro1-1/+1 2014-02-13feed2imap-test: can now take a feed URL as argumentAntonio Terceiro1-3/+22 2014-02-13update .gitignoreAntonio Terceiro1-0/+2 2014-02-13fix dependency on ruby-feedparserAntonio Terceiro1-1/+1 2014-02-05Release 1.2.2Antonio Terceiro2-2/+2 2014-02-05config: fix regression with arrays as targetAntonio Terceiro2-1/+17 2013-08-28Fix teardown method nameAntonio Terceiro1-1/+1