dhcpd-pools/tests/full-json
Sami Kerola e50d0a7d38 tests: fix make distcheck
It is best to make dhcpd-pools used from PATH, which makes out of tree
build check to work.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-15 20:28:26 +00:00

13 lines
305 B
Bash
Executable file

#!/bin/sh
#
# Minimal regression test suite.
if [ ! -d outputs ]; then
mkdir outputs
fi
dhcpd-pools -f J -c $top_srcdir/tests/confs/same-twice \
-l $top_srcdir/tests/leases/same-twice \
-o outputs/same-twice-json
diff -u $top_srcdir/tests/expected/same-twice-json outputs/same-twice-json
exit $?