Skip to content

Commit

Permalink
add a missing init file
Browse files Browse the repository at this point in the history
  • Loading branch information
Szelethus committed Jan 21, 2025
1 parent 0948700 commit 3327da4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bazel/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ FUNCTIONAL_TEST_CMD = $(REPO_ROOT) $(TEST_PROJECT) \
CLEAR_WORKSPACE_CMD = cd tests/functional/ && bazel clean --expunge && cd -

test_functional:
CCACHE_DISABLE=1 $(CLEAR_WORKSPACE_CMD) && $(FUNCTIONAL_TEST_CMD)
CCACHE_DISABLE=1 $(CLEAR_WORKSPACE_CMD) && env && CCACHE_DISABLE=1 $(FUNCTIONAL_TEST_CMD)

test_functional_in_env: venv_dev
$(ACTIVATE_DEV_VENV) && $(FUNCTIONAL_TEST_CMD)
27 changes: 27 additions & 0 deletions tools/bazel/tests/functional/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding=utf-8
# -------------------------------------------------------------------------
#
# Part of the CodeChecker project, under the Apache License v2.0 with
# LLVM Exceptions. See LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# -------------------------------------------------------------------------
"""
Setup python modules for the unit tests.
"""


import os
import sys

REPO_ROOT = os.path.abspath(os.environ['REPO_ROOT'])
PKG_ROOT = os.path.join(REPO_ROOT, 'build', 'CodeChecker')

os.environ["CC_DATA_FILES_DIR"] = PKG_ROOT

sys.path.append(REPO_ROOT)
sys.path.append(os.path.join(
REPO_ROOT, 'analyzer', 'tools', 'statistics_collector'))
sys.path.append(os.path.join(PKG_ROOT, 'bin'))
sys.path.append(os.path.join(REPO_ROOT, 'tools', 'report-converter'))
sys.path.append(os.path.join(PKG_ROOT, 'lib', 'python3'))

0 comments on commit 3327da4

Please sign in to comment.