3 # Tests for the REALPATH protocol command.
8 .
$AM_SRCDIR/import-common.sh
12 cat >$OUTDIR/config
<< EOF
18 passphrase_file=$WDIR/list.key
20 mv -f data
/list data
/realpath || bail_out
"Could not move data/list."
25 run_pwmc
"realpath" $DEVNULL <<EOF
26 REALPATH target-loop-a
28 test_failure
$test_n $?
536903743 "Fail due to recursion loop."
32 run_pwmc
"realpath" >result
$DEVNULL <<EOF
35 test_result
$test_n $? realpath
"Path with targets."
39 run_pwmc
"realpath" $DEVNULL <<EOF
42 test_failure
$test_n $?
536871048 "Fail due to non-existing target element."