diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2018-09-15 16:01:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-15 16:01:49 (GMT) |
commit | c6892316233d5c03b1b2ce3ccff7ea9e36dbf628 (patch) | |
tree | 610f7ae30be2dec7f53fcee2ff966c6133fd8540 /testing | |
parent | 8176639e13357f74d317c631a5bf01a60bb543af (diff) | |
parent | 6c1c88f41aa68e6999bfa4b72e37c5a8034588a5 (diff) | |
download | Doxygen-c6892316233d5c03b1b2ce3ccff7ea9e36dbf628.zip Doxygen-c6892316233d5c03b1b2ce3ccff7ea9e36dbf628.tar.gz Doxygen-c6892316233d5c03b1b2ce3ccff7ea9e36dbf628.tar.bz2 |
Merge branch 'master' into feature/bug_tests_extensions
Diffstat (limited to 'testing')
-rw-r--r-- | testing/README.txt | 2 | ||||
-rw-r--r-- | testing/runtests.py | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/testing/README.txt b/testing/README.txt index e66632f..39b2345 100644 --- a/testing/README.txt +++ b/testing/README.txt @@ -32,6 +32,8 @@ optional parameters: --pdf create LaTeX output and create pdf from it --subdirs use the configuration parameter CREATE_SUBDIRS=YES --keep keep result directories + --cfg CFGS [CFGS ...] run test with extra doxygen configuration settings + (the option may be specified multiple times In case neither --xml, --pdf, --rtf, --docbook or --xhtml is used the default is set to --xml. The runtest.pl has the following dependencies on 3rd party tools: diff --git a/testing/runtests.py b/testing/runtests.py index be8aae9..452c36e 100644 --- a/testing/runtests.py +++ b/testing/runtests.py @@ -116,6 +116,12 @@ class Tester: print('LATEX_OUTPUT=%s/latex' % self.test_out, file=f) if self.args.subdirs: print('CREATE_SUBDIRS=YES', file=f) + if (self.args.cfgs): + for cfg in list(itertools.chain.from_iterable(self.args.cfgs)): + if cfg.find('=') == -1: + print("Not a doxygen configuration item, missing '=' sign: '%s'."%cfg) + sys.exit(1) + print(cfg, file=f) if 'check' not in self.config or not self.config['check']: print('Test doesn\'t specify any files to check') @@ -373,6 +379,9 @@ def main(): action="store_true") parser.add_argument('--keep',help='keep result directories', action="store_true") + parser.add_argument('--cfg',nargs='+',dest='cfgs',action='append',help= + 'run test with extra doxygen configuration settings ' + '(the option may be specified multiple times') test_flags = os.getenv('TEST_FLAGS', default='').split() args = parser.parse_args(test_flags + sys.argv[1:]) |