diff options
author | albert-github <albert.tests@gmail.com> | 2020-12-18 16:29:17 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-12-18 16:29:17 (GMT) |
commit | 9c96716dc6ace56f8ed210789ce1c49e39f7c638 (patch) | |
tree | beade725262f476319df4f592dcfe4e67ce940eb /testing | |
parent | d76b1ec4a5f009251dc6e4904454c9f40216e874 (diff) | |
download | Doxygen-9c96716dc6ace56f8ed210789ce1c49e39f7c638.zip Doxygen-9c96716dc6ace56f8ed210789ce1c49e39f7c638.tar.gz Doxygen-9c96716dc6ace56f8ed210789ce1c49e39f7c638.tar.bz2 |
Extend tests with some other default tests
During the change to GitHub Actions the extra tests as added in #8217 were lost:
Extend tests with generating xhtml, docbook, rtf to see if the files can be generated and build, not for Windows as it loos like that the "latex" command cannot always be run (problems with test 28).
Check also the generated xsd files in xml mode.
Note for the new checks no comparison is done with previous versions.
Diffstat (limited to 'testing')
-rwxr-xr-x | testing/runtests.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/runtests.py b/testing/runtests.py index 1e17cc9..fde252d 100755 --- a/testing/runtests.py +++ b/testing/runtests.py @@ -35,6 +35,26 @@ def xpopen(cmd, cmd1="",encoding='utf-8-sig', getStderr=False): proc = subprocess.Popen(shlex.split(cmd),stdout=subprocess.PIPE,stderr=subprocess.PIPE,encoding=encoding) # Python 3 with encoding return proc.stdout.read() +def clean_header(errmsg): + # messages (due to the usage of more) have a contents like: + # :::::::::::: + # <file name> + # :::::::::::: + # we want to skip these + msg = errmsg.split('\n') + rtnmsg = "" + cnt = -1 + for o in msg: + if (o): + if (cnt == -1): + if o.startswith(":::::::"): + cnt = 3 + if (cnt > 0): + cnt-=1 + else: + rtnmsg+=0 + return rtnmsg + class Tester: def __init__(self,args,test): self.args = args @@ -280,6 +300,8 @@ class Tester: msg += ('Failed to run %s with schema %s for files: %s' % (self.args.xmllint,index_xsd,index_xml),) failed_xmlxsd=True if xmllint_out: + xmllint_out = clean_header(xmllint_out) + if xmllint_out: msg += (xmllint_out,) failed_xmlxsd=True # @@ -306,6 +328,8 @@ class Tester: msg += ('Failed to run %s with schema %s for files: %s' % (self.args.xmllint,compound_xsd,compound_xml),) failed_xmlxsd=True if xmllint_out: + xmllint_out = clean_header(xmllint_out) + if xmllint_out: msg += (xmllint_out,) failed_xmlxsd=True @@ -338,6 +362,8 @@ class Tester: xmllint_out = xpopen(exe_string,exe_string1,getStderr=True) xmllint_out = self.cleanup_xmllint_docbook(xmllint_out) if xmllint_out: + xmllint_out = clean_header(xmllint_out) + if xmllint_out: msg += (xmllint_out,) failed_docbook=True elif not self.args.keep: @@ -361,6 +387,8 @@ class Tester: xmllint_out = xpopen(exe_string,exe_string1,getStderr=True) xmllint_out = self.cleanup_xmllint(xmllint_out) if xmllint_out: + xmllint_out = clean_header(xmllint_out) + if xmllint_out: msg += (xmllint_out,) failed_html=True elif not self.args.keep: @@ -481,6 +509,7 @@ class TestManager: shutil.copytree(self.args.inputdir+"/dtd", "dtd") def split_and_keep(s,sep): + s = s.replace('"','') # add token separator s = s.replace(sep,'\0'+sep) # add token separator s = s.split('\0') # split by null delimiter s = [x.strip() for x in filter(None,s)] # strip and remove empty elements |