Add first set of SI95 unit tests and health check
This change adds the first series of unit tests for
the RMR SI95 code. It also bundles the running of
the unit tests and the application level tests into
the CMake description such that "make test" will
run them all.
The health check application (health_ck) is now built
from the "support" source and added to the RMR run-time
package in /usr/local/bin.
Issue-ID: RIC-151
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I72804452afa5a972aa4ca0ded7b68131e16f5955
diff --git a/test/rmr_nng_test.c b/test/rmr_nng_test.c
index a3aeb40..08758ad 100644
--- a/test/rmr_nng_test.c
+++ b/test/rmr_nng_test.c
@@ -62,6 +62,7 @@
#include <nng/protocol/pipeline0/push.h>
#include <nng/protocol/pipeline0/pull.h>
+#define NNG_UNDER_TEST 1
#define EMULATE_NNG
#include "test_nng_em.c" // nng/nn emulation (before including things under test)
@@ -70,7 +71,6 @@
#include "rmr_symtab.h"
#include "rmr_logging.h"
#include "rmr_agnostic.h" // transport agnostic header
-#include "rmr_nng_private.h" // transport specific
#include "symtab.c"
#include "logging.c"
@@ -81,6 +81,7 @@
// specific test tools in this directory
#include "test_support.c" // things like fail_if()
+#include "test_ctx_support.c" // specifically geared to creating dummy contex structs
#include "test_gen_rt.c"
// and finally....
#include "tools_static_test.c" // local test functions pulled directly because of static nature of things