Skip to content

Commit

Permalink
Move LCOV lib to CV
Browse files Browse the repository at this point in the history
  • Loading branch information
Mordan Vitalii committed Jul 14, 2023
1 parent 21d4a76 commit 4fd8c4c
Show file tree
Hide file tree
Showing 3 changed files with 380 additions and 8 deletions.
9 changes: 1 addition & 8 deletions scripts/components/coverage_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
import os
import re
import subprocess
import sys
import zipfile

from components import *
from components.component import Component
from coverage.lcov import LCOV

TAG_COVERAGE_MODE = "mode"
TAG_COVERAGE_PERCENT_MODE = "percent mode"
Expand Down Expand Up @@ -271,13 +271,6 @@ def __full_coverage(self, source_dirs: set, coverage_file: str):
dummy_dir = os.path.join(src_dir, CLADE_WORK_DIR)
break

# Export libs.
et_parser_lib = self.get_tool_path(self._get_tool_default_path(ET_LIB),
self.config.get(TAG_TOOLS, {}).get(ET_LIB))
sys.path.append(et_parser_lib)
# noinspection PyUnresolvedReferences
from core.coverage import LCOV

lcov = LCOV(self.internal_logger, coverage_file, dummy_dir, source_dirs, [],
self.launcher_dir, self.full_mode,
ignore_files={os.path.join(DIRECTORY_WITH_GENERATED_FILES,
Expand Down
18 changes: 18 additions & 0 deletions scripts/coverage/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# CV is a framework for continuous verification.
#
# Copyright (c) 2018-2023 ISP RAS (http://www.ispras.ru)
# Ivannikov Institute for System Programming of the Russian Academy of Sciences
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Loading

0 comments on commit 4fd8c4c

Please sign in to comment.