opaecxx: add opae-cxx-core to test coverage
@@ -9,20 +9,26 @@ mkdir coverage_report
cmake .. -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Coverage
-make mock gtapi
+make mock gtapi fpgad
lcov --directory . --zerocounters
-
+./bin/fpgad -d
make test
+kill $(cat /tmp/fpgad.pid)
find */**/opae-c.dir -iname "*.gcda" -exec chmod 664 '{}' \;
find */**/opae-c.dir -iname "*.gcno" -exec chmod 664 '{}' \;
+find */**/opae-cxx-core.dir -iname "*.gcda" -exec chmod 664 '{}' \;
+find */**/opae-cxx-core.dir -iname "*.gcno" -exec chmod 664 '{}' \;
+
find */**/opae-c.dir -iname "*.gcda" | xargs -i cp {} coverage_files
find */**/opae-c.dir -iname "*.gcno" | xargs -i cp {} coverage_files
+find */**/opae-cxx-core.dir -iname "*.gcda" | xargs -i cp {} coverage_files
+find */**/opae-cxx-core.dir -iname "*.gcno" | xargs -i cp {} coverage_files
lcov -t test_coverage -o coverage.info -c -d coverage_files
-lcov --remove coverage.info '/usr/**' 'tests/**' '*/**/CMakeFiles*' --output-file coverage.info.cleaned
+lcov --remove coverage.info '/usr/**' 'tests/**' '*/**/CMakeFiles*' '/usr/include/c++/**' --output-file coverage.info.cleaned
genhtml --branch-coverage --function-coverage coverage.info -o coverage_report coverage.info.cleaned
#TODO - Enable coveralls once its integrated with github
