3 # Tests for the REALPATH protocol command.
8 .
$AM_SRCDIR/import-common.sh
12 cat >$OUTDIR/config
<< EOF
17 passphrase_file=$WDIR/list.key
19 mv -f data
/list data
/realpath || bail_out
"Could not move data/list."
24 run_pwmc
"realpath" $DEVNULL <<EOF
25 REALPATH target-loop-a
27 test_failure
$test_n $?
536903743 "Fail due to recursion loop."
31 run_pwmc
"realpath" >result
$DEVNULL <<EOF
34 test_result
$test_n $? realpath
"Path with targets."
38 run_pwmc
"realpath" $DEVNULL <<EOF
41 test_failure
$test_n $?
536871048 "Fail due to non-existing target element."