3 source import-common.sh
12 passphrase_file=`pwd`/list.key
16 mv -f data
/list data
/realpath
20 echo "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 echo "Test 2. Path with targets."
32 echo -ne 'REALPATH b\tb\tc\td' | pwmc
$PWMC_ARGS realpath
> result
33 cmp realpath.result2 result
37 echo "Test 3. Path with no targets."
38 echo -ne 'REALPATH a\tb\t!c' | pwmc
$PWMC_ARGS realpath
> result
39 cmp realpath.result3 result
43 echo "Test 4. No target element (fail)."
45 echo -ne 'REALPATH bad-target' | pwmc
$PWMC_ARGS realpath
46 if [ ${PIPESTATUS[1]} == 0 ]; then
47 echo "The previous command should have failed. Stopping."