summaryrefslogtreecommitdiff
path: root/tests/t0050-mv-tests.sh
blob: 10a33f81d6178979a2be867b0eea434c7356ca56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

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

TEST_CRED="test_cred"
TEST_CRED_NEW="test_cred_new"

test_expect_success 'Test "mv" command' '
	pass init $KEY1 &&
	$PASS generate cred1 39 &&
	$PASS mv cred1 cred2 &&
	[[ -e $PASSWORD_STORE_DIR/cred2.gpg && ! -e $PASSWORD_STORE_DIR/cred1.gpg ]]
'

test_done