3 # Tests for the MOVE protocol command.
8 .
$AM_SRCDIR/import-common.sh
12 cat >$OUTDIR/config
<< EOF
17 passphrase_file=$WDIR/passphrase.key
19 mv -f data
/list data
/move || bail_out
"Could not move data/list."
24 run_pwmc
"move" $DEVNULL <<EOF
27 test_failure
$test_n $?
536903715 "Fail to move src to src."
31 run_pwmc
"move" $DEVNULL <<EOF
34 test_failure
$test_n $?
536871048 "Fail to move non-existent element."
38 run_pwmc
"move" $DEVNULL <<EOF
41 test_failure
$test_n $?
536903715 "Fail to move child with target to root of same node."
45 run_pwmc
"-S move" $DEVNULL <<EOF
49 test_result
$test_n $? move
"Move child to sibling child with target."
53 run_pwmc
"-S move" $DEVNULL <<EOF
57 test_result
$test_n $? move
"Move child with target to parent sibling."
61 run_pwmc
"-S move" $DEVNULL <<EOF
65 test_result
$test_n $? move
"Overwrite existing root tree."
69 run_pwmc
"-S move" $DEVNULL <<EOF
73 test_result
$test_n $? move
"Show child elements whose target contains an error."
77 run_pwmc
"-S move" $DEVNULL <<EOF
81 test_result
$test_n $? move
"Move node whose target value is a document root node."
85 run_pwmc
"-S move" $DEVNULL <<EOF
89 test_result
$test_n $? move
"Move node whose target value is a parent."
93 run_pwmc
"-S move" $DEVNULL <<EOF
97 test_result
$test_n $? move
"Create new path from non-existing dest."