summaryrefslogtreecommitdiff
path: root/tests/t0050-mv-tests.sh
blob: 57472c1f0958ec6df3b48518a427b04d068bb3e6 (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