diff --git a/tests/Makefile.am b/tests/Makefile.am index d2a1eeb..30b3cef 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -4,6 +4,7 @@ TESTS = \ empty \ full-json \ leading0 \ + one-ip \ same-twice \ simple \ v6 diff --git a/tests/confs/one-ip b/tests/confs/one-ip new file mode 100644 index 0000000..60a2e3f --- /dev/null +++ b/tests/confs/one-ip @@ -0,0 +1 @@ +range 10.20.30.40; diff --git a/tests/expected/one-ip b/tests/expected/one-ip new file mode 100644 index 0000000..977a9b9 --- /dev/null +++ b/tests/expected/one-ip @@ -0,0 +1,10 @@ +Ranges: +shared net name first ip last ip max cur percent touch t+c t+c perc +All networks 10.20.30.40 - 10.20.30.40 1 1 100.000 0 1 100.000 + +Shared networks: +name max cur percent touch t+c t+c perc + +Sum of all ranges: +name max cur percent touch t+c t+c perc +All networks 1 1 100.000 0 1 100.000 diff --git a/tests/leases/one-ip b/tests/leases/one-ip new file mode 100644 index 0000000..43df364 --- /dev/null +++ b/tests/leases/one-ip @@ -0,0 +1,4 @@ +lease 10.20.30.40 { + binding state active; + hardware ethernet 00:00:00:00:00:00; +} diff --git a/tests/one-ip b/tests/one-ip new file mode 120000 index 0000000..61a58b0 --- /dev/null +++ b/tests/one-ip @@ -0,0 +1 @@ +test.sh \ No newline at end of file