mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 07:47:00 +00:00
15 lines
321 B
Bash
Executable file
15 lines
321 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# 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 -q expected/$IAM outputs/$IAM >/dev/null
|
|
exit $?
|