Skip to content

Commit cfbd7f6

Browse files
committed
refs #12358 - CI-unixish.yml: added step which checks for AST and ValueFlow changes
1 parent e5c4a73 commit cfbd7f6

2 files changed

Lines changed: 16756 additions & 0 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,21 @@ jobs:
732732
# compile with verification and ast matchers
733733
make -j$(nproc) CXXOPTS="-Werror -g -O2" CPPOPTS="-DCHECK_INTERNAL -DHAVE_BOOST" MATCHCOMPILER=yes VERIFY=1
734734
735+
- name: Self check (output)
736+
run: |
737+
wget https://github.com/danmar/simplecpp/archive/refs/tags/1.5.1.tar.gz
738+
tar xvf 1.5.1.tar.gz
739+
# TODO: should include --verbose but identifiers in output differ on each run
740+
./cppcheck -q --std=c++11 --template=selfcheck -D__GNUC__ --library=gnu --check-level=exhaustive --debug --debug-template simplecpp-1.5.1/simplecpp.cpp > selfcheck.res
741+
diff -u selfcheck.exp selfcheck.res
742+
743+
# upload in failure case only. being able to just download the file, makes it easier to update the files in case of bigger changes
744+
- uses: actions/upload-artifact@v4
745+
if: failure()
746+
with:
747+
name: Actual output
748+
path: ./selfcheck.res
749+
735750
- name: CMake
736751
run: |
737752
cmake -S . -B cmake.output -Werror=dev -DHAVE_RULES=On -DBUILD_TESTING=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DUSE_MATCHCOMPILER=Verify -DENABLE_CHECK_INTERNAL=On -DCPPCHK_GLIBCXX_DEBUG=Off -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=On -DDISABLE_DMAKE=On

0 commit comments

Comments
 (0)