2017-07-14 13:24:45 +00:00
|
|
|
#!/bin/bash -eu
|
|
|
|
|
2018-09-12 20:50:36 +00:00
|
|
|
FILENAME=../docsite/rst/dev_guide/testing/sanity/index.rst
|
|
|
|
|
|
|
|
cat <<- EOF >$FILENAME.new
|
2019-02-26 17:27:39 +00:00
|
|
|
.. _all_sanity_tests:
|
|
|
|
|
2017-07-14 13:24:45 +00:00
|
|
|
Sanity Tests
|
|
|
|
============
|
|
|
|
|
2018-03-14 19:44:21 +00:00
|
|
|
The following sanity tests are available as \`\`--test\`\` options for \`\`ansible-test sanity\`\`.
|
2019-03-21 05:14:22 +00:00
|
|
|
This list is also available using \`\`ansible-test sanity --list-tests --allow-disabled\`\`.
|
2018-03-14 19:44:21 +00:00
|
|
|
|
2019-02-26 17:27:39 +00:00
|
|
|
For information on how to run these tests, see :ref:\`sanity testing guide <testing_sanity>\`.
|
|
|
|
|
2018-03-14 19:44:21 +00:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
2019-03-21 05:14:22 +00:00
|
|
|
$(for test in $(../../test/runner/ansible-test sanity --list-tests --allow-disabled); do echo " ${test}"; done)
|
2017-07-14 13:24:45 +00:00
|
|
|
|
|
|
|
EOF
|
2018-09-12 20:50:36 +00:00
|
|
|
|
|
|
|
# Put file into place if it has changed
|
|
|
|
if [ "$(sha1sum <$FILENAME)" != "$(sha1sum <$FILENAME.new)" ]; then
|
|
|
|
mv -f $FILENAME.new $FILENAME
|
|
|
|
fi
|