Add first set of SI95 unit tests and health check
[ric-plt/lib/rmr.git] / test / Makefile
index d6c2c64..e44b2bb 100644 (file)
 CC = gcc
 coverage_opts = -ftest-coverage -fprofile-arcs
 
-#libs = ../build/librmr_nng.a -L ../build/lib -lnng -lpthread -lm
-libs =  -L ../build/lib -lnng -lpthread -lm
+libs = -lnng -lpthread -lm
+ipaths = -I ../src/rmr/common/src/ -I ../src/rmr/common/include  \
+       -I ../src/rmr/nng/include/ -I ../src/rmr/nng/src/  \
+       -I ../src/rmr/nanomsg/include/ -I ../src/rmr/nanomsg/src/  \
+       -I ../src/rmr/si/include -I ../src/rmr/si/src -I ../src/rmr/si/si95
 
 #sa_tests = sa_tools_test.o
 
@@ -31,11 +34,11 @@ libs =  -L ../build/lib -lnng -lpthread -lm
        $(CC) -g $< -c
 
 %:: %.c
-       $(CC) -I ../src/common/src/ -I ../src/common/include -I ../src/nng/include -I ../src/nanomsg/include  $(coverage_opts) -fPIC -g $< -o $@  $(libs)
+       $(CC)  $(ipaths) $(coverage_opts) -fPIC -g $< -o $@  $(libs)
 
-# catch all
+# run all tests; generates .gcov and .dcov files.
 all:
-       echo "run unit_test.ksh to make and run things here"
+       unit_test.ksh
 
 
 # remove intermediates