summaryrefslogtreecommitdiffstats
path: root/testing/runtests.py
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-09-15 11:19:07 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-09-15 11:19:07 (GMT)
commitbb23893d5d5267942092bb93fd22b14dea9c1135 (patch)
tree1fee1c0992fdddce8619acbdb79503af423fef50 /testing/runtests.py
parentaca45fd514cadc56ac277bd54f49604708ebbb5d (diff)
downloadDoxygen-bb23893d5d5267942092bb93fd22b14dea9c1135.zip
Doxygen-bb23893d5d5267942092bb93fd22b14dea9c1135.tar.gz
Doxygen-bb23893d5d5267942092bb93fd22b14dea9c1135.tar.bz2
Add possibility for adding doxygen configuration items to, all, tests during runtime.
Creating possibility to add extra doxygen configuration items to tests (e.g. QUIET=NO)
Diffstat (limited to 'testing/runtests.py')
-rw-r--r--testing/runtests.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/testing/runtests.py b/testing/runtests.py
index 9330d23..fa74627 100644
--- a/testing/runtests.py
+++ b/testing/runtests.py
@@ -82,6 +82,12 @@ class Tester:
if (self.args.pdf):
print('GENERATE_LATEX=YES', file=f)
print('LATEX_OUTPUT=%s/latex' % self.test_out, 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')
@@ -268,7 +274,7 @@ def main():
parser = argparse.ArgumentParser(description='run doxygen tests')
parser.add_argument('--updateref',help=
'update the reference files. Should be used in combination with -id to '
- 'update the reference file(s) for the given test',action="store_true")
+ 'update the reference file(s) for the given test',action="store_true")
parser.add_argument('--doxygen',nargs='?',default='doxygen',help=
'path/name of the doxygen executable')
parser.add_argument('--xmllint',nargs='?',default='xmllint',help=
@@ -293,6 +299,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:])