mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
tests: test small network alarm ignoring
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
28f1e8c54c
commit
57ddd4f785
3 changed files with 17 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ TESTS = \
|
|||
tests/alarm-critical \
|
||||
tests/alarm-critical-ranges \
|
||||
tests/alarm-critical-snets \
|
||||
tests/alarm-ignore \
|
||||
tests/alarm-ok \
|
||||
tests/alarm-shared-ok \
|
||||
tests/alarm-warning \
|
||||
|
|
|
|||
15
tests/alarm-ignore
Executable file
15
tests/alarm-ignore
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Minimal regression test suite.
|
||||
|
||||
IAM=$(basename $0)
|
||||
|
||||
if [ ! -d tests/outputs ]; then
|
||||
mkdir tests/outputs
|
||||
fi
|
||||
|
||||
dhcpd-pools --warning 1 --critical 101 --min 2 \
|
||||
-c $top_srcdir/tests/confs/one-ip \
|
||||
-l $top_srcdir/tests/leases/one-ip -o tests/outputs/$IAM
|
||||
diff -u $top_srcdir/tests/expected/$IAM tests/outputs/$IAM
|
||||
exit $?
|
||||
1
tests/expected/alarm-ignore
Normal file
1
tests/expected/alarm-ignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
OK: Ranges; crit: 0 warn: 0 ok: 0 ignored: 1 Shared nets; crit: 0 warn: 0 ok: 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue