summaryrefslogtreecommitdiff
path: root/tests/t0100-insert-tests.sh
blob: 451ef52f3c5c8d02b6966a7ef916d7e6e0303755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/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