Lines Matching refs:test

4 # This is the MS subset of the W3C test suite for XML Schemas.
5 # This file is generated from the MS W3c test suite description file.
20 default="test.log",
27 opa.add_option("--no-test-out", action="store_true", dest="disableTestStdOut",
29 help="Don't output test results")
42 opa.add_option("-t", "--test", type="string", dest="singleTest",
44 help="Runs the specified test only")
46 opa.add_option("--tsw", "--test-starts-with", type="string", dest="testStartsWith",
48 help="Runs the specified test(s), starting with the given string")
84 help="Displays info on the suite only. Does not run any test.")
90 help="Display the test name in every case.")
115 def handleError(test, msg):
118 test.addLibLog("'%s' LIB: %s" % (test.name, msg))
120 test.failUnimplemented()
122 test.failInternal()
192 # Get the test-group.
217 raise Exception("Could not compute the combine name of a test.")
316 """Runs a test."""
485 def addTest(self, test):
486 self.testList.append(test)
487 test.initTest(self)
495 def updateCounters(self, test, counters):
496 if test.memLeak != 0:
498 if not test.failed:
500 if test.failed:
502 if test.bad:
504 if test.unimplemented:
506 if test.internalErr:
508 if test.noSchemaErr:
510 if test.excepted:
512 if not test.accepted:
514 if test.isSchema:
574 for test in self.combinesRan[combName]:
577 counters = self.updateCounters(test, counters)
585 def displayTestLog(self, test):
586 sys.stdout.writelines(test.log)
589 def reportTest(self, test):
592 error = test.failed or test.memLeak != 0
598 self.logFile.writelines(test.log)
605 if options.reportInternalErrOnly and test.internalErr:
606 self.displayTestLog(test)
607 if options.reportMemLeakErrOnly and test.memLeak != 0:
608 self.displayTestLog(test)
609 if options.reportUnimplErrOnly and test.unimplemented:
610 self.displayTestLog(test)
612 self.displayTestLog(test)
615 def addToCombines(self, test):
617 if self.combinesRan.has_key(test.combineName):
618 self.combinesRan[test.combineName].append(test)
620 self.combinesRan[test.combineName] = [test]
627 for test in self.testList:
628 self.addToCombines(test)
636 for test in self.testList:
642 if (test.name != options.singleTest):
645 if not options.combines.__contains__(test.combineName):
648 if not test.name.startswith(options.testStartsWith):
651 if not test.combineName.startswith(options.combineStartsWith):
661 test.setUp()
663 test.run()
665 test.tearDown()
670 test.finalize()
671 self.reportTest(test)
673 self.addToCombines(test)
674 self.counters = self.updateCounters(test, self.counters)