Tools used by OpenStack Documentation
Go to file
Andreas Jaeger 6d555db21a Improve validation tools
To use test.py in gating jobs, two options have been added that
set default values. That way, we can have in the Jenkins files
only the master switch and can control ourselves if we want to
change what exactly is run as part of such a gate job.

For validation we do not recurse the whole tree anymore
if we only validate single files.

A verbose mode has been added.
Each pass shows now the number of files processed and only outputs
filenames if --verbose is given.
Additionally, formatting has been cleaned up by using pylint and pep8.
pep8 reports no warnings or errors now.

Example outputs of test.py:
$ tools/test.py --job-niceness

Validating files...
  config-reference/ch_networkingconfigure.xml: trailing or unnecessary
whitespaces found in lines: 13
...
Validation failed, validated 14 files.

$ tools/test.py --job-build

Checking that no removed files are referenced...
Passed removed file check, 41 files were removed, 627 files checked.

Validating files...
Validation passed, validated 14 files.

Queuing the following books for building:
  config-reference
  install-guide
  admin-guide-network
Building all books now...
>>> Build of book admin-guide-network succeeded.
>>> Build of book install-guide succeeded.
>>> Build of book config-reference succeeded.

Change-Id: Ia443553b6c774df7e72ef7c0d8768badfb34bc6d
2013-09-22 20:42:32 +02:00
autogenerate-config-docs Modularize cinder tables and use them in Config Guide 2013-09-21 14:21:46 +02:00
cleanup added scripts to cleanup spaces in XML files 2013-08-15 11:42:12 +02:00
generatedocbook Update generatedocbook 2013-05-10 03:53:01 +08:00
generatepot Add slicing tool to the master branch 2013-03-14 10:53:54 +08:00
test.py Improve validation tools 2013-09-22 20:42:32 +02:00
validate.py Improve validation tools 2013-09-22 20:42:32 +02:00