FS-7820 adding a unit test for switch_hash.c with benchmarking example

and docs
This commit is contained in:
William King
2015-07-10 15:09:24 -07:00
parent 8cb75a6000
commit d5904f4a96
3 changed files with 165 additions and 7 deletions
+10 -6
View File
@@ -1,9 +1,11 @@
FSLD = $(top_builddir)/libfreeswitch.la $(top_builddir)/libs/apr/libapr-1.la $(top_builddir)/libs/apr-util/libaprutil-1.la
TESTS =
check_PROGRAMS =
if HAVE_TAP
TESTS = switch_event
TESTS += switch_event
check_PROGRAMS = switch_event
switch_event_SOURCES = switch_event.c
@@ -11,11 +13,13 @@ switch_event_CFLAGS = $(SWITCH_AM_CFLAGS)
switch_event_LDADD = $(FSLD)
switch_event_LDFLAGS = $(SWITCH_AM_LDFLAGS) -ltap
event_create_SOURCES = event_create.c
event_create_CFLAGS = $(SWITCH_AM_CFLAGS)
event_create_LDADD = $(FSLD)
event_create_LDFLAGS = $(SWITCH_AM_LDFLAGS) -ltap
TESTS += switch_hash
check_PROGRAMS += switch_hash
switch_hash_SOURCES = switch_hash.c
switch_hash_CFLAGS = $(SWITCH_AM_CFLAGS)
switch_hash_LDADD = $(FSLD)
switch_hash_LDFLAGS = $(SWITCH_AM_LDFLAGS) -ltap
else
check: