password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

t0100-insert-tests.sh (264B)


      1 #!/usr/bin/env bash
      2 
      3 test_description='Test insert'
      4 cd "$(dirname "$0")"
      5 . ./setup.sh
      6 
      7 test_expect_success 'Test "insert" command' '
      8 	"$PASS" init $KEY1 &&
      9 	echo "Hello world" | "$PASS" insert -e cred1 &&
     10 	[[ $("$PASS" show cred1) == "Hello world" ]]
     11 '
     12 
     13 test_done