Initial tests.
[pwmd.git] / tests / convert-v2x
blob26871d60158fdaf420e207495d2cb04d2ee38d67
1 #!/bin/bash
2 source common.sh
4 echo Converting from version 2.x ...
5 $PWMD --homedir $WDIR --convert datafile.v2x -o data/datafile-converted \
6 --passphrase-file datafile-v2x.key $@
8 cat > config << EOF
9 [datafile-converted]
10 passphrase_file=`pwd`/datafile-v2x.key
11 EOF
13 launch_pwmd datafile-converted
14 echo 'DUMP' | pwmc --url $WDIR/socket --key-file datafile-v2x.key \
15 datafile-converted > result
17 cmp convert.result result
18 rm -f result