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
Include all required m4 macros.
[pwmd.git]
/
tests
/
import-xml.test
blob
ec6ca96f1ec52208320b9160e27981f469b5f5dd
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
begin_test
14
echo
"Test 1. Import data file."
15
echo
'DUMP'
| pwmc
$PWMC_ARGS
--key-file
datafile.key datafile
>
result
16
cmp
result datafile.xml
17
rm
-f
result
18
19
test_success