File: t0100-insert-tests.sh

package info (click to toggle)
password-store 1.7.1-3~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 568 kB
  • ctags: 238
  • sloc: sh: 1,423; python: 629; ruby: 383; lisp: 182; makefile: 82; perl: 46
file content (13 lines) | stat: -rwxr-xr-x 264 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

test_description='Test insert'
cd "$(dirname "$0")"
. ./setup.sh

test_expect_success 'Test "insert" command' '
	"$PASS" init $KEY1 &&
	echo "Hello world" | "$PASS" insert -e cred1 &&
	[[ $("$PASS" show cred1) == "Hello world" ]]
'

test_done