3 source import-common.sh
12 passphrase_file=`pwd`/list.key
18 echo "Test 1. List root elements."
19 echo -ne 'LIST' | pwmc
$PWMC_ARGS list
> result
20 cmp list.result1 result
24 echo "Test 2. List root elements, verbose."
25 echo -ne 'LIST --verbose' | pwmc
$PWMC_ARGS list
> result
26 cmp list.result2 result
30 echo "Test 3. List root elements, verbose with targets."
31 echo -ne 'LIST --verbose --with-target' | pwmc
$PWMC_ARGS list
> result
32 cmp list.result3 result
36 echo "Test 4. List all elements, verbose with targets."
37 echo -ne 'LIST --all --with-target' | pwmc
$PWMC_ARGS list
> result
38 cmp list.result4 result
42 echo "Test 5. List single path, verbose with targets."
43 echo -ne 'LIST --all --with-target !a\t!b' | pwmc
$PWMC_ARGS list \
45 cmp list.result5 result