summaryrefslogtreecommitdiff
path: root/tests/t0050-mv-tests.sh
blob: cbc191989787ed98c2baf18533f60d0292fdf721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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 &&
	create_cred "$TEST_CRED" &&
	echo "Moving $TEST_CRED to $TEST_CRED_NEW" &&
	$PASS mv "$TEST_CRED" "$TEST_CRED_NEW" &&
	check_cred "$TEST_CRED_NEW" &&
	check_no_cred "$TEST_CRED"
'

test_done