summaryrefslogtreecommitdiff
path: root/tests/validate_docs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validate_docs.sh')
-rwxr-xr-xtests/validate_docs.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/validate_docs.sh b/tests/validate_docs.sh
index d5ee07a..81cef67 100755
--- a/tests/validate_docs.sh
+++ b/tests/validate_docs.sh
@@ -6,7 +6,7 @@
# sanity check: make sure none have disappeared, as might happen from a reformat.
count=$(sed -n 's/[ ]\+{"\([a-z0-9-]\+\)", YAML_[A-Z]\+_NODE.*/\1/p' src/parse.c | sort | wc -l)
# 144 is based on 0.99+da6f776 definitions, and should be updated periodically.
-if [ $count -lt 144 ]; then
+if [ $count -lt 202 ]; then
echo "ERROR: fewer YAML keys defined in src/parse.c than expected!"
echo " Has the file been reformatted or refactored? If so, modify"
echo " validate_docs.sh appropriately."
@@ -16,13 +16,13 @@ fi
# iterate through the keys
for term in $(sed -n 's/[ ]\+{"\([a-z0-9-]\+\)", YAML_[A-Z]\+_NODE.*/\1/p' src/parse.c | sort | uniq); do
# it can be documented in the following ways.
- # 1. "Properties for device type ``blah:``
- if egrep "## Properties for device type \`\`$term:\`\`" doc/netplan.md > /dev/null; then
+ # 1. "Properties for device type `blah:`
+ if egrep "## Properties for device type \`$term:\`" doc/netplan-yaml.md > /dev/null; then
continue
fi
- # 2. "[blah, ]``blah``[, ``blah2``]: (scalar|bool|...)
- if egrep "\`\`$term\`\`.*\((scalar|bool|mapping|sequence of scalars|sequence of mappings|sequence of sequence of scalars)" doc/netplan.md > /dev/null; then
+ # 2. "[blah, ]**blah**[, **blah2**]: (scalar|bool|...)
+ if egrep "\*\*$term\*\*.*\((scalar|bool|mapping|sequence of scalars|sequence of mappings|sequence of sequence of scalars)" doc/netplan-yaml.md > /dev/null; then
continue
fi