Skip to content
Permalink
Browse files

Add unit tests to coverage report (#2053)

* Update build-linux.sh

* Update build-linux.sh

* Update build-linux.sh

* coverage linking with active interactor

* Fix cmake config change

* Be in right directory to run unit test
  • Loading branch information...
jackgerrits committed Aug 29, 2019
1 parent c67bb23 commit 4848dc4601531dcf04fa15bdfa1f76e6c7cc6a86
Showing with 9 additions and 6 deletions.
  1. +5 −5 build-linux.sh
  2. +4 −1 vowpalwabbit/CMakeLists.txt
@@ -45,9 +45,9 @@ source deactivate
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DGCOV=ON -DWARNINGS=OFF -DBUILD_JAVA=Off -DBUILD_PYTHON=Off -DBUILD_TESTS=On
make vw-bin -j ${NUM_PROCESSORS}
cd ..
cd test
export PATH=../build/vowpalwabbit/:$PATH && ./RunTests -d -fe -E 0.001
cmake .. -DCMAKE_BUILD_TYPE=Debug -DGCOV=ON -DWARNINGS=OFF -DBUILD_JAVA=Off -DBUILD_PYTHON=Off -DBUILD_TESTS=On -DDO_NOT_BUILD_VW_C_WRAPPER=On
make vw-bin vw-unit-test.out -j ${NUM_PROCESSORS}
./test/unit_test/vw-unit-test.out
cd ../test
./RunTests -d -fe -E 0.001
cd ..
@@ -93,13 +93,16 @@ endif(WARNINGS)
if(NOT WIN32)
add_executable(active_interactor active_interactor.cc)

if(GCOV)
target_link_libraries(active_interactor PUBLIC gcov --coverage)
endif()

if(VW_INSTALL)
install(TARGETS active_interactor
RUNTIME DESTINATION bin
)
endif()


target_compile_definitions(active_interactor PUBLIC _FILE_OFFSET_BITS=64)
target_compile_definitions(active_interactor PUBLIC $<$<CONFIG:RELEASE>:NDEBUG>)
target_compile_options(active_interactor PUBLIC ${linux_flags})

0 comments on commit 4848dc4

Please sign in to comment.
You can’t perform that action at this time.