From 1d552e7583b29d52fef0c2d7eebb5adb682622b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 4 Jan 2016 16:49:09 +0100 Subject: [PATCH] Add test script for doxygen warnings --- tests/scripts/all.sh | 6 ++++++ tests/scripts/doxygen.sh | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100755 tests/scripts/doxygen.sh diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index d96615b480..421adc3444 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -83,6 +83,12 @@ msg "test/build: declared and exported names" # < 3s cleanup tests/scripts/check-names.sh +if which doxygen >/dev/null; then + msg "test: doxygen warnings" # ~ 3s + cleanup + tests/scripts/doxygen.sh +fi + msg "build: create and build yotta module" # ~ 30s cleanup tests/scripts/yotta-build.sh diff --git a/tests/scripts/doxygen.sh b/tests/scripts/doxygen.sh new file mode 100755 index 0000000000..5a00c90b73 --- /dev/null +++ b/tests/scripts/doxygen.sh @@ -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