GitLab CI: Check the ASN.1 dissectors consistency
Regenerate the ASN.1 dissectors in the Code Checks job, and fail if any tracked files have changes after doing so. This should make it impossible to commit changed to ASN.1 dissectors without corresponding changes to the templates and conformance files, and vice versa. (Perhaps the generated files shouldn't even be in git.)
This commit is contained in:
parent
edcfbb06d2
commit
d6d34fc60d
|
@ -582,6 +582,10 @@ Clang + Code Checks:
|
|||
# We don't have an "All options" job, so build fuzzshark and tfshark here.
|
||||
- cmake -DENABLE_CHECKHF_CONFLICT=on -DCMAKE_EXPORT_COMPILE_COMMANDS=on -DBUILD_fuzzshark=ON -DBUILD_tfshark=On -DBUILD_logray=ON -DENABLE_CCACHE=ON -DENABLE_WERROR=ON -G Ninja ..
|
||||
- printf "\e[0Ksection_end:%s:cmake_section\r\e[0K" "$( date +%s)"
|
||||
- printf "\e[0Ksection_start:%s:asn1_section[collapsed=true]\r\e[0KRegenerating ASN.1 dissectors" "$( date +%s)"
|
||||
- ninja asn1
|
||||
- git diff --exit-code ${CI_COMMIT_SHA} ..
|
||||
- printf "\e[0Ksection_end:%s:asn1_section\r\e[0K" "$( date +%s)"
|
||||
- mkdir ../html
|
||||
- script --command ninja --flush --quiet --return ../tmp_clang_report.txt
|
||||
- ansi2txt < ../tmp_clang_report.txt > ../clang_report.txt
|
||||
|
|
Loading…
Reference in New Issue