VPP-1033: Python API support arbitrary sized input parameters.
[vpp.git] / src / vppinfra.am
index 8f01114..96766e8 100644 (file)
@@ -13,7 +13,9 @@
 
 lib_LTLIBRARIES += libvppinfra.la
 
-TESTS =
+TESTS = test_cuckoo_template \
+        test_bihash_template \
+       test_cuckoo_bihash
 
 if ENABLE_TESTS
 TESTS  +=  test_bihash_template \
@@ -47,6 +49,8 @@ noinst_PROGRAMS = $(TESTS)
 check_PROGRAMS = $(TESTS)
 
 test_bihash_template_SOURCES = vppinfra/test_bihash_template.c
+test_cuckoo_template_SOURCES = vppinfra/test_cuckoo_template.c
+test_cuckoo_bihash_SOURCES = vppinfra/test_cuckoo_bihash.c
 test_dlist_SOURCES = vppinfra/test_dlist.c
 test_elf_SOURCES = vppinfra/test_elf.c
 test_elog_SOURCES = vppinfra/test_elog.c
@@ -75,6 +79,8 @@ test_zvec_SOURCES = vppinfra/test_zvec.c
 # All unit tests use ASSERT for failure
 # So we'll need -DDEBUG to enable ASSERTs
 test_bihash_template_CPPFLAGS =        $(AM_CPPFLAGS) -DCLIB_DEBUG
+test_cuckoo_template_CPPFLAGS =        $(AM_CPPFLAGS) -DCLIB_DEBUG
+test_cuckoo_bihash_CPPFLAGS =  $(AM_CPPFLAGS) -DCLIB_DEBUG
 test_dlist_CPPFLAGS =  $(AM_CPPFLAGS) -DCLIB_DEBUG
 test_elf_CPPFLAGS =    $(AM_CPPFLAGS) -DCLIB_DEBUG
 test_elog_CPPFLAGS =   $(AM_CPPFLAGS) -DCLIB_DEBUG
@@ -101,6 +107,8 @@ test_vec_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
 test_zvec_CPPFLAGS =   $(AM_CPPFLAGS) -DCLIB_DEBUG
 
 test_bihash_template_LDADD =   libvppinfra.la
+test_cuckoo_template_LDADD =   libvppinfra.la
+test_cuckoo_bihash_LDADD =     libvppinfra.la
 test_dlist_LDADD =     libvppinfra.la
 test_elf_LDADD =       libvppinfra.la
 test_elog_LDADD =      libvppinfra.la
@@ -127,6 +135,8 @@ test_vec_LDADD =    libvppinfra.la
 test_zvec_LDADD =      libvppinfra.la
 
 test_bihash_template_LDFLAGS = -static
+test_cuckoo_template_LDFLAGS = -static
+test_cuckoo_bihash_LDFLAGS = -static -lpthread
 test_dlist_LDFLAGS = -static
 test_elf_LDFLAGS = -static
 test_elog_LDFLAGS = -static
@@ -183,10 +193,13 @@ nobase_include_HEADERS = \
   vppinfra/error.h \
   vppinfra/error_bootstrap.h \
   vppinfra/fifo.h \
+  vppinfra/file.h \
   vppinfra/format.h \
   vppinfra/graph.h \
   vppinfra/hash.h \
   vppinfra/heap.h \
+  vppinfra/linux/sysfs.h \
+  vppinfra/linux/syscall.h \
   vppinfra/lock.h \
   vppinfra/longjmp.h \
   vppinfra/macros.h \
@@ -232,7 +245,6 @@ nobase_include_HEADERS = \
   vppinfra/vector_neon.h \
   vppinfra/vector_sse2.h \
   vppinfra/valgrind.h \
-  vppinfra/vm_unix.h \
   vppinfra/xxhash.h \
   vppinfra/xy.h \
   vppinfra/zvec.h
@@ -290,6 +302,8 @@ CLIB_CORE = \
 libvppinfra_la_SOURCES =                       \
   $(CLIB_CORE)                                 \
   vppinfra/elf_clib.c                          \
+  vppinfra/linux/mem.c                         \
+  vppinfra/linux/sysfs.c                       \
   vppinfra/socket.c                            \
   vppinfra/timer.c                             \
   vppinfra/unix-formats.c                      \