Add ippool unit-test for 'make check' runs

This test creates a variety of v4 (and one v6) pool and performs
allocations until the pool is full, then frees a random number of
randomly distributed addresses, re-allocates them and again checks that
they're all available and finally once the pool is full allocations
fail.

Change-Id: Ibf4588e8f3ae71684e5262c0caaa2689aee73a94
diff --git a/tests/lib/Makefile.am b/tests/lib/Makefile.am
new file mode 100644
index 0000000..ae54127
--- /dev/null
+++ b/tests/lib/Makefile.am
@@ -0,0 +1,14 @@
+AM_CFLAGS = -Wall -I$(top_srcdir)/include $(LIBOSMOCORE_CFLAGS) -g
+
+EXTRA_DIST = ippool_test.ok ippool_test.err
+
+noinst_PROGRAMS = ippool_test
+
+ippool_test_SOURCES = \
+	ippool_test.c \
+	$(NULL)
+
+ippool_test_LDADD = \
+	$(top_builddir)/lib/libmisc.a \
+	$(LIBOSMOCORE_LIBS) \
+	$(NULL)