Skip to content

Commit 815858b

Browse files
MonekaLakshmiplaksh175_comcast
authored andcommitted
RDKEMW-10008: Update Makefile.am
1 parent 93c094f commit 815858b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

source/test/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ACLOCAL_AMFLAGS = -I m4
2626

2727
bin_PROGRAMS = libunpriv_gtest.bin
2828

29-
libunpriv_gtest_bin_CPPFLAGS = -I$(PKG_CONFIG_SYSROOT_DIR)/googletest/include/gtest -I$(PKG_CONFIG_SYSROOT_DIR)/googletest/include/ -I$(PKG_CONFIG_SYSROOT_DIR)/googletest/googletest/include -I$(PKG_CONFIG_SYSROOT_DIR)/googletest/googlemock/include/ -I${top_srcdir}/source -I${top_srcdir}/source/include -I/usr/include/jsoncpp
29+
libunpriv_gtest_bin_CPPFLAGS = -I$(PKG_CONFIG_SYSROOT_DIR)/googletest/include/gtest -I$(PKG_CONFIG_SYSROOT_DIR)/googletest/include/ -I$(PKG_CONFIG_SYSROOT_DIR)/googletest/googletest/include -I$(PKG_CONFIG_SYSROOT_DIR)/googletest/googlemock/include/ -I${top_srcdir}/source -I${top_srcdir}/source/include
3030

3131
libunpriv_gtest_bin_SOURCES = gtest_main.cpp libunpriv_test.cpp ../cap.c ../utility.cpp mocks/CapMock.cpp
3232

source/test/libunpriv_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "gtest/gtest.h"
2121
#include "test/mocks/CapMock.h"
2222
#include <fstream>
23-
#include <json/json.h>
23+
#include <ijsoncpp/json/json.h>
2424
extern "C" {
2525
#include "cap.h"
2626
#include<string.h>

test/run_ut.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cd "$TOP_DIR" || exit 1
77
ENABLE_COV=false
88
fail=0
99

10-
if [ "x$1" = "x--enable-cov" ]; then
10+
if [ "$1" = "--enable-cov" ]; then
1111
echo "Enabling coverage options"
1212
export CXXFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
1313
export CFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
@@ -33,10 +33,11 @@ if [ $? -ne 0 ]; then
3333
exit 1
3434
fi
3535

36-
echo "**********Generating Coverage Report**********"
37-
3836
if [ "$ENABLE_COV" = true ]; then
39-
lcov --capture --directory . --output-file coverage.info
37+
echo "Generating coverage report"
38+
cd source/test || exit 1
39+
40+
lcov --capture --directory .. --output-file coverage.info
4041
lcov --remove coverage.info '/usr/*' '*gmocks*' '*test*' --output-file coverage.info
4142
lcov --list coverage.info
4243
fi

0 commit comments

Comments
 (0)