1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

more validation test fixups added duration info for the tests Daniel

* SAX.c parser.c valid.c: more validation test fixups
* check-xml-test-suite.py: added duration info for the tests
Daniel
This commit is contained in:
Daniel Veillard
2002-02-19 13:46:09 +00:00
parent d01fd3ed1f
commit 878eab04c0
6 changed files with 197 additions and 69 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/python
import sys
import time
import os
import string
sys.path.append("python")
@ -358,6 +359,8 @@ profile = testsuite.prop('PROFILE')
if profile != None:
print profile
start = time.time()
case = testsuite.children
while case != None:
global test_nr
@ -379,5 +382,5 @@ while case != None:
conf.freeDoc()
log.close()
print "Ran %d tests: %d suceeded, %d failed and %d generated an error" % (
test_nr, test_succeed, test_failed, test_error)
print "Ran %d tests: %d suceeded, %d failed and %d generated an error in %.2f s." % (
test_nr, test_succeed, test_failed, test_error, time.time() - start)