Commit 9dd8cf44 authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Updating tests

parent 01a3d69a
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -134,6 +134,7 @@ if __name__ == '__main__':


    syntaxErrors = 0
    syntaxErrors = 0
    
    
    print ("=============================")
    print ("XSD syntax checks:")
    print ("XSD syntax checks:")
    print ("-----------------------------")
    print ("-----------------------------")
    for file in includeFileList:
    for file in includeFileList:
@@ -148,9 +149,12 @@ if __name__ == '__main__':
    if (syntaxErrors > 0):
    if (syntaxErrors > 0):
        print (f"{syntaxErrors} syntax errors detected")
        print (f"{syntaxErrors} syntax errors detected")
        exit(syntaxErrors)
        exit(syntaxErrors)
    else:
        print ("0 syntax errors detected")


    results, schemaDict = ValidateXSDFiles(includeFileList)
    results, schemaDict = ValidateXSDFiles(includeFileList)
    
    
    print ("=============================")
    print ("XSD build checks:")
    print ("XSD build checks:")
    print ("-----------------------------")
    print ("-----------------------------")
    errorCount = 0
    errorCount = 0
@@ -171,6 +175,7 @@ if __name__ == '__main__':
    if (errorCount > 0):
    if (errorCount > 0):
        exit(errorCount)
        exit(errorCount)


    print ("=============================")
    print ("Instance document checks")
    print ("Instance document checks")
    print ("-----------------------------")
    print ("-----------------------------")
    errorCount = 0
    errorCount = 0
@@ -184,4 +189,5 @@ if __name__ == '__main__':
            errorCount += 1
            errorCount += 1
            print (f"  {instanceDoc} : {str(ex)}")
            print (f"  {instanceDoc} : {str(ex)}")
    print (f"{errorCount} instance doc errors detected")
    print (f"{errorCount} instance doc errors detected")
    print ("=============================")
    exit(errorCount)
    exit(errorCount)