Merge branch 'no-agent'
[pwmd.git] / tests / convert-v2x.test
blobe762f8c660bcb8ebe11cc5b71fafd16c8ca8f5d5
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
15 begin_test
16 echo 'DUMP' | pwmc $PWMC_ARGS --key-file datafile-v2x.key \
17 datafile-converted > result
18 cmp convert.result result
19 rm -f result
21 test_success