LIST: Fix memory leaks.
[pwmd.git] / tests / import-xml.test
blob4b247126f2232e7791b67883cdef6e168bfb2e7d
1 #!/bin/sh
3 # Tests of data file importing.
5 MAX_TESTS=1
7 . $AM_SRCDIR/common.sh
8 . $AM_SRCDIR/import-common.sh
10 init_tests() {
11 do_import datafile
12 cat >$OUTDIR/config << EOF
13 [datafile]
14 passphrase_file=$WDIR/passphrase.key
15 EOF
16 launch_pwmd datafile
19 test_1() {
20 run_pwmc "datafile" >result $DEVNULL <<EOF
21 DUMP
22 EOF
23 e=$?
24 if [ $e -eq 0 ]; then
25 cmp $WDIR/datafile.xml result 2>/dev/null >/dev/null
26 e=$?
29 test_result $test_n $e "Import to root."
30 rm -f result
33 run_tests $@