summaryrefslogtreecommitdiffstats
path: root/testing/runtests.py
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-09-15 16:01:49 (GMT)
committerGitHub <noreply@github.com>2018-09-15 16:01:49 (GMT)
commitc6892316233d5c03b1b2ce3ccff7ea9e36dbf628 (patch)
tree610f7ae30be2dec7f53fcee2ff966c6133fd8540 /testing/runtests.py
parent8176639e13357f74d317c631a5bf01a60bb543af (diff)
parent6c1c88f41aa68e6999bfa4b72e37c5a8034588a5 (diff)
downloadDoxygen-c6892316233d5c03b1b2ce3ccff7ea9e36dbf628.zip
Doxygen-c6892316233d5c03b1b2ce3ccff7ea9e36dbf628.tar.gz
Doxygen-c6892316233d5c03b1b2ce3ccff7ea9e36dbf628.tar.bz2
Merge branch 'master' into feature/bug_tests_extensions
Diffstat (limited to 'testing/runtests.py')
-rw-r--r--testing/runtests.py9
1 files changed, 9 insertions, 0 deletions
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:])