Update of /cvsroot/monetdb/MonetDB/src/testing
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19407

Modified Files:
        Mtest.py.in 
Log Message:

in case the size of the test output is more than 50% off the size of the stable 
output,
we expect major differences, and hence do not try to create any (expensive) 
sophisticated
accurate minimal diff, but merely create a simply (inexpensive?) 
straight-forward diff.


Index: Mtest.py.in
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/testing/Mtest.py.in,v
retrieving revision 1.296
retrieving revision 1.297
diff -u -d -r1.296 -r1.297
--- Mtest.py.in 30 Aug 2007 00:07:33 -0000      1.296
+++ Mtest.py.in 5 Sep 2007 20:56:59 -0000       1.297
@@ -1860,8 +1860,19 @@
             diff_html.write('<!--MajorDiffs-->\n')
             diff_html.close()
             timedout = 1
-            if timeout == F_TIME: # test run timed out, expect major 
differences!
+            if timeout == F_TIME:
+                # test run timed out => expect major differences!
                 ACCURACYout = -1
+            else:
+                fs = open("%s%s.FILTERED" % (TST, STABLEout))
+                ft = open("%s.test.out.FILTERED" % TST)
+                szs = os.fstat(fs.fileno())[6]
+                szt = os.fstat(ft.fileno())[6]
+                fs.close()
+                ft.close()
+                if szt < szs*0.5 or szt > szs*1.5:
+                    # filesizes differ significantly => expect major 
differences!
+                    ACCURACYout = -1
             while timedout and MDIFF == MDIFF1:
                 if ACCURACYout == -1:
                     MDIFF = MDIFF0
@@ -1888,8 +1899,19 @@
             diff_html.write('<!--MajorDiffs-->\n')
             diff_html.close()
             timedout = 1
-            if timeout == F_TIME: # test run timed out, expect major 
differences!
+            if timeout == F_TIME:
+                # test run timed out => expect major differences!
                 ACCURACYerr = -1
+            else:
+                fs = open("%s%s.FILTERED" % (TST, STABLEerr))
+                ft = open("%s.test.err.FILTERED" % TST)
+                szs = os.fstat(fs.fileno())[6]
+                szt = os.fstat(ft.fileno())[6]
+                fs.close()
+                ft.close()
+                if szt < szs*0.5 or szt > szs*1.5:
+                    # filesizes differ significantly => expect major 
differences!
+                    ACCURACYerr = -1
             while timedout and MDIFF == MDIFF1:
                 if ACCURACYerr == -1:
                     MDIFF = MDIFF0


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to