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>
This commit is contained in:
Sami Kerola 2013-01-15 20:23:32 +00:00
parent 34f73dbae1
commit e50d0a7d38
3 changed files with 15 additions and 19 deletions

View file

@ -2,14 +2,13 @@
#
# Minimal regression test suite.
TEST_TOPDIR=$(cd $(dirname $0) && pwd)
IAM=$(basename $0)
DHCPD_POOLS=$(readlink -f $TEST_TOPDIR/../src/dhcpd-pools)
if [ ! -d outputs ]; then
mkdir outputs
fi
$DHCPD_POOLS -c confs/$IAM -l leases/$IAM -o outputs/$IAM
diff -u expected/$IAM outputs/$IAM
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 $?