a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# This is the MS subset of the W3C test suite for XML Schemas.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# This file is generated from the MS W3c test suite description file.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("-b", "--base", action="store", type="string", dest="baseDir",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync help="""The base directory; i.e. the parent folder of the
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync "nisttest", "suntest" and "msxsdtest" directories.""")
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("-o", "--out", action="store", type="string", dest="logFile",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("--log", action="store_true", dest="enableLog",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("--no-test-out", action="store_true", dest="disableTestStdOut",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("-s", "--silent", action="store_true", dest="silent", default=False,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("-v", "--verbose", action="store_true", dest="verbose",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync help="Displays all tests (only if --silent is not set)")
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("-x", "--max", type="int", dest="maxTestCount",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("-t", "--test", type="string", dest="singleTest",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("--tsw", "--test-starts-with", type="string", dest="testStartsWith",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync help="Runs the specified test(s), starting with the given string")
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("--rieo", "--report-internal-errors-only", action="store_true",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync help="Display erroneous tests of type 'internal' only")
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("--rueo", "--report-unimplemented-errors-only", action="store_true",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync help="Display erroneous tests of type 'unimplemented' only")
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("--rmleo", "--report-mem-leak-errors-only", action="store_true",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync help="Display erroneous tests of type 'memory leak' only")
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("-c", "--combines", type="string", dest="combines",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("--csw", "--csw", type="string", dest="combineStartsWith",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("--rc", "--report-combines", action="store_true",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncopa.add_option("--rec", "--report-err-combines", action="store_true",
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync help="Displays info on the suite only. Does not run any test.")
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync################################################
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# The vars below are not intended to be changed.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncmsgSchemaNotValidButShould = "The schema should be valid."
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncmsgSchemaValidButShouldNot = "The schema should be invalid."
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncmsgInstanceNotValidButShould = "The instance should be valid."
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncmsgInstanceValidButShouldNot = "The instance should be invalid."
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync###################
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Helper functions.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync # <!-- groupName, Name, Accepted, File, Val, Descr
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync def __init__(self, isSchema, groupName, name, accepted, file, val, descr):
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync # Constructor.
global options
global options
global options
global options
global options
global options
global options
err = None
if (err is None):
return False
global options
global options
global options
# filePath = "%s/%s/%s/%s" % (options.baseDir, self.test_Folder, self.schema_Folder, self.schema_File)
schema = None
del ctxt
return schema
schema = None
if schema is None:
if (schema == None):
del schema
instance = None
schema = None
if (parserCtxt is None):
del parserCtxt
if instance is None:
if (validationCtxt is None):
del validationCtxt
del schema
if instance is not None:
return counters
return counters
if all:
elif combName is not None:
global options
if options.reportErrCombines and (counters[self.CNT_FAILED] == 0) and (counters[self.CNT_MEMLEAK] == 0):
global options
if (options.verbose or error) and (not options.reportInternalErrOnly) and (not options.reportMemLeakErrOnly) and (not options.reportUnimplErrOnly):
global options