dhcpd-pools/tests/full-json
Sami Kerola 46ec42182b
output: add some trivia data to json output
These are software version, dhcpd conf and leases paths and mtime epoch
timestamps.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2017-11-14 20:24:15 +00:00

14 lines
394 B
Bash
Executable file

#!/bin/sh
#
# Minimal regression test suite.
if [ ! -d tests/outputs ]; then
mkdir tests/outputs
fi
dhcpd-pools -f J -c $top_srcdir/tests/confs/same-twice \
-l $top_srcdir/tests/leases/same-twice |
sed '/"version":"/d; /"conf_file_.*":/d; /"lease_file_.*":/d' \
>| tests/outputs/same-twice-json
diff -u $top_srcdir/tests/expected/same-twice-json tests/outputs/same-twice-json
exit $?