CI; extract tests and perform syntax check

This commit is contained in:
Daniel Marjamäki 2021-05-14 13:55:25 +02:00
parent c29997b117
commit 5b3227db8d
1 changed files with 10 additions and 0 deletions

View File

@ -107,3 +107,13 @@ jobs:
run: | run: |
make -j$(nproc) run-dmake make -j$(nproc) run-dmake
git diff --exit-code git diff --exit-code
- name: extract tests and check syntax
run: |
mkdir temp1
python3 tools/extracttests.py --only-tp --code=temp1 test/testbufferoverrun.cpp
python3 tools/extracttests.py --only-tp --code=temp1 test/testnullpointer.cpp
python3 tools/extracttests.py --only-tp --code=temp1 test/testuninitvar.cpp
python3 tools/extracttests.py --only-tp --code=temp1 --check-function=functionVariableUsage test/testunusedvar.cpp
g++ -fsyntax-only temp1/*.cpp