dhcpd-pools/tests/test.sh
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

14 lines
272 B
Bash
Executable file

#!/bin/sh
#
# Minimal regression test suite.
IAM=$(basename $0)
if [ ! -d outputs ]; then
mkdir outputs
fi
dhcpd-pools -c $top_srcdir/tests/confs/$IAM \
-l $top_srcdir/tests/leases/$IAM -o outputs/$IAM
diff -u $top_srcdir/tests/expected/$IAM outputs/$IAM
exit $?