repo.or.cz
/
pwmd.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add more tests.
[pwmd.git]
/
tests
/
import-xml
blob
d3cf6bef35bd872c130e858c144f3130a615bce4
1
#!/bin/bash
2
source
common.sh
3
source
import-common.sh
4
5
do_import datafile
6
7
cat
>
config
<< EOF
8
[
$FILE
]
9
passphrase_file=
$WDIR
/
$FILE
.key
10
EOF
11
12
launch_pwmd datafile
13
echo
'DUMP'
| pwmc
--url
$WDIR
/
socket
--key-file
datafile.key datafile
>
result
14
15
cmp
result datafile.xml
16
rm
-f
result