mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 08:16:59 +00:00
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:
parent
34f73dbae1
commit
e50d0a7d38
3 changed files with 15 additions and 19 deletions
|
|
@ -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 $?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue