diff --git a/testing/runtests.py b/testing/runtests.py index 840f92e03e8..7d271763c74 100755 --- a/testing/runtests.py +++ b/testing/runtests.py @@ -160,6 +160,12 @@ def prepare_test(self): print('RTF_OUTPUT=%s/rtf' % self.test_out, file=f) else: print('GENERATE_RTF=NO', file=f) + if (self.args.man): + print('GENERATE_MAN=YES', file=f) + print('MAN_LINKS=YES', file=f) + print('MAN_OUTPUT=%s/man' % self.test_out, file=f) + else: + print('GENERATE_MAN=NO', file=f) if (self.args.docbook): print('GENERATE_DOCBOOK=YES', file=f) print('DOCBOOK_OUTPUT=%s/docbook' % self.test_out, file=f) @@ -285,6 +291,7 @@ def perform_test(self,testmgr): failed_latex=False failed_docbook=False failed_rtf=False + failed_man=False failed_xmlxsd=False msg = () # look for files to check against the reference @@ -422,6 +429,9 @@ def perform_test(self,testmgr): msg += (msg1,) failed_rtf=True + if (self.args.man): + pass + if (self.args.docbook): docbook_output='%s/docbook' % self.test_out if (sys.platform == 'win32'): @@ -528,7 +538,7 @@ def perform_test(self,testmgr): if failed_warn: msg += (warnings,) - if failed_warn or failed_xml or failed_html or failed_qhp or failed_latex or failed_docbook or failed_rtf or failed_xmlxsd: + if failed_warn or failed_xml or failed_html or failed_qhp or failed_latex or failed_docbook or failed_rtf or failed_xmlxsd or failed_man: testmgr.ok(False,self.test_name,msg) return False @@ -648,6 +658,8 @@ def main(): 'create docbook output and check with xmllint',action="store_true") parser.add_argument('--xhtml',help= 'create xhtml output and check with xmllint',action="store_true") + parser.add_argument('--man',help= + 'create man output',action="store_true") parser.add_argument('--qhp',help= 'create qhp output and check with xmllint',action="store_true") parser.add_argument('--xmlxsd',help= @@ -670,7 +682,7 @@ def main(): args = parser.parse_args(test_flags + sys.argv[1:]) # sanity check - if (not args.xml) and (not args.pdf) and (not args.xhtml) and (not args.qhp) and (not args.docbook and (not args.rtf) and (not args.xmlxsd)): + if (not args.xml) and (not args.pdf) and (not args.xhtml) and (not args.qhp) and (not args.docbook and (not args.rtf) and (not args.xmlxsd) and (not args.man)): args.xml=True if (not args.updateref is None) and (args.ids is None) and (args.all is None): parser.error('--updateref requires either --id or --all')