Add metrics to the framework

This change adds support for a metrics class which provides
the API allowing an xAPP to easily create and send a set of
measurements to a central collector for forwarding.

Issue-ID: RIC381

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I0926b26d4862df308ab0863260805fe057785bdc
diff --git a/test/unit_test.sh b/test/unit_test.sh
index 2f30686..3e06a53 100755
--- a/test/unit_test.sh
+++ b/test/unit_test.sh
@@ -60,6 +60,16 @@
 
 spew="cat"					# default to dumping all make output on failure (-q turns it to ~40 lines)
 
+if [[ -d ../.build ]]
+then
+	build_dir="../.build"
+else
+	if [[ -d ../build ]]
+	then
+		build_dir="../build"
+	fi
+fi
+
 while [[ $1 == "-"* ]]
 do
 	case $1 in
@@ -70,8 +80,24 @@
 	shift
 done
 
-export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
-export LIBRARY_PATH=/usr/local/lib:$LIBRARY_PATH
+while [[ $1 == *"="* ]]
+do
+	case ${1%%=*} in
+		CMBUILD)
+			export build_dir=${1##*=}
+			;;
+	esac
+
+	shift
+done
+
+echo "## INFO ##"
+echo "build dir=$build_dir"
+find $build_dir -name "libricxfcpp.*"
+echo "## INFO ##"
+
+export LD_LIBRARY_PATH=$build_dir:/usr/local/lib:$LD_LIBRARY_PATH
+export LIBRARY_PATH=$build_dir:/usr/local/lib:$LIBRARY_PATH
 
 make nuke >/dev/null
 make tests >/tmp/PID$$.log 2>&1
@@ -80,7 +106,7 @@
 
 spew="cat"
 
-for x in unit_test jhash_test
+for x in unit_test jhash_test metrics_test
 do
 	./$x >/tmp/PID$$.log 2>&1
 	abort_if_error $? "test failed: $x"