3 # Tests for the COPY protocol command.
8 .
$AM_SRCDIR/import-common.sh
12 cat >$OUTDIR/config
<< EOF
18 passphrase_file=$WDIR/passphrase.key
20 mv -f data
/list data
/copy || bail_out
"Could not move data/list."
25 run_pwmc
"-S copy" $DEVNULL <<EOF
28 test_failure
$test_n $?
536903715 "Fail to copy element to self."
32 run_pwmc
"-S copy" $DEVNULL <<EOF
36 test_result
$test_n $? copy
"Copy element to new root."
40 run_pwmc
"-S copy" $DEVNULL <<EOF
44 test_result
$test_n $? copy
"Copy element to new child."
48 run_pwmc
"-S copy" $DEVNULL <<EOF
52 test_result
$test_n $? copy
"Copy element to root and overwrite."
56 run_pwmc
"-S copy" $DEVNULL <<EOF
60 test_result
$test_n $? copy
"Copy element to child and overwrite."
64 run_pwmc
"-S copy" $DEVNULL <<EOF
68 test_result
$test_n $? copy
"Copy element to target."