Fixup tests for with and without gpg-agent use.
[pwmd.git] / tests / convert-v2x.test
blob7c963202827204ad210157e232e4477f05143e70
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