aboutsummaryrefslogtreecommitdiffstats
path: root/check-relaxng-test-suite.py
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-02-20 15:03:22 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-02-20 15:03:22 +0000
commit77648bbe612564a11a26dc6b72b656bd85cbe858 (patch)
tree0dfb441921aec057613263469d19f5c7a260e618 /check-relaxng-test-suite.py
parent1c745ade5d5766aae34f6b05bc2780ae2daa7483 (diff)
downloadandroid_external_libxml2-77648bbe612564a11a26dc6b72b656bd85cbe858.tar.gz
android_external_libxml2-77648bbe612564a11a26dc6b72b656bd85cbe858.tar.bz2
android_external_libxml2-77648bbe612564a11a26dc6b72b656bd85cbe858.zip
implemented the checks from section 7.1, fixed some of the 4.20 and 4.21
* relaxng.c: implemented the checks from section 7.1, fixed some of the 4.20 and 4.21 problems. found 373 test schemas: 338 success 35 failures found 529 test instances: 519 success 6 failures * result/relaxng/*: updated the results Daniel
Diffstat (limited to 'check-relaxng-test-suite.py')
-rwxr-xr-xcheck-relaxng-test-suite.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/check-relaxng-test-suite.py b/check-relaxng-test-suite.py
index 3cd328a6..5363a818 100755
--- a/check-relaxng-test-suite.py
+++ b/check-relaxng-test-suite.py
@@ -254,9 +254,10 @@ def handle_testCase(node):
global nb_instances_tests
global resources
- log.write("\n ============= test %d line %d ================\n" % (
+ sections = node.xpathEval('string(section)')
+ log.write("\n ======== test %d line %d section %s ==========\n" % (
- nb_schemas_tests, node.lineNo()))
+ nb_schemas_tests, node.lineNo(), sections))
resources = {}
if debug:
print "test %d line %d" % (nb_schemas_tests, node.lineNo())
@@ -320,7 +321,7 @@ def handle_testSuite(node, level = 0):
msg = msg + author.content + " "
print msg
sections = node.xpathEval('section')
- if sections != []:
+ if sections != [] and level <= 0:
msg = ""
for section in sections:
msg = msg + section.content + " "
@@ -332,6 +333,10 @@ def handle_testSuite(node, level = 0):
if level >= 1 and sections != []:
+ msg = ""
+ for section in sections:
+ msg = msg + section.content + " "
+ print "Result of tests for section %s" % (msg)
if nb_schemas_tests != old_schemas_tests:
print "found %d test schemas: %d success %d failures" % (
nb_schemas_tests - old_schemas_tests,