File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ ACLOCAL_AMFLAGS = -I m4
2626
2727bin_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
3131libunpriv_gtest_bin_SOURCES = gtest_main.cpp libunpriv_test.cpp ../cap.c ../utility.cpp mocks/CapMock.cpp
3232
Original file line number Diff line number Diff line change 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>
2424extern " C" {
2525#include " cap.h"
2626#include < string.h>
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ cd "$TOP_DIR" || exit 1
77ENABLE_COV=false
88fail=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
3434fi
3535
36- echo " **********Generating Coverage Report**********"
37-
3836if [ " $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
4243fi
You can’t perform that action at this time.
0 commit comments