Skip to content

Commit

Permalink
move external files to external
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Gauci committed Jan 4, 2019
1 parent a1b8711 commit 320cb19
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ ELSE()
ENDIF()

include_directories(
external
src/base
src/terminal
src/htm
Expand All @@ -110,6 +111,8 @@ add_library(
et-lib
STATIC

external/easylogging++.cc

src/base/BackedReader.cpp
src/base/BackedWriter.cpp
src/base/ClientConnection.cpp
Expand All @@ -121,7 +124,6 @@ add_library(
src/base/PipeSocketHandler.cpp
src/base/TcpSocketHandler.cpp
src/base/UnixSocketHandler.cpp
src/base/easylogging++.cc
src/base/LogHandler.cpp
src/base/DaemonCreator.cpp
src/base/SystemUtils.cpp
Expand Down
10 changes: 7 additions & 3 deletions coverage.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
rm -Rf build
mkdir build
pushd ./build
cmake ../ -DBUILD_TEST=ON -DBUILD_GTEST=ON -DCODE_COVERAGE=ON
make -j8
cmake ../ -DBUILD_TEST=ON -DBUILD_GTEST=ON -DCODE_COVERAGE=ON -G Ninja
ninja
find . -name "*.gcda" -print0 | xargs -0 rm
popd
./build/test/et-test
lcov --directory ./build --capture --output-file ./code-coverage.info -rc lcov_branch_coverage=1
genhtml code-coverage.info --branch-coverage --output-directory ./code_coverage_report/
echo "Report generated in code_coverage_report"
open code_coverage_report/index.html
rm -Rf build
mkdir build
pushd ./build
cmake ../ -DBUILD_TEST=ON -DBUILD_GTEST=ON -DCODE_COVERAGE=OFF
cmake ../ -DBUILD_TEST=ON -DBUILD_GTEST=ON -DCODE_COVERAGE=OFF -G Ninja
popd
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 320cb19

Please sign in to comment.