Merge "Fix for 2 stop requests getting triggerred [Issue-ID: ODUHIGH-348]"
authorHarshita Lal <harshita.lal@radisys.com>
Thu, 1 Jul 2021 13:27:13 +0000 (13:27 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Thu, 1 Jul 2021 13:27:13 +0000 (13:27 +0000)
CMakeLists.txt
build/odu/makefile
test/unit_test.sh [new file with mode: 0644]

index 6d5864b..e5561c0 100644 (file)
@@ -1 +1,6 @@
 #sonar qube testing
+project( odu-l2 )
+cmake_minimum_required( VERSION 2.8.12.2)
+#No unit test present in this framework TBD in further releases.
+enable_testing()
+add_test(NAME drive_unit_tests COMMAND bash  ../test/unit_test.sh)
index 1afa0df..61958eb 100644 (file)
@@ -44,7 +44,11 @@ PARALLEL_COMP=-j $(NUM_PARALLEL)
 # # Other apsects of tool chain set here
 # # These should be made available appropriately to the builds
 ifeq ($(MACHINE),BIT64)
+ifeq ($(COVERAGE),1)
+CC          =gcc -m64 --coverage
+else
 CC          =gcc -m64
+endif
 CC_STRIP    =strip --strip-all
 CC_LINKER   =gcc -m64
 CCPP        =g++ -m64
diff --git a/test/unit_test.sh b/test/unit_test.sh
new file mode 100644 (file)
index 0000000..ae58a57
--- /dev/null
@@ -0,0 +1 @@
+cd odu;make clean_odu MACHINE=BIT64 MODE=TDD;make odu MACHINE=BIT64 MODE=TDD COVERAGE=1