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

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

export TEST_CRED="test_cred"
export 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