diff --git a/tox.ini b/tox.ini index e2f56bca0..9f2f01e72 100644 --- a/tox.ini +++ b/tox.ini @@ -61,6 +61,7 @@ commands = neutron-db-manage --subproject networking-odl check_migration {[testenv:genconfig]commands} {[testenv:bashate]commands} + {[testenv:capitald]commands} whitelist_externals = bash mkdir @@ -113,6 +114,26 @@ commands = bash -c "find {toxinidir} \ -print0 | xargs -0 bashate -v -iE006 -eE005,E042,E043" whitelist_externals = bash +[testenv:capitald] +usedevelop = False +skip_install = True +deps = +# Check if "Opendaylight" word is in any file +# Only "OpenDaylight" (with uppercase 'D') should be used +commands = bash -c "! grep \ + --exclude-dir='.*' \ + --exclude-dir='cover' \ + --exclude-dir='__pycache__' \ + --exclude='tox.ini' \ + --exclude='ChangeLog' \ + --exclude='*.py' \ + --exclude='*.pyc' \ + --recursive \ + --line-number \ + Opendaylight \ + {toxinidir}" +whitelist_externals = bash + [testenv:genconfig] deps = -r{toxinidir}/requirements.txt commands =