File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -683,6 +683,21 @@ jobs:
683683 # compile with verification and ast matchers
684684 make -j$(nproc) CXXOPTS="-Werror -g -O2" CPPOPTS="-DCHECK_INTERNAL -DHAVE_BOOST" MATCHCOMPILER=yes VERIFY=1
685685
686+ - name : Self check (output)
687+ run : |
688+ wget https://github.com/danmar/simplecpp/archive/refs/tags/1.5.1.tar.gz
689+ tar xvf 1.5.1.tar.gz
690+ # TODO: should include --verbose but identifiers in output differ on each run
691+ ./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
692+ diff -u selfcheck.exp selfcheck.res
693+
694+ # upload in failure case only. being able to just download the file, makes it easier to update the files in case of bigger changes
695+ - uses : actions/upload-artifact@v4
696+ if : failure()
697+ with :
698+ name : Actual output
699+ path : ./selfcheck.res
700+
686701 - name : CMake
687702 run : |
688703 cmake -S . -B cmake.output -DHAVE_RULES=On -DBUILD_TESTS=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
You can’t perform that action at this time.
0 commit comments