aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/t0020-show-tests.sh
blob: 98108f56adb7b6cd784ec922a59d360b0310661f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

test_description='Test show'
. ./setup.sh

TEST_CRED="test_cred"

test_expect_success 'Test "show" command' '
	pass_init &&
	create_cred "$TEST_CRED" &&
	$PASS show "$TEST_CRED"
'

test_expect_success 'Test "show" of nonexistant password' '
	pass_init &&
	test_must_fail $PASS show "$TEST_CRED"
'
test_done