3 source import-common.sh
12 passphrase_file=`pwd`/passphrase.key
16 mv -f data
/list data
/rename
20 test_header
"Test 1. Rename to self (fail)."
22 echo -ne 'RENAME d\te e' | pwmc
$PWMC_ARGS -S rename
23 if [ ${PIPESTATUS[1]} == 0 ]; then
24 echo "The previous command should have failed. Stopping."
31 test_header
"Test 2. Rename to self target."
32 echo -ne 'RENAME b a' | pwmc
$PWMC_ARGS -S rename
33 echo -ne 'LIST --recurse' | pwmc
$PWMC_ARGS rename
> result
34 cmp rename.result2 result
38 test_header
"Test 3. Rename."
39 echo -ne 'RENAME a b' | pwmc
$PWMC_ARGS -S rename
40 echo -ne 'LIST --recurse' | pwmc
$PWMC_ARGS rename
> result
41 cmp rename.result3 result