diff options
author | Mike Hommey <mh@glandium.org> | 2004-10-13 08:57:08 +0000 |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2004-10-13 08:57:08 +0000 |
commit | 0732be88d054db33fa0ca479eab9988c8e6be42e (patch) | |
tree | 8b9cf70e04bd32115caebeb74cb0d841d1eced3b /check-xinclude-test-suite.py | |
parent | 09deb06614c3408ec0816a3c88920138bae2083c (diff) | |
download | libxml2-0732be88d054db33fa0ca479eab9988c8e6be42e.tar.gz |
Load /tmp/tmp.zzO3vU/libxml2-2.6.14 intoupstream/2.6.14
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'check-xinclude-test-suite.py')
-rwxr-xr-x | check-xinclude-test-suite.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/check-xinclude-test-suite.py b/check-xinclude-test-suite.py index c0af1f9..163ea32 100755 --- a/check-xinclude-test-suite.py +++ b/check-xinclude-test-suite.py @@ -82,6 +82,8 @@ def runTest(test, basedir): return -1 expected = None + outputfile = None + diff = None if type != 'error': output = test.xpathEval('string(output)') if output == 'No output file.': @@ -98,6 +100,7 @@ def runTest(test, basedir): try: f = open(output) expected = f.read() + outputfile = output except: print "Result for %s unreadable: %s" % (id, output) @@ -112,6 +115,8 @@ def runTest(test, basedir): result = doc.serialize() if result != expected: print "Result for %s differs" % (id) + open("xinclude.res", "w").write(result) + diff = os.popen("diff %s xinclude.res" % outputfile).read() doc.freeDoc() else: @@ -157,6 +162,9 @@ def runTest(test, basedir): log.write(" ----\n%s ----\n" % (error_msg)) error_msg = '' log.write("\n") + if diff != None: + log.write("diff from test %s:\n" %(id)) + log.write(" -----------\n%s\n -----------\n" % (diff)); return 0 |