mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Makes tests output buildbot friendly
This commit is contained in:
parent
c0ebd45a68
commit
8d9abfb46b
@ -44,20 +44,22 @@ MAINTAINERCLEANFILES = \
|
|||||||
ylwrap
|
ylwrap
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
cppcheck \
|
@cppcheck \
|
||||||
--suppressions-list=./test/cppcheck_suppressions.txt \
|
--suppressions-list=./test/cppcheck_suppressions.txt \
|
||||||
--enable=all \
|
--enable=all \
|
||||||
--inconclusive \
|
--inconclusive \
|
||||||
--template="{file},{line},{severity},{id},{message}" \
|
--template="warning: {file},{line},{severity},{id},{message}" \
|
||||||
-U YYSTYPE \
|
-U YYSTYPE \
|
||||||
-U YY_USER_INIT \
|
-U YY_USER_INIT \
|
||||||
--std=posix . 2> cppcheck.txt
|
--std=posix . 2> cppcheck.txt
|
||||||
cat cppcheck.txt
|
cat cppcheck.txt
|
||||||
|
|
||||||
|
check-static: cppcheck
|
||||||
|
|
||||||
check-style: check-coding-style
|
check-style: check-coding-style
|
||||||
|
|
||||||
check-coding-style:
|
check-coding-style:
|
||||||
-cpplint.py \
|
@cpplint.py \
|
||||||
$$(find . -name "*.h" -o -name "*.cc" | xargs) 2>&1 \
|
$$(find . -name "*.h" -o -name "*.cc" | xargs) 2>&1 \
|
||||||
| egrep -v $$(echo -n "catchall" ; \
|
| egrep -v $$(echo -n "catchall" ; \
|
||||||
for i in $$(cat test/coding_style_suppressions.txt); do echo -n "|"$$i; done) \
|
for i in $$(cat test/coding_style_suppressions.txt); do echo -n "|"$$i; done) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user