doxygen regression test: Tolerate only warning-free builds
This commit simplifies the regression test for the doxygen build to allow only 0 warnings. Clean doxygen.runlog and doxygen.runerr for clean target and ignore them in .gitignore.
This commit is contained in:
parent
9bb3a3a235
commit
d0e9cd18c7
2
.gitignore
vendored
2
.gitignore
vendored
@ -32,6 +32,8 @@
|
||||
*.report
|
||||
summary
|
||||
*.summary
|
||||
*.runerr
|
||||
*.runlog
|
||||
*.faillog
|
||||
*.orig
|
||||
*~
|
||||
|
@ -33,22 +33,25 @@ doxygen:
|
||||
@make -C $(DOCDIR) doxygen.log 2> doxygen.runerr > doxygen.runlog
|
||||
|
||||
summary: doxygen
|
||||
@( doxyerr=`cat doxyerrors.cnt`; curerr=`cat $(DOCDIR)/doxygen.log | grep ": warning: " | wc -l` ; delta=`expr $$curerr - $$doxyerr`; \
|
||||
if [ $$delta -lt 0 ] ; then echo "doxygen: FAIL ಠ_ಠ\nCongratulations you fixed `expr $$delta \"*\" -1 ` of doxyen's warnings (old: $$doxyerr new: $$curerr). Please adjust regression-tests/00-doxygen/doxyerrors.cnt accordingly." > summary; fi ;\
|
||||
if [ $$delta -gt 0 ] ; then echo "doxygen: FAIL ಠ_ಠ\nYou increased the number of warnings caused by doxygen by $$delta (old: $$doxyerr new: $$curerr). Please fix these." > summary; fi ; \
|
||||
if [ $$delta -eq 0 ] ; then echo "doxygen: OK\nDoxygen found $$doxyerr errors" > summary ; fi ; \
|
||||
@( \
|
||||
1> summary; \
|
||||
if [ -s doxygen.runerr ] ; then \
|
||||
echo "doxygen: FAIL ಠ_ಠ\nDoxygen caused some runtime warnings. Please fix these." >> summary; \
|
||||
echo "Runtime warnings:" >> summary; \
|
||||
cat doxygen.runerr >> summary; \
|
||||
echo >> summary; \
|
||||
fi ; \
|
||||
if [ -s $(DOCDIR)/doxygen.log ] ; then \
|
||||
echo "doxygen: FAIL ಠ_ಠ\nDoxygen caused some warnings. Please fix these." >> summary; \
|
||||
echo "Warnings:" >> summary; \
|
||||
cat $(DOCDIR)/doxygen.log >> summary; \
|
||||
fi ; \
|
||||
if [ ! -s summary ] ; then \
|
||||
echo "doxygen: OK\nDoxygen found no warnings" >> summary; \
|
||||
fi ; \
|
||||
cat summary \
|
||||
)
|
||||
|
||||
|
||||
clean:
|
||||
@rm -f summary doxygen.runlog doxygen.runerr
|
||||
@make -C $(DOCDIR) clean
|
||||
|
@ -1 +0,0 @@
|
||||
134
|
Loading…
Reference in New Issue
Block a user