Unit test improvements, add example programme
This change addresses some sonar flagged issues (move/copy
builders missing), and adds unit tests to support the
addition of those. The code was slightly adjusted to
better support testing coverage.
The rmr_dump programme was added to the examples.
Issue-ID: RIC-148
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I9220d75fa6690feebf439cfe97dda43572f20c4e
diff --git a/examples/Makefile b/examples/Makefile
index 1371871..a56760a 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -24,10 +24,7 @@
%.o:: %.cpp %.hpp
g++ -g ${prereq%% *} -c
-all:: xapp_t1 xapp_t2
+% :: %.cpp
+ g++ $< -g -o $@ -lricxfcpp -lrmr_si -lpthread -lm
-xapp_t1:: xapp_t1.cpp
- g++ xapp_t1.cpp -g -o xapp_t1 -lricxfcpp -lrmr_si -lpthread -lm
-
-xapp_t2:: xapp_t2.cpp
- g++ xapp_t2.cpp -g -o xapp_t2 -lricxfcpp -lrmr_si -lpthread -lm
+all:: xapp_t1 xapp_t2 rmr_dump