Add unit tests and changes related
Base unit tests have been added with the means to generate
gcov coverage information and a small amounto of coverage
data. Some changes were made to the code to make testing
coverage better and to fix identified issues.
Most important are the unique smart ptr changes; the
framework prototypes now require them to be shared pointers
as they are not released/reallocated (e.g. message Send()).
Issue-ID: RIC-148
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ibc593ddc8687ce6d727bf6d3e2939c02f1e0afef
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d702d45..9e59870 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,7 +30,7 @@
set( major_version "0" ) # should be automatically populated from git tag later, but until CI process sets a tag we use this
set( minor_version "1" )
-set( patch_level "0" )
+set( patch_level "1" )
set( install_root "${CMAKE_INSTALL_PREFIX}" )
set( install_inc "include/ricxfcpp" )
@@ -199,6 +199,15 @@
target_include_directories( ricxfcpp_static PUBLIC "src/messenger" "src/xapp" )
endif()
+# -------- unit testing -------------------------------------------------------
+enable_testing()
+add_test(
+ NAME drive_unit_tests
+ COMMAND bash ../test/unit_test.sh -q
+ WORKING_DIRECTORY ../test
+)
+
+
# ------------- packaging -----------------------------------------------------
# Define what should be installed, and where they should go. For dev package we install