aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/t0050-mv-tests.sh
blob: 399868aa04d1d04c46fb2ceae38ef9857bc7f44c (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 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