Loading testing/check_xsd.py +6 −0 Original line number Diff line number Diff line Loading @@ -134,6 +134,7 @@ if __name__ == '__main__': syntaxErrors = 0 print ("=============================") print ("XSD syntax checks:") print ("-----------------------------") for file in includeFileList: Loading @@ -148,9 +149,12 @@ if __name__ == '__main__': if (syntaxErrors > 0): print (f"{syntaxErrors} syntax errors detected") exit(syntaxErrors) else: print ("0 syntax errors detected") results, schemaDict = ValidateXSDFiles(includeFileList) print ("=============================") print ("XSD build checks:") print ("-----------------------------") errorCount = 0 Loading @@ -171,6 +175,7 @@ if __name__ == '__main__': if (errorCount > 0): exit(errorCount) print ("=============================") print ("Instance document checks") print ("-----------------------------") errorCount = 0 Loading @@ -184,4 +189,5 @@ if __name__ == '__main__': errorCount += 1 print (f" {instanceDoc} : {str(ex)}") print (f"{errorCount} instance doc errors detected") print ("=============================") exit(errorCount) Loading
testing/check_xsd.py +6 −0 Original line number Diff line number Diff line Loading @@ -134,6 +134,7 @@ if __name__ == '__main__': syntaxErrors = 0 print ("=============================") print ("XSD syntax checks:") print ("-----------------------------") for file in includeFileList: Loading @@ -148,9 +149,12 @@ if __name__ == '__main__': if (syntaxErrors > 0): print (f"{syntaxErrors} syntax errors detected") exit(syntaxErrors) else: print ("0 syntax errors detected") results, schemaDict = ValidateXSDFiles(includeFileList) print ("=============================") print ("XSD build checks:") print ("-----------------------------") errorCount = 0 Loading @@ -171,6 +175,7 @@ if __name__ == '__main__': if (errorCount > 0): exit(errorCount) print ("=============================") print ("Instance document checks") print ("-----------------------------") errorCount = 0 Loading @@ -184,4 +189,5 @@ if __name__ == '__main__': errorCount += 1 print (f" {instanceDoc} : {str(ex)}") print (f"{errorCount} instance doc errors detected") print ("=============================") exit(errorCount)