mirror of https://github.com/istio/istio.io.git
Enhance make test_status to list tested and untested docs (#7612)
* make test_status list tested and untested docs * remove bad file * add variable
This commit is contained in:
parent
1d96b295e0
commit
350752d3b5
|
@ -16,60 +16,90 @@
|
|||
|
||||
set -e
|
||||
|
||||
docs="content/en/docs"
|
||||
|
||||
red="tput setaf 1"
|
||||
green="tput setaf 2"
|
||||
reset="tput sgr0"
|
||||
|
||||
echo "Istio Documents Summary: \
|
||||
$(find content/en/docs -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print | wc -l) (tested) \
|
||||
$(find content/en/docs -name '*.md' -exec grep --quiet '^test: no$' {} \; -print | wc -l) (untested) \
|
||||
$(find content/en/docs -name '*.md' -exec grep --quiet '^test: n/a$' {} \; -print | wc -l) (n/a) \
|
||||
$(find content/en/docs -name '*.md' -print | wc -l) (total)"
|
||||
$(find "${docs}" -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print | wc -l) (tested) \
|
||||
$(find "${docs}" -name '*.md' -exec grep --quiet '^test: no$' {} \; -print | wc -l) (untested) \
|
||||
$(find "${docs}" -name '*.md' -exec grep --quiet '^test: n/a$' {} \; -print | wc -l) (n/a) \
|
||||
$(find "${docs}" -name '*.md' -print | wc -l) (total)"
|
||||
|
||||
echo ""
|
||||
echo "Tasks Docs"
|
||||
echo "=========="
|
||||
|
||||
echo "Summary: \
|
||||
$(find content/en/docs/tasks -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print | wc -l) (tested) \
|
||||
$(find content/en/docs/tasks -name '*.md' -exec grep --quiet '^test: no$' {} \; -print | wc -l) (untested) \
|
||||
$(find content/en/docs/tasks -name '*.md' -exec grep --quiet '^test: n/a$' {} \; -print | wc -l) (n/a)"
|
||||
$(find "${docs}/tasks" -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print | wc -l) (tested) \
|
||||
$(find "${docs}/tasks" -name '*.md' -exec grep --quiet '^test: no$' {} \; -print | wc -l) (untested) \
|
||||
$(find "${docs}/tasks" -name '*.md' -exec grep --quiet '^test: n/a$' {} \; -print | wc -l) (n/a)"
|
||||
|
||||
echo ""
|
||||
echo "Tested:"
|
||||
${green}
|
||||
find "${docs}/tasks" -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print
|
||||
${reset}
|
||||
echo "Untested:"
|
||||
find content/en/docs/tasks -name '*.md' -exec grep --quiet '^test: no$' {} \; -print
|
||||
${red}
|
||||
find "${docs}/tasks" -name '*.md' -exec grep --quiet '^test: no$' {} \; -print
|
||||
${reset}
|
||||
|
||||
echo ""
|
||||
echo "Examples Docs"
|
||||
echo "============="
|
||||
|
||||
echo "Summary: \
|
||||
$(find content/en/docs/examples -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print | wc -l) (tested) \
|
||||
$(find content/en/docs/examples -name '*.md' -exec grep --quiet '^test: no$' {} \; -print | wc -l) (untested) \
|
||||
$(find content/en/docs/examples -name '*.md' -exec grep --quiet '^test: n/a$' {} \; -print | wc -l) (n/a)"
|
||||
$(find "${docs}/examples" -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print | wc -l) (tested) \
|
||||
$(find "${docs}/examples" -name '*.md' -exec grep --quiet '^test: no$' {} \; -print | wc -l) (untested) \
|
||||
$(find "${docs}/examples" -name '*.md' -exec grep --quiet '^test: n/a$' {} \; -print | wc -l) (n/a)"
|
||||
|
||||
echo ""
|
||||
echo "Tested:"
|
||||
${green}
|
||||
find "${docs}/examples" -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print
|
||||
${reset}
|
||||
echo "Untested:"
|
||||
find content/en/docs/examples -name '*.md' -exec grep --quiet '^test: no$' {} \; -print
|
||||
${red}
|
||||
find "${docs}/examples" -name '*.md' -exec grep --quiet '^test: no$' {} \; -print
|
||||
${reset}
|
||||
|
||||
echo ""
|
||||
echo "Setup Docs"
|
||||
echo "=========="
|
||||
|
||||
echo "Summary: \
|
||||
$(find content/en/docs/setup -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print | wc -l) (tested) \
|
||||
$(find content/en/docs/setup -name '*.md' -exec grep --quiet '^test: no$' {} \; -print | wc -l) (untested) \
|
||||
$(find content/en/docs/setup -name '*.md' -exec grep --quiet '^test: n/a$' {} \; -print | wc -l) (n/a)"
|
||||
$(find "${docs}/setup" -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print | wc -l) (tested) \
|
||||
$(find "${docs}/setup" -name '*.md' -exec grep --quiet '^test: no$' {} \; -print | wc -l) (untested) \
|
||||
$(find "${docs}/setup" -name '*.md' -exec grep --quiet '^test: n/a$' {} \; -print | wc -l) (n/a)"
|
||||
|
||||
echo ""
|
||||
echo "Tested:"
|
||||
${green}
|
||||
find "${docs}/setup" -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print
|
||||
${reset}
|
||||
echo "Untested:"
|
||||
find content/en/docs/setup -name '*.md' -exec grep --quiet '^test: no$' {} \; -print
|
||||
${red}
|
||||
find "${docs}/setup" -name '*.md' -exec grep --quiet '^test: no$' {} \; -print
|
||||
${reset}
|
||||
|
||||
echo ""
|
||||
echo "Operations Docs"
|
||||
echo "==============="
|
||||
|
||||
echo "Summary: \
|
||||
$(find content/en/docs/ops -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print | wc -l) (tested) \
|
||||
$(find content/en/docs/ops -name '*.md' -exec grep --quiet '^test: no$' {} \; -print | wc -l) (untested) \
|
||||
$(find content/en/docs/ops -name '*.md' -exec grep --quiet '^test: n/a$' {} \; -print | wc -l) (n/a)"
|
||||
$(find "${docs}/ops" -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print | wc -l) (tested) \
|
||||
$(find "${docs}/ops" -name '*.md' -exec grep --quiet '^test: no$' {} \; -print | wc -l) (untested) \
|
||||
$(find "${docs}/ops" -name '*.md' -exec grep --quiet '^test: n/a$' {} \; -print | wc -l) (n/a)"
|
||||
|
||||
echo ""
|
||||
echo "Tested:"
|
||||
${green}
|
||||
find "${docs}/ops" -name '*.md' -exec grep --quiet '^test: yes$' {} \; -print
|
||||
${reset}
|
||||
echo "Untested:"
|
||||
find content/en/docs/ops -name '*.md' -exec grep --quiet '^test: no$' {} \; -print
|
||||
${red}
|
||||
find "${docs}/ops" -name '*.md' -exec grep --quiet '^test: no$' {} \; -print
|
||||
${reset}
|
||||
|
|
Loading…
Reference in New Issue