Skip to content

Commit

Permalink
Debugging of tests
Browse files Browse the repository at this point in the history
Adding the option `--doxygen_dbg` to the test flags so it is easier to run standard doxygen debug on test like `TEST_FLAGS="--doxygen_dbg -d preprocessor`
  • Loading branch information
albert-github committed Apr 11, 2024
1 parent aa55cc8 commit 9cd7ada
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testing/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def prepare_test(self):
if (self.args.noredir):
redir=''

if os.system('%s %s/Doxyfile %s' % (self.args.doxygen,self.test_out,redir))!=0:
if os.system('%s %s %s/Doxyfile %s' % (self.args.doxygen,self.args.doxygen_dbg,self.test_out,redir))!=0:
print('Error: failed to run %s on %s/Doxyfile' % (self.args.doxygen,self.test_out))
sys.exit(1)

Expand Down Expand Up @@ -619,6 +619,8 @@ def main():
'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('--doxygen_dbg',nargs='?',default='',help=
'the doxygen debugging arguments')
parser.add_argument('--xmllint',nargs='?',default='xmllint',help=
'path/name of the xmllint executable')
parser.add_argument('--id',nargs='+',dest='ids',action='append',type=int,help=
Expand Down

0 comments on commit 9cd7ada

Please sign in to comment.