Commit 40d15caa authored by Florian Wittkamp's avatar Florian Wittkamp
Browse files

Merge branch 'CodeCoverage' into feature/gtest

parents f4c2119d 34fff2b0
......@@ -25,8 +25,12 @@ unittest-gcc:
script:
- DYLD_LIBRARY_PATH=${SCAI_ROOT}/lib/:${GTEST_DIR}:${DYLD_LIBRARY_PATH}
- LD_LIBRARY_PATH=${SCAI_ROOT}/lib:${GTEST_DIR}:${LD_LIBRARY_PATH}
- PATH=${GCOVR_DIR}:${PATH}
- cd src/ && make unitTest CC=g++ CFLAGS="-std=c++11"
- OMP_NUM_THREADS=2
- ./bin/Tests/Test_unit
- cd ../bin/Tests/ && ./Test_unit
- cd ../../src/
- gcovr -r . --branch --gcov-exclude=.+\.UnitTest.+\.
acoustic2D-gcc:
......
......@@ -6,7 +6,7 @@ LDFLAGS=-lscai_lama -lscai_solver -lscai_dmemo -lscai_sparsekernel -lscai_utilsk
# Flags for googletest framework
IFLAGSTEST = -I${GTEST_DIR}/include -L${GTEST_DIR}/
LDFLAGSTEST = -lgtest -lgtest_main
CFLAGSTEST = -isystem -pthread
CFLAGSTEST = -isystem -pthread -fprofile-arcs -ftest-coverage -fPIC -O0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment