/[gzz]/gzz/doc/pegboard/tests_output_cleanup--vegai/peg.rst
ViewVC logotype

Diff of /gzz/doc/pegboard/tests_output_cleanup--vegai/peg.rst

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by Vegai, Thu Jan 9 14:00:08 2003 UTC revision 1.2 by Vegai, Fri Jan 10 02:42:10 2003 UTC
# Line 9  PEG tests_output_cleanup--vegai: Cleanin Line 9  PEG tests_output_cleanup--vegai: Cleanin
9  :Scope:    Minor  :Scope:    Minor
10  :Type:     ?  :Type:     ?
11    
 SKELETON  
12    
13    Our tests' output is seriously cluttered. This PEG will propose standards
14    that, when implemented, will result in clean test output.
15    
16    Clean test output includes the test docstring -- which should take only one
17    line -- and the result ("ok", or "fail" and traceback, or a reason why the
18    test wasn't run).
19    
20    Problems
21    ========
22    
23    Listing individual problems from current (2003/01/09) test output.
24    
25    
26    1. When test cost is considered, output is bizarre::
27    
28        TEST COST  <function testStarts at 2220309> 10
29        TOO COSTLY TEST <function testStarts at 2220309>
30    
31    
32    2. Garbage when initalizing test.gfx::
33    
34        Init test.gfx
35        ['__doc__', '__file__', '__name__', '__path__', 'client', 'fuzzy', 'gfx',
36        'impl', 'media', 'util', 'vob']
37        ['GraphicsAPI', '__doc__', '__file__', '__name__', '__path__']
38        Jan 9, 2003 2:09:05 AM java.util.prefs.FileSystemPreferences$3 run
39        WARNING: Could not create system preferences directory. System preferences
40        are unusable.
41        GW:  gzz.client.awt.FrameScreen@85097d
42      
43    3. gzz/media/impl/PageImageScroll.java has pa()::
44    
45        Checked document of 0 pages
46    
47    4. Bizarre error again, not unlike 1.::
48    
49        TEST FAILS IN  <function testStripBlock at 4952321> *
50        NOT RUNNING DUE TO WRONG F:  <function testStripBlock at 4952321>
51    
52    5. test/tools/gfx.py outputs "CBCF init".
53    
54    6. Some of the tests output debug information, eg::
55    
56        Test space saving and re-loading ... []
57        [[[01F3F91514A6E80BCDFD6D978DACD0C40B4999DAF1]],
58        [[019FA251833B0791D550BE3D03EC67234BAACDADC1]],
59        [[01709BC0FC0687E569572437F562456C6D24FEC7FB]]]
60        [[[01F3F91514A6E80BCDFD6D978DACD0C40B4999DAF1]],
61        [[019FA251833B0791D550BE3D03EC67234BAACDADC1]],
62        [[01709BC0FC0687E569572437F562456C6D24FEC7FB]]]
63        [[[01F3F91514A6E80BCDFD6D978DACD0C40B4999DAF1]],
64        [[019FA251833B0791D550BE3D03EC67234BAACDADC1]],
65        [[01709BC0FC0687E569572437F562456C6D24FEC7FB]]]
66        [[[01F3F91514A6E80BCDFD6D978DACD0C40B4999DAF1]],
67        [[019FA251833B0791D550BE3D03EC67234BAACDADC1]],
68        [[01709BC0FC0687E569572437F562456C6D24FEC7FB]]]
69        SliceVersion([SliceVersion.Conn('urn:urn-5:7ZnIxDowCCU4ozTsf6oE45zIRTId:2',
70        'urn:urn-5:7ZnIxDowCCU4ozTsf6oE45zIRTId:1',
71        'urn:urn-5:7ZnIxDowCCU4ozTsf6oE45zIRTId:3')],
72        {urn:urn-5:7ZnIxDowCCU4ozTsf6oE45zIRTId:1=Enf1DImpl[null,SPAN1D(gzz.media.impl.TransientTextScroll@1e12e2c
73        0 3),null]})
74        ... (goes on and on)
75    
76    7. gzz/impl/mirror/MasterImpl.java outputs "Sending change:".
77    
78    8. Enfilades' test spurts weird things::
79    
80        Test enfilades consisting of no spans and a single span. ... Jan 9, 2003
81        2:09:36 AM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
82        WARNING: Could not lock System prefs.Unix error code 134984164.
83        Jan 9, 2003 2:09:36 AM java.util.prefs.FileSystemPreferences syncWorld
84        Jan 9, 2003 2:09:36 AM java.util.prefs.FileSystemPreferences syncWorld
85        WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException:
86        Couldn't get file lock.
87    
88    9. SolidBGVob test outputs debug information, and the same problem as in
89       8.::
90    
91        testSingle_solidbgvob (__main__.Boxcellview) ... Jan 9, 2003 2:10:06 AM
92        java.util.prefs.Fi
93        leSystemPreferences checkLockFile0ErrorCode
94        WARNING: Could not lock System prefs.Unix error code 134984164.
95        Jan 9, 2003 2:10:06 AM java.util.prefs.FileSystemPreferences syncWorld
96        WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException:
97        Couldn't get
98        file lock.
99        ok
100        testSingleNote (__main__.Coordinateplane) ... CBCF init
101        New note
102    
103        PLace
104        CPV: 'urn:urn-5:nbYfgs3K6YzPEUPJJ7vfLutFDZta:1' (Uusi paperi) null
105        CPV STEP: 'urn:urn-5:nbYfgs3K6YzPEUPJJ7vfLutFDZta:2' (FOO)
106        'urn:urn-5:nbYfgs3K6YzPEUPJJ7vf
107        LutFDZta:1' (Uusi paperi)
108        CPV: 'urn:urn-5:nbYfgs3K6YzPEUPJJ7vfLutFDZta:2' (FOO)
109        'urn:urn-5:nbYfgs3K6YzPEUPJJ7vfLutFD
110        Zta:3' (100)
111        CBCF getsize ('urn:urn-5:nbYfgs3K6YzPEUPJJ7vfLutFDZta:2' (FOO),
112        gzz.view.AbstractViewConte
113        xt@1349665, array([50.0, 50.0], float))
114        CPV PLACE: 100 200 50.0 50.0
115        Place:  1
116        CPV STEP: null 'urn:urn-5:nbYfgs3K6YzPEUPJJ7vfLutFDZta:1' (Uusi paperi)
117        Placed
118        ok
119    
120    
121    Solutions
122    =========
123    
124    1. New format for test cost output::
125    
126        [test method docstring] ... skipping (cost too high: 10).
127    
128    2. Fix init.gfx, it presumably outputs unwanted debug information.
129    
130    3. Fix method, debug information.
131    
132    4. What the blorg is "NOT RUNNING DUE TO WRONG F:"?!
133    
134    5. As in 3.
135    
136    6. Fix test, debug information.
137    
138    7. As in 5.
139    
140    8. No idea currently. Will check into it before this PEG is active.
141    
142    9. As in 7. and 8.
143    
144    
145    Alternative Solution
146    ====================
147    
148    Find a way to disable output during the tests.
149    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26