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
|
*.report
|
||||||
summary
|
summary
|
||||||
*.summary
|
*.summary
|
||||||
|
*.runerr
|
||||||
|
*.runlog
|
||||||
*.faillog
|
*.faillog
|
||||||
*.orig
|
*.orig
|
||||||
*~
|
*~
|
||||||
|
|
|
@ -33,22 +33,25 @@ doxygen:
|
||||||
@make -C $(DOCDIR) doxygen.log 2> doxygen.runerr > doxygen.runlog
|
@make -C $(DOCDIR) doxygen.log 2> doxygen.runerr > doxygen.runlog
|
||||||
|
|
||||||
summary: doxygen
|
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 ;\
|
1> summary; \
|
||||||
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 ; \
|
|
||||||
if [ -s doxygen.runerr ] ; then \
|
if [ -s doxygen.runerr ] ; then \
|
||||||
|
echo "doxygen: FAIL ಠ_ಠ\nDoxygen caused some runtime warnings. Please fix these." >> summary; \
|
||||||
echo "Runtime warnings:" >> summary; \
|
echo "Runtime warnings:" >> summary; \
|
||||||
cat doxygen.runerr >> summary; \
|
cat doxygen.runerr >> summary; \
|
||||||
echo >> summary; \
|
echo >> summary; \
|
||||||
fi ; \
|
fi ; \
|
||||||
if [ -s $(DOCDIR)/doxygen.log ] ; then \
|
if [ -s $(DOCDIR)/doxygen.log ] ; then \
|
||||||
|
echo "doxygen: FAIL ಠ_ಠ\nDoxygen caused some warnings. Please fix these." >> summary; \
|
||||||
echo "Warnings:" >> summary; \
|
echo "Warnings:" >> summary; \
|
||||||
cat $(DOCDIR)/doxygen.log >> summary; \
|
cat $(DOCDIR)/doxygen.log >> summary; \
|
||||||
fi ; \
|
fi ; \
|
||||||
|
if [ ! -s summary ] ; then \
|
||||||
|
echo "doxygen: OK\nDoxygen found no warnings" >> summary; \
|
||||||
|
fi ; \
|
||||||
cat summary \
|
cat summary \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@rm -f summary doxygen.runlog doxygen.runerr
|
||||||
@make -C $(DOCDIR) clean
|
@make -C $(DOCDIR) clean
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
134
|
|
Loading…
Reference in a new issue