add xml format check

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2015-05-02 18:51:39 +01:00
parent 0d6c61d437
commit c4e5ef6198
3 changed files with 35 additions and 0 deletions

13
tests/full-xml Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
#
# Minimal regression test suite.
if [ ! -d tests/outputs ]; then
mkdir tests/outputs
fi
dhcpd-pools -f X -c $top_srcdir/tests/confs/same-twice \
-l $top_srcdir/tests/leases/same-twice \
-o tests/outputs/same-twice-xml
diff -u $top_srcdir/tests/expected/same-twice-xml tests/outputs/same-twice-xml
exit $?