Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:

jobs:
rules_test:
name: Analysis
name: Unit tests
runs-on: ubuntu-24.04

steps:
Expand All @@ -36,6 +36,18 @@ jobs:
clang \
clang-tools \
clang-tidy
# The default naming of the clang-extdef-mapping, needed for CTU, is
# installed by clang-tools also contains the major version
# (e.g. clang-extdef-mapping-18), but the bazel rules reference it
# without the version number. To this end, we use update-alternatives
# to rename the binary to omit it.
Comment thread
Szelethus marked this conversation as resolved.
sudo update-alternatives --install \
/usr/bin/clang-extdef-mapping \
clang-extdef-mapping \
/usr/bin/clang-extdef-mapping-$(clang --version | head -n 1 |
sed -E 's/.*version ([0-9]+)\..*/\1/') \
100


- name: Install CodeChecker
run: pip3 install codechecker
Expand All @@ -48,3 +60,8 @@ jobs:
"CodeChecker finds different analyzers when running in " \
"bazel's sandbox environment!"
CodeChecker analyzers

- name: Run tests
run: |
cd test
python3 test.py -vvv
3 changes: 0 additions & 3 deletions test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ codechecker_test(
name = "codechecker_pass",
analyze = [
"--ctu",
"--stats",
Comment thread
nettle marked this conversation as resolved.
],
config = "codechecker_config_json",
targets = [
Expand Down Expand Up @@ -260,7 +259,6 @@ code_checker_test(
name = "code_checker_pass",
options = [
"--ctu",
"--stats",
],
targets = [
"test_pass",
Expand All @@ -284,7 +282,6 @@ code_checker_test(
name = "code_checker_ctu",
options = [
"--ctu",
"--stats",
],
tags = [
"manual",
Expand Down