forked from Ericsson/codechecker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[analyzer] gerrit output for parse subcommand
Add gerrit output format for the parse subcommand Test modifications: New unit test structure for the codechecker_common module. New gerrit format converter unit tests.
- Loading branch information
Gyorgy Orban
committed
Nov 2, 2020
1 parent
c4bab88
commit ac43204
Showing
9 changed files
with
460 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[nosetests] | ||
|
||
# increase verbosity level | ||
verbosity=3 | ||
|
||
# more detailed error messages on failed asserts | ||
detailed-errors=1 | ||
|
||
# stop running tests on first error | ||
stop=1 | ||
|
||
# do not capture stdout | ||
#nocapture=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Environment variables to run tests. | ||
|
||
CURRENT_DIR = $(shell pwd) | ||
# Root of the repository. | ||
REPO_ROOT = $(CURRENT_DIR)/../../../ | ||
|
||
# Nose test runner configuration options. | ||
NOSECFG = --config .noserc | ||
|
||
test_in_env: test_unit_in_env | ||
|
||
test: test_unit | ||
|
||
UNIT_TEST_CMD = $(REPO_ROOT) nosetests $(NOSECFG) . | ||
|
||
test_unit: | ||
$(UNIT_TEST_CMD) | ||
|
||
test_unit_in_env: venv_dev | ||
$(ACTIVATE_DEV_VENV) && $(UNIT_TEST_CMD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# ------------------------------------------------------------------------- | ||
# | ||
# 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']) | ||
sys.path.append(REPO_ROOT) |
Oops, something went wrong.