mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-02 09:10:24 +00:00
Add test script for doxygen warnings
This commit is contained in:
parent
5642833345
commit
9c81d0101d
|
@ -400,6 +400,12 @@ msg "test/build: declared and exported names" # < 3s
|
||||||
cleanup
|
cleanup
|
||||||
tests/scripts/check-names.sh
|
tests/scripts/check-names.sh
|
||||||
|
|
||||||
|
if which doxygen >/dev/null; then
|
||||||
|
msg "test: doxygen warnings" # ~ 3s
|
||||||
|
cleanup
|
||||||
|
tests/scripts/doxygen.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
|
|
25
tests/scripts/doxygen.sh
Executable file
25
tests/scripts/doxygen.sh
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Make sure the doxygen documentation builds without warnings
|
||||||
|
|
||||||
|
# Abort on errors (and uninitiliased variables)
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
if [ -d library -a -d include -a -d tests ]; then :; else
|
||||||
|
echo "Must be run from mbed TLS root" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if make apidoc > doc.out 2>doc.err; then :; else
|
||||||
|
cat doc.err
|
||||||
|
echo "FAIL" >&2
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if grep warning doc.out doc.err; then
|
||||||
|
echo "FAIL" >&2
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
make apidoc_clean
|
||||||
|
rm -f doc.out doc.err
|
Loading…
Reference in a new issue