mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 08:16:59 +00:00
tests: add alarming tests
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
08c9bcc502
commit
c0e7b50bd3
17 changed files with 152 additions and 0 deletions
16
tests/alarm-critical-snets
Executable file
16
tests/alarm-critical-snets
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Alarm critical shared networks only.
|
||||
|
||||
IAM=$(basename $0)
|
||||
|
||||
if [ ! -d tests/outputs ]; then
|
||||
mkdir tests/outputs
|
||||
fi
|
||||
|
||||
dhcpd-pools -L 22 --critical=50 -c $top_srcdir/tests/confs/complete \
|
||||
-l $top_srcdir/tests/leases/complete -o tests/outputs/$IAM
|
||||
echo $? >> tests/outputs/$IAM
|
||||
|
||||
diff -u $top_srcdir/tests/expected/$IAM tests/outputs/$IAM
|
||||
exit $?
|
||||
Loading…
Add table
Add a link
Reference in a new issue