Skip to content

re-run analysis in Python tests with cached results when TEST_CPPCHECK_INJECT_BUILDDIR is specified #7079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Dec 7, 2024

No description provided.

print(stderr_lines)
print('stderr - actual')
print(stderr_1_lines)
# TODO: filter out checkersReport because it different amount of active checkers for cached runs
Copy link
Collaborator Author

@firewave firewave Dec 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@firewave
Copy link
Collaborator Author

firewave commented Dec 7, 2024

The difference in the output of test_invalid_addon_py_verbose is tracked in https://trac.cppcheck.net/ticket/13389.

# strip some common output only seen during analysis
stdout_lines = [entry for entry in stdout_lines if not entry.startswith('Processing rule: ')]
stdout_lines = [entry for entry in stdout_lines if not entry.startswith('progress: ')]
# TODO: no messages for checked configurations when using cached data
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@firewave
Copy link
Collaborator Author

firewave commented Dec 7, 2024

test/cli/helloworld_test.py::test_sarif - https://trac.cppcheck.net/ticket/13393 (Windows only)
test/cli/helloworld_test.py::test_xml_checkers_report - https://trac.cppcheck.net/ticket/13390 / https://trac.cppcheck.net/ticket/13388
test/cli/inline-suppress_test.py::test_unmatched_cfg
test/cli/inline-suppress_test.py::test_unmatched_suppression
test/cli/inline-suppress_test.py::test_unmatched_suppression_path_with_extra_stuff
test/cli/inline-suppress_test.py::test_unused_function_disabled_unmatched
test/cli/inline-suppress_test.py::test_unused_function_unmatched - https://trac.cppcheck.net/ticket/13087
test/cli/metrics_test.py::test_dummy_metrics_stdout
test/cli/metrics_test.py::test_dummy_metrics_xml_report
test/cli/other_test.py::test_execute_addon_file0- https://trac.cppcheck.net/ticket/13391
test/cli/other_test.py::test_addon_namingng_config - https://trac.cppcheck.net/ticket/13389
test/cli/other_test.py::test_checkers_report_misra_json - https://trac.cppcheck.net/ticket/13388
test/cli/other_test.py::test_inline_suppr
test/cli/other_test.py::test_inline_suppr_j
test/cli/other_test.py::test_invalid_addon_py_verbose - https://trac.cppcheck.net/ticket/13389
test/cli/other_test.py::test_suppress_unmatched_wildcard
test/cli/proj2_test.py::test_gui_project_loads_relative_vs_solution_2 - https://trac.cppcheck.net/ticket/13926
test/cli/proj2_test.py::test_gui_project_loads_relative_vs_solution_with_exclude - https://trac.cppcheck.net/ticket/13926
test/cli/proj2_test.py::test_gui_project_loads_absolute_vs_solution_2 - https://trac.cppcheck.net/ticket/13926
test/cli/suppress-syntaxError_test.py::test_safety_suppress_syntax_error_explicitly
test/cli/suppress-syntaxError_test.py::test_safety_suppress_syntax_error_implicitly
test/cli/whole-program_test.py::test_addon_suppress_inline
test/cli/whole-program_test.py::test_addon_suppress_inline_project
test/cli/whole-program_test.py::test_nullpointer_file0 - https://trac.cppcheck.net/ticket/13906 (Windows only)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant