1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#!/bin/sh
#
# Minimal regression test suite.
IAM=$(basename $0)
if [ ! -d tests/outputs ]; then
mkdir tests/outputs
fi
cat <<EOF >"./${IAM}-conf"
#shared-network "example3 " {
# subnet 10.0.6.0 netmask 255.255.255.0 {
# pool {
# range 10.0.6.1 10.0.6.20;
# }
# }
# subnet 10.1.7.0 netmask 255.255.255.0 {
# pool {
# range 10.1.7.1 10.1.7.20;
# }
# }
#}
include "tests/confs/complete";
EOF
dhcpd-pools -c "./${IAM}-conf" --color=never \
-l $top_srcdir/tests/leases/$IAM -o tests/outputs/$IAM
diff -u $top_srcdir/tests/expected/$IAM tests/outputs/$IAM
rm -f "./${IAM}-conf"
exit $?
|