diff options
author | albert-github <albert.tests@gmail.com> | 2021-03-28 13:03:48 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2021-03-28 13:03:48 (GMT) |
commit | 16fd18f19fed94dfb5586a0e32cb9722a34be291 (patch) | |
tree | 9f60bad195efa0d09e22daf8d6f8a915b237df69 /testing/runtests.py | |
parent | cef71dc4fcfca9e3580214c39f20dc538ed6b2d9 (diff) | |
download | Doxygen-16fd18f19fed94dfb5586a0e32cb9722a34be291.zip Doxygen-16fd18f19fed94dfb5586a0e32cb9722a34be291.tar.gz Doxygen-16fd18f19fed94dfb5586a0e32cb9722a34be291.tar.bz2 |
Write out used settings when generating XML output
When generating XML output is is afterwards unknown which settings have been used to generate the XML output, e.g. whether `EXTRACT_PRIVATE` was set or not as the XML output tries to write out all information contained in the sources and not to limit it.
By writing out a Doxyfile.xml with all the used settings this can be overcome.
Diffstat (limited to 'testing/runtests.py')
-rwxr-xr-x | testing/runtests.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/runtests.py b/testing/runtests.py index f981c55..236a1c3 100755 --- a/testing/runtests.py +++ b/testing/runtests.py @@ -305,12 +305,39 @@ class Tester: msg += (xmllint_out,) failed_xmlxsd=True # + doxyfile_xml = [] + doxyfile_xml.append(glob.glob('%s/Doxyfile.xml' % (xmlxsd_output))) + doxyfile_xml.append(glob.glob('%s/*/*/Doxyfile.xml' % (xmlxsd_output))) + doxyfile_xml = ' '.join(list(itertools.chain.from_iterable(doxyfile_xml))).replace(self.args.outputdir +'/','').replace('\\','/') + doxyfile_xsd = [] + doxyfile_xsd.append(glob.glob('%s/doxyfile.xsd' % (xmlxsd_output))) + doxyfile_xsd.append(glob.glob('%s/*/*/doxyfile.xsd' % (xmlxsd_output))) + doxyfile_xsd = ' '.join(list(itertools.chain.from_iterable(doxyfile_xsd))).replace(self.args.outputdir +'/','').replace('\\','/') + exe_string = '%s --noout --schema %s %s' % (self.args.xmllint,doxyfile_xsd,doxyfile_xml) + exe_string1 = exe_string + exe_string += ' %s' % (redirx) + exe_string += ' %s more "%s/temp"' % (separ,xmlxsd_output) + + xmllint_out = xpopen(exe_string,exe_string1,getStderr=True) + if xmllint_out: + xmllint_out = re.sub(r'.*validates','',xmllint_out).rstrip('\n') + else: + msg += ('Failed to run %s with schema %s for files: %s' % (self.args.xmllint,doxyfile_xsd,doxyfile_xml),) + failed_xmlxsd=True + if xmllint_out: + xmllint_out = clean_header(xmllint_out) + if xmllint_out: + msg += (xmllint_out,) + failed_xmlxsd=True + # compound_xml = [] compound_xml.append(glob.glob('%s/*.xml' % (xmlxsd_output))) compound_xml.append(glob.glob('%s/*/*/*.xml' % (xmlxsd_output))) compound_xml = ' '.join(list(itertools.chain.from_iterable(compound_xml))).replace(self.args.outputdir +'/','').replace('\\','/') compound_xml = re.sub(r' [^ ]*/index.xml','',compound_xml) compound_xml = re.sub(r'[^ ]*/index.xml ','',compound_xml) + compound_xml = re.sub(r' [^ ]*/Doxyfile.xml','',compound_xml) + compound_xml = re.sub(r'[^ ]*/Doxyfile.xml ','',compound_xml) compound_xsd = [] compound_xsd.append(glob.glob('%s/compound.xsd' % (xmlxsd_output))) |