3 source import-common.sh
12 passphrase_file=`pwd`/list.key
16 mv -f data
/list data
/realpath
20 test_header
"Test 1. Recursion loop (fail)."
22 echo -ne 'REALPATH target-loop-a' | pwmc
$PWMC_ARGS realpath
23 if [ ${PIPESTATUS[1]} == 0 ]; then
24 echo "The previous command should have failed. Stopping."
31 test_header
"Test 2. Path with targets."
32 echo -ne 'REALPATH b\tb\tc\td' | pwmc
$PWMC_ARGS realpath
> result
33 cmp realpath.result2 result
37 test_header
"Test 3. No target element (fail)."
39 echo -ne 'REALPATH bad-target' | pwmc
$PWMC_ARGS realpath
40 if [ ${PIPESTATUS[1]} == 0 ]; then
41 echo "The previous command should have failed. Stopping."