Commit 2270e28f authored by Mark Andrews's avatar Mark Andrews
Browse files

have CI call util/check-categories.sh

parent 848fe7c4
Pipeline #41375 failed with stages
in 25 minutes and 2 seconds
......@@ -397,6 +397,7 @@ misc:
- xmllint --noout --nonet `git ls-files '*.xml' '*.docbook'`
- xmllint --noout --nonet --html `git ls-files '*.html'`
- sh util/check-win32util-configure
- sh util/check-categories.sh
needs: []
artifacts:
paths:
......
......@@ -13,6 +13,7 @@ sed -e 's/.*LOGCATEGORY_\([A-Z_]*\).*/\1/' -e 's/^RRL$/rate-limit/' |
tr '[A-Z]' '[a-z]' |
tr _ - | sed 's/^tat$/trust-anchor-telemetry/' | sort -u`
list2=`sed -n 's;.*<para><command>\(.*\)</command></para>;\1;p' doc/arm/logging-categories.xml | tr '[A-Z]' '[a-z]' | sort -u`
status=0
for i in $list1
do
ok=no
......@@ -26,6 +27,7 @@ do
if test $ok = no
then
echo "$i missing from documentation."
status=1
fi
done
for i in $list2
......@@ -41,5 +43,7 @@ do
if test $ok = no
then
echo "$i not in code."
status=1
fi
done
exit $status
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment