Annotation of XML/RunTests, revision 1.11
1.1 daniel 1: #!/bin/sh
1.6 daniel 2: HTMLLOG="result/conf/log.html"
3: HTMLSUM="result/conf/result.html"
1.2 daniel 4: mkdir -p result/conf/oasis >& /dev/null
1.4 daniel 5: touch .memdump
1.2 daniel 6:
1.6 daniel 7: echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"' > $HTMLLOG
8: echo ' "http://www.w3.org/TR/REC-html40/loose.dtd">' >> $HTMLLOG
1.7 daniel 9: echo '<html><head><title>OASIS test full log</title></head>' >> $HTMLLOG
10: echo '<body bgcolor="#ffffff"><h1 align="center">OASIS test full log</h1>' >> $HTMLLOG
11: echo '<h3><a href="result.html">Sumary</a></h3>' >> $HTMLLOG
1.6 daniel 12:
13: echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"' > $HTMLSUM
14: echo ' "http://www.w3.org/TR/REC-html40/loose.dtd">' >> $HTMLSUM
1.7 daniel 15: echo '<html><head><title>OASIS test sumary</title></head>' >> $HTMLSUM
16: echo '<body bgcolor="#ffffff"><h1 align="center">OASIS test sumary</h1>' >> $HTMLSUM
17: echo '<h3><a href="log.html">Complete output (long!)</a></h3>' >> $HTMLSUM
1.5 daniel 18: tfailed="0"
19: total="0"
20:
1.1 daniel 21: failed="0"
22: tests="0"
1.2 daniel 23: echo Oasis positive tests
1.7 daniel 24: echo '<h3>Oasis positive tests</h2>' >> $HTMLLOG
25: echo '<h3>Oasis positive tests</h2>' >> $HTMLSUM
1.1 daniel 26: for i in conf/oasis/*pass*.xml
27: do
28: name=`basename $i .xml`
1.10 daniel 29: ./tester --nowarning --nowarning --noout $i 2> result/conf/oasis/$name.err > /dev/null
1.2 daniel 30: if [ -s result/conf/oasis/$name.err ]
1.1 daniel 31: then
1.9 daniel 32: echo "<h3><a href='log.html#op$name'>$i test failed</a></h3>" >> $HTMLSUM
33: echo "<h3><a name='op$name'></a>$i test failed</h3>" >> $HTMLLOG
1.1 daniel 34: failed=`expr $failed + 1`
1.10 daniel 35: ./tester --nowarning --htmlout --nowrap --nowarning --noout $i 2>> $HTMLLOG
1.2 daniel 36: else
37: rm -f result/conf/oasis/$name.err
1.1 daniel 38: fi
1.2 daniel 39: tests=`expr $tests + 1`
1.4 daniel 40: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
41: if [ "$leak" != "" ]
42: then
1.9 daniel 43: echo "<p><a href='log.html#op$name'>./tester --nowarning $i leaks</a></p>" >> $HTMLSUM
44: echo "<p><a name='op$name'></a>./tester --nowarning $i leaks</p>" >> $HTMLLOG
1.7 daniel 45: echo "<pre>" >> $HTMLLOG
1.6 daniel 46: cat .memdump >> $HTMLLOG
1.7 daniel 47: echo "<pre>" >> $HTMLLOG
1.4 daniel 48: echo saved to result/conf/oasis/$name.leak
49: cp .memdump result/conf/oasis/$name.leak
50: else
51: rm -f result/conf/oasis/$name.leak
52: fi
1.2 daniel 53: done
54:
1.5 daniel 55: tfailed=`expr $tfailed + $failed`
56: total=`expr $total + $tests`
57: echo $failed of $tests tests failed
1.7 daniel 58: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
59: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
1.2 daniel 60:
61: failed="0"
62: tests="0"
1.3 daniel 63: newtests="0"
1.2 daniel 64: echo Oasis negative tests
1.7 daniel 65: echo '<h3>Oasis negative tests</h2>' >> $HTMLLOG
66: echo '<h3>Oasis negative tests</h2>' >> $HTMLSUM
1.2 daniel 67: for i in conf/oasis/*fail*.xml
68: do
69: name=`basename $i .xml`
1.3 daniel 70: ./tester --nowarning $i > $name.out 2> $name.err
1.4 daniel 71: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
72: if [ "$leak" != "" ]
73: then
1.9 daniel 74: echo "<p><a href='log.html#on$name'>./tester --nowarning $i leaks</a></p>" >> $HTMLSUM
75: echo "<p><a name='on$name'></a>./tester --nowarning $i leaks</p>" >> $HTMLLOG
1.6 daniel 76: echo "<pre>" >> $HTMLLOG
77: cat .memdump >> $HTMLLOG
78: echo "</pre>" >> $HTMLLOG
1.4 daniel 79: cp .memdump result/conf/oasis/$name.leak
80: else
81: rm -f result/conf/oasis/$name.leak
82: fi
1.2 daniel 83: if [ ! -s $name.err ]
84: then
1.3 daniel 85: ./tester --nowarning --valid $i > $name.out 2> $name.err
1.4 daniel 86: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
87: if [ "$leak" != "" ]
88: then
1.9 daniel 89: echo "<p><a href='log.html#on$name'>./tester --nowarning --valid $i leaks</a></p>" >> $HTMLSUM
90: echo "<p><a name='on$name'></a>./tester --nowarning --valid $i leaks</p>" >> $HTMLLOG
1.6 daniel 91: echo "<pre>" >> $HTMLLOG
92: cat .memdump >> $HTMLLOG
93: echo "</pre>" >> $HTMLLOG
1.4 daniel 94: cp .memdump result/conf/oasis/$name.leak
95: else
96: rm -f result/conf/oasis/$name.leak
97: fi
1.3 daniel 98: if [ ! -s $name.err ]
1.2 daniel 99: then
1.3 daniel 100: failed=`expr $failed + 1`
1.9 daniel 101: echo "<h3><a href='log.html#on$name'>$i test failed</a></h3>" >> $HTMLSUM
102: echo "<h3><a name='on$name'></a>$i test failed</h3>" >> $HTMLLOG
1.2 daniel 103: else
1.7 daniel 104: echo "<p>$i test WF but not valid</p>" >> $HTMLSUM
105: echo "<p>$i test WF but not valid</p>" >> $HTMLLOG
1.10 daniel 106: ./tester --nowarning --htmlout --nowrap --nowarning --valid --noout $i 2>> $HTMLLOG
1.2 daniel 107: fi
1.7 daniel 108: else
109: echo "<p>$i test not WF</p>" >> $HTMLLOG
1.10 daniel 110: ./tester --nowarning --htmlout --nowrap --nowarning --noout $i 2>> $HTMLLOG
1.2 daniel 111: fi
1.10 daniel 112: if [ ! -f result/conf/oasis/$name.out ]
1.3 daniel 113: then
114: newtests=`expr $newtests + 1`
115: cp $name.out result/conf/oasis/$name.out
116: cp $name.err result/conf/oasis/$name.err
117: fi
1.2 daniel 118: rm -f $name.err $name.out
1.1 daniel 119: tests=`expr $tests + 1`
120: done
121:
1.5 daniel 122: tfailed=`expr $tfailed + $failed`
123: total=`expr $total + $tests`
1.3 daniel 124: if [ "$newtests" != "0" ]
125: then
1.5 daniel 126: echo $failed of $tests tests failed, $newtests new tests
1.3 daniel 127: else
1.5 daniel 128: echo $failed of $tests tests failed
1.3 daniel 129: fi
1.7 daniel 130: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
131: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
1.5 daniel 132:
133: echo James Clark not WF standalone tests
1.7 daniel 134: echo '<h2>James Clark not WF standalone tests</h2>' >> $HTMLLOG
135: echo '<h2>James Clark not WF standalone tests</h2>' >> $HTMLSUM
1.5 daniel 136: mkdir -p result/conf/xmltest/not-wf/sa >& /dev/null
137: failed="0"
138: tests="0"
139: for i in conf/xmltest/not-wf/sa/*.xml
140: do
141: name=`basename $i .xml`
1.10 daniel 142: ./tester --nowarning $i > result/conf/xmltest/not-wf/sa/$name.out 2> result/conf/xmltest/not-wf/sa/$name.err
1.5 daniel 143: if [ -s result/conf/xmltest/not-wf/sa/$name.out ]
144: then
145: failed=`expr $failed + 1`
1.9 daniel 146: echo "<h3><a href='log.html#nwfs$name'>$i test failed</a></h3>" >> $HTMLSUM
147: echo "<h3><a name='nwfs$name'></a>$i test failed</h3>" >> $HTMLLOG
1.5 daniel 148: else
1.7 daniel 149: echo "<p>$i not WF</p>" >> $HTMLLOG
1.10 daniel 150: ./tester --nowarning --htmlout --nowrap --noout $i 2>> $HTMLLOG
1.5 daniel 151: rm -f result/conf/xmltest/not-wf/sa/$name.err
152: rm -f result/conf/xmltest/not-wf/sa/$name.out
153: fi
154: tests=`expr $tests + 1`
155: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
156: if [ "$leak" != "" ]
157: then
1.10 daniel 158: echo "<p><a href='log.html#nwfs$name'>./tester --nowarning $i leaks</a></p>" >> $HTMLSUM
159: echo "<p><a name='nwfs$name'></a>./tester --nowarning $i leaks</p>" >> $HTMLLOG
1.6 daniel 160: echo "<pre>" >> $HTMLLOG
161: cat .memdump >> $HTMLLOG
162: echo "</pre>" >> $HTMLLOG
1.5 daniel 163: cp .memdump result/conf/xmltest/not-wf/sa/$name.leak
164: else
165: rm -f result/conf/xmltest/not-wf/sa/$name.leak
166: fi
167: done
168:
169: tfailed=`expr $tfailed + $failed`
170: total=`expr $total + $tests`
171: echo $failed of $tests tests failed
1.7 daniel 172: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
173: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
1.5 daniel 174:
175: echo James Clark not WF standalone with general entities tests
1.7 daniel 176: echo '<h2>James Clark not WF standalone with general entities tests</h2>' >> $HTMLLOG
177: echo '<h2>James Clark not WF standalone with general entities tests</h2>' >> $HTMLSUM
1.5 daniel 178: mkdir -p result/conf/xmltest/not-wf/ext-sa >& /dev/null
179: failed="0"
180: tests="0"
181: for i in conf/xmltest/not-wf/ext-sa/*.xml
182: do
183: name=`basename $i .xml`
1.10 daniel 184: ./tester --nowarning --noent $i > result/conf/xmltest/not-wf/ext-sa/$name.out 2> result/conf/xmltest/not-wf/ext-sa/$name.err
1.5 daniel 185: if [ -s result/conf/xmltest/not-wf/ext-sa/$name.out ]
186: then
1.9 daniel 187: echo "<h3><a href='log.html#nwfe$name'>$i test failed</a></h3>" >> $HTMLSUM
188: echo "<h3><a name='nwfe$name'></a>$i test failed</h3>" >> $HTMLLOG
1.5 daniel 189: failed=`expr $failed + 1`
190: else
1.7 daniel 191: echo "<p>$i not WF</p>" >> $HTMLLOG
1.10 daniel 192: ./tester --nowarning --noent --htmlout --nowrap --noout $i 2>> $HTMLLOG
1.5 daniel 193: rm -f result/conf/xmltest/not-wf/ext-sa/$name.err
194: rm -f result/conf/xmltest/not-wf/ext-sa/$name.out
195: fi
196: tests=`expr $tests + 1`
197: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
198: if [ "$leak" != "" ]
199: then
1.10 daniel 200: echo "<p><a href='log.html#nwfe$name'>./tester --nowarning $i leaks</a></p>" >> $HTMLSUM
201: echo "<p><a name='nwfe$name'></a>./tester --nowarning $i leaks</p>" >> $HTMLLOG
1.6 daniel 202: echo "<pre>" >> $HTMLLOG
203: cat .memdump >> $HTMLLOG
204: echo "</pre>" >> $HTMLLOG
1.5 daniel 205: cp .memdump result/conf/xmltest/not-wf/ext-sa/$name.leak
206: else
207: rm -f result/conf/xmltest/not-wf/ext-sa/$name.leak
208: fi
209: done
210:
211: tfailed=`expr $tfailed + $failed`
212: total=`expr $total + $tests`
213: echo $failed of $tests tests failed
1.7 daniel 214: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
215: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
1.5 daniel 216:
217: echo James Clark not WF not standalone tests
1.7 daniel 218: echo '<h2>James Clark not WF not standalone tests</h2>' >> $HTMLLOG
219: echo '<h2>James Clark not WF not standalone tests</h2>' >> $HTMLSUM
1.5 daniel 220: mkdir -p result/conf/xmltest/not-wf/not-sa >& /dev/null
221: failed="0"
222: tests="0"
223: for i in conf/xmltest/not-wf/not-sa/*.xml
224: do
225: name=`basename $i .xml`
1.10 daniel 226: ./tester --nowarning --valid --noent $i > result/conf/xmltest/not-wf/not-sa/$name.out 2> result/conf/xmltest/not-wf/not-sa/$name.err
1.11 ! daniel 227: if [ ! -s result/conf/xmltest/not-wf/not-sa/$name.err ]
1.5 daniel 228: then
1.9 daniel 229: echo "<h3><a href='log.html#nwfn$name'>$i test failed</a></h3>" >> $HTMLSUM
230: echo "<h3><a name='nwfn$name'></a>$i test failed</h3>" >> $HTMLLOG
1.5 daniel 231: failed=`expr $failed + 1`
232: else
1.7 daniel 233: echo "<p>$i not WF</p>" >> $HTMLLOG
1.10 daniel 234: ./tester --nowarning --valid --htmlout --nowrap --noent --noout $i 2>> $HTMLLOG
1.5 daniel 235: rm -f result/conf/xmltest/not-wf/not-sa/$name.err
236: rm -f result/conf/xmltest/not-wf/not-sa/$name.out
237: fi
238: tests=`expr $tests + 1`
239: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
240: if [ "$leak" != "" ]
241: then
1.10 daniel 242: echo "<p><a href='log.html#nwfn$name'>./tester --nowarning --noent $i leaks</a></p>" >> $HTMLSUM
243: echo "<p><a name='nwfn$name'></a>./tester --nowarning --noent $i leaks</p>" >> $HTMLLOG
1.6 daniel 244: echo "<pre>" >> $HTMLLOG
245: cat .memdump >> $HTMLLOG
246: echo "</pre>" >> $HTMLLOG
1.5 daniel 247: cp .memdump result/conf/xmltest/not-wf/not-sa/$name.leak
248: else
249: rm -f result/conf/xmltest/not-wf/not-sa/$name.leak
250: fi
251: done
252:
253: tfailed=`expr $tfailed + $failed`
254: total=`expr $total + $tests`
255: echo $failed of $tests tests failed
1.7 daniel 256: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
257: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
1.5 daniel 258:
259: echo James Clark valid standalone tests
1.7 daniel 260: echo '<h2>James Clark valid standalone tests</h2>' >> $HTMLLOG
261: echo '<h2>James Clark valid standalone tests</h2>' >> $HTMLSUM
1.5 daniel 262: mkdir -p result/conf/xmltest/valid/sa >& /dev/null
263: failed="0"
264: tests="0"
265: for i in conf/xmltest/valid/sa/*.xml
266: do
267: name=`basename $i .xml`
1.10 daniel 268: ./tester --nowarning --valid $i > result/conf/xmltest/valid/sa/$name.out 2> result/conf/xmltest/valid/sa/$name.err
1.5 daniel 269: if [ -s result/conf/xmltest/valid/sa/$name.err ]
270: then
1.9 daniel 271: echo "<h3><a href='log.html#vs$name'>$i test failed</a></h3>" >> $HTMLSUM
272: echo "<h3><a name='vs$name'></a>$i test failed</h3>" >> $HTMLLOG
1.10 daniel 273: ./tester --nowarning --noout --htmlout --nowrap --valid $i 2>> $HTMLLOG
1.5 daniel 274: failed=`expr $failed + 1`
275: else
276: rm -f result/conf/xmltest/valid/sa/$name.err
277: rm -f result/conf/xmltest/valid/sa/$name.out
278: fi
279: tests=`expr $tests + 1`
280: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
281: if [ "$leak" != "" ]
282: then
1.10 daniel 283: echo "<p><a href='log.html#vs$name'>./tester --nowarning --valid $i leaks</a></p>" >> $HTMLSUM
284: echo "<p><a name='vs$name'></a>./tester --nowarning --valid $i leaks</p>" >> $HTMLLOG
1.6 daniel 285: echo "<pre>" >> $HTMLLOG
286: cat .memdump >> $HTMLLOG
287: echo "</pre>" >> $HTMLLOG
1.5 daniel 288: cp .memdump result/conf/xmltest/valid/sa/$name.leak
289: else
290: rm -f result/conf/xmltest/valid/sa/$name.leak
291: fi
292: done
293:
294: tfailed=`expr $tfailed + $failed`
295: total=`expr $total + $tests`
296: echo $failed of $tests tests failed
1.7 daniel 297: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
298: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
1.5 daniel 299:
300: echo James Clark valid standalone with general entities tests
1.7 daniel 301: echo '<h2>James Clark valid standalone with general entities tests</h2>' >> $HTMLLOG
302: echo '<h2>James Clark valid standalone with general entities tests</h2>' >> $HTMLSUM
1.5 daniel 303: mkdir -p result/conf/xmltest/valid/ext-sa >& /dev/null
304: failed="0"
305: tests="0"
306: for i in conf/xmltest/valid/ext-sa/*.xml
307: do
308: name=`basename $i .xml`
1.10 daniel 309: ./tester --nowarning --valid $i > result/conf/xmltest/valid/ext-sa/$name.out 2> result/conf/xmltest/valid/ext-sa/$name.err
1.5 daniel 310: if [ -s result/conf/xmltest/valid/ext-sa/$name.err ]
311: then
1.9 daniel 312: echo "<h3><a href='log.html#ve$name'>$i test failed</a></h3>" >> $HTMLSUM
313: echo "<h3><a name='ve$name'></a>$i test failed</h3>" >> $HTMLLOG
1.10 daniel 314: ./tester --nowarning --noout --htmlout --nowrap --valid $i 2>> $HTMLLOG
1.5 daniel 315: failed=`expr $failed + 1`
316: else
317: rm -f result/conf/xmltest/valid/ext-sa/$name.err
318: rm -f result/conf/xmltest/valid/ext-sa/$name.out
319: fi
320: tests=`expr $tests + 1`
321: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
322: if [ "$leak" != "" ]
323: then
1.10 daniel 324: echo "<p><a href='log.html#ve$name'>./tester --nowarning --valid $i leaks</a></p>" >> $HTMLSUM
325: echo "<p><a name='ve$name'></a>./tester --nowarning --valid $i leaks</p>" >> $HTMLLOG
1.6 daniel 326: echo "<pre>" >> $HTMLLOG
327: cat .memdump >> $HTMLLOG
328: echo "</pre>" >> $HTMLLOG
1.5 daniel 329: cp .memdump result/conf/xmltest/valid/ext-sa/$name.leak
330: else
331: rm -f result/conf/xmltest/valid/ext-sa/$name.leak
332: fi
333: done
334:
335: tfailed=`expr $tfailed + $failed`
336: total=`expr $total + $tests`
337: echo $failed of $tests tests failed
1.7 daniel 338: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
339: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
1.5 daniel 340:
341: echo James Clark valid not standalone tests
1.7 daniel 342: echo '<h2>James Clark valid not standalone tests</h2>' >> $HTMLLOG
343: echo '<h2>James Clark valid not standalone tests</h2>' >> $HTMLSUM
1.5 daniel 344: mkdir -p result/conf/xmltest/valid/not-sa >& /dev/null
345: failed="0"
346: tests="0"
347: for i in conf/xmltest/valid/not-sa/*.xml
348: do
349: name=`basename $i .xml`
1.10 daniel 350: ./tester --nowarning --valid --noent $i > result/conf/xmltest/valid/not-sa/$name.out 2> result/conf/xmltest/valid/not-sa/$name.err
1.5 daniel 351: if [ -s result/conf/xmltest/valid/not-sa/$name.err ]
352: then
1.9 daniel 353: echo "<h3><a href='log.html#vn$name'>$i test failed</a></h3>" >> $HTMLSUM
354: echo "<h3><a name='vn$name'></a>$i test failed</h3>" >> $HTMLLOG
1.10 daniel 355: ./tester --nowarning --noout --htmlout --nowrap --valid $i 2>> $HTMLLOG
1.5 daniel 356: failed=`expr $failed + 1`
357: else
358: rm -f result/conf/xmltest/valid/not-sa/$name.err
359: rm -f result/conf/xmltest/valid/not-sa/$name.out
360: fi
361: tests=`expr $tests + 1`
362: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
363: if [ "$leak" != "" ]
364: then
1.10 daniel 365: echo "<p><a href='log.html#vn$name'>./tester --nowarning --valid $i leaks</a></p>" >> $HTMLSUM
366: echo "<p><a name='vn$name'></a>./tester --nowarning --valid $i leaks</p>" >> $HTMLLOG
1.6 daniel 367: echo "<pre>" >> $HTMLLOG
368: cat .memdump >> $HTMLLOG
369: echo "</pre>" >> $HTMLLOG
1.5 daniel 370: cp .memdump result/conf/xmltest/valid/not-sa/$name.leak
371: else
372: rm -f result/conf/xmltest/valid/not-sa/$name.leak
373: fi
374: done
375:
376: tfailed=`expr $tfailed + $failed`
377: total=`expr $total + $tests`
378: echo $failed of $tests tests failed
1.7 daniel 379: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
380: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
1.5 daniel 381:
1.6 daniel 382: echo James Clark invalid tests
1.7 daniel 383: echo '<h2>James Clark invalid tests</h2>' >> $HTMLLOG
384: echo '<h2>James Clark invalid tests</h2>' >> $HTMLSUM
1.5 daniel 385: mkdir -p result/conf/xmltest/invalid >& /dev/null
386: failed="0"
387: tests="0"
388: for i in conf/xmltest/invalid/*.xml
389: do
390: name=`basename $i .xml`
1.10 daniel 391: ./tester --nowarning --valid --noent $i > result/conf/xmltest/invalid/$name.out 2> result/conf/xmltest/invalid/$name.err
1.5 daniel 392: if [ ! -s result/conf/xmltest/invalid/$name.err ]
393: then
1.9 daniel 394: echo "<h3><a href='log.html#jci$name'>$i test failed</a></h3>" >> $HTMLSUM
395: echo "<h3><a name='jci$name'></a>$i test failed</h3>" >> $HTMLLOG
1.5 daniel 396: failed=`expr $failed + 1`
397: else
1.7 daniel 398: echo "<p>$i not valid</p>" >> $HTMLLOG
1.10 daniel 399: ./tester --nowarning --noout --htmlout --nowrap --valid --noout $i 2>> $HTMLLOG
1.5 daniel 400: rm -f result/conf/xmltest/invalid/$name.err
401: rm -f result/conf/xmltest/invalid/$name.out
402: fi
403: tests=`expr $tests + 1`
404: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
405: if [ "$leak" != "" ]
406: then
1.10 daniel 407: echo "<p><a href='log.html#jci$name'>./tester --nowarning --valid --noent $i leaks</a></p>" >> $HTMLSUM
408: echo "<p><a name='jci$name'></a>./tester --nowarning --valid --noent $i leaks</p>" >> $HTMLLOG
1.6 daniel 409: echo "<pre>" >> $HTMLLOG
410: cat .memdump >> $HTMLLOG
411: echo "</pre>" >> $HTMLLOG
1.5 daniel 412: cp .memdump result/conf/xmltest/invalid/$name.leak
413: else
414: rm -f result/conf/xmltest/invalid/$name.leak
415: fi
416: done
417:
418: tfailed=`expr $tfailed + $failed`
419: total=`expr $total + $tests`
420: echo $failed of $tests tests failed
1.7 daniel 421: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
422: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
1.5 daniel 423:
1.8 daniel 424: echo Sun not WF tests
425: echo '<h2>Sun not WF tests</h2>' >> $HTMLLOG
426: echo '<h2>Sun not WF tests</h2>' >> $HTMLSUM
427: mkdir -p result/conf/sun/not-wf >& /dev/null
428: failed="0"
429: tests="0"
430: for i in conf/sun/not-wf/*.xml
431: do
432: name=`basename $i .xml`
1.10 daniel 433: ./tester --nowarning $i > result/conf/sun/not-wf/$name.out 2> result/conf/sun/not-wf/$name.err
1.8 daniel 434: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
435: if [ "$leak" != "" ]
436: then
1.10 daniel 437: echo "<p><a href='log.html#sun$name'>./tester --nowarning $i leaks</a></p>" >> $HTMLSUM
438: echo "<p><a name='sun$name'></a>./tester --nowarning $i leaks</p>" >> $HTMLLOG
1.8 daniel 439: echo "<pre>" >> $HTMLLOG
440: cat .memdump >> $HTMLLOG
441: echo "</pre>" >> $HTMLLOG
442: cp .memdump result/conf/sun/not-wf/$name.leak
443: else
444: rm -f result/conf/sun/not-wf/$name.leak
445: fi
1.10 daniel 446: if [ ! -s result/conf/sun/not-wf/$name.err ]
447: then
448: ./tester --nowarning --valid $i > result/conf/sun/not-wf/$name.out 2> result/conf/sun/not-wf/$name.err
449: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
450: if [ "$leak" != "" ]
451: then
452: echo "<p><a href='log.html#sun$name'>./tester --nowarning --valid $i leaks</a></p>" >> $HTMLSUM
453: echo "<p><a name='sun$name'></a>./tester --nowarning --valid $i leaks</p>" >> $HTMLLOG
454: echo "<pre>" >> $HTMLLOG
455: cat .memdump >> $HTMLLOG
456: echo "</pre>" >> $HTMLLOG
457: cp .memdump result/conf/sun/not-wf/$name.leak
458: else
459: rm -f result/conf/sun/not-wf/$name.leak
460: fi
461: if [ ! -s result/conf/sun/not-wf/$name.err ]
462: then
463: failed=`expr $failed + 1`
464: echo "<h3><a href='log.html#on$name'>$i test failed</a></h3>" >> $HTMLSUM
465: echo "<h3><a name='on$name'></a>$i test failed</h3>" >> $HTMLLOG
466: else
467: echo "<p>$i test WF but not valid</p>" >> $HTMLSUM
468: echo "<p>$i test WF but not valid</p>" >> $HTMLLOG
469: ./tester --nowarning --htmlout --nowrap --nowarning --valid --noout $i 2>> $HTMLLOG
470: fi
471: else
472: echo "<p>$i test not WF</p>" >> $HTMLLOG
473: ./tester --nowarning --htmlout --nowrap --nowarning --noout $i 2>> $HTMLLOG
474: fi
475: tests=`expr $tests + 1`
1.8 daniel 476: done
477:
478: tfailed=`expr $tfailed + $failed`
479: total=`expr $total + $tests`
480: echo $failed of $tests tests failed
481: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
482: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
483:
484: echo Sun valid tests
485: echo '<h2>Sun valid tests</h2>' >> $HTMLLOG
486: echo '<h2>Sun valid tests</h2>' >> $HTMLSUM
487: mkdir -p result/conf/sun/valid >& /dev/null
488: failed="0"
489: tests="0"
490: for i in conf/sun/valid/*.xml
491: do
492: name=`basename $i .xml`
1.10 daniel 493: if [ "$name" = "sun-valid" ]
494: then
495: continue;
496: fi
497: ./tester --nowarning --valid --noent $i > result/conf/sun/valid/$name.out 2> result/conf/sun/valid/$name.err
1.8 daniel 498: if [ -s result/conf/sun/valid/$name.err ]
499: then
500: echo "<h3><a href='log.html#sv$name'>$i test failed</a></h3>" >> $HTMLSUM
501: echo "<h3><a name='sv$name'></a>$i test failed</h3>" >> $HTMLLOG
1.10 daniel 502: ./tester --nowarning --noout --htmlout --nowrap --valid $i 2>> $HTMLLOG
1.8 daniel 503: failed=`expr $failed + 1`
504: else
505: rm -f result/conf/sun/valid/$name.err
506: rm -f result/conf/sun/valid/$name.out
507: fi
508: tests=`expr $tests + 1`
509: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
510: if [ "$leak" != "" ]
511: then
1.10 daniel 512: echo "<p><a href='log.html#sv$name'>./tester --nowarning --valid $i leaks</a></p>" >> $HTMLSUM
513: echo "<p><a name='sv$name'></a>./tester --nowarning --valid $i leaks</p>" >> $HTMLLOG
1.8 daniel 514: echo "<pre>" >> $HTMLLOG
515: cat .memdump >> $HTMLLOG
516: echo "</pre>" >> $HTMLLOG
517: cp .memdump result/conf/sun/valid/$name.leak
518: else
519: rm -f result/conf/sun/valid/$name.leak
520: fi
521: done
522:
523: tfailed=`expr $tfailed + $failed`
524: total=`expr $total + $tests`
525: echo $failed of $tests tests failed
526: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
527: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
528:
529: echo Sun invalid tests
530: echo '<h2>Sun invalid tests</h2>' >> $HTMLLOG
531: echo '<h2>Sun invalid tests</h2>' >> $HTMLSUM
532: mkdir -p result/conf/sun/invalid >& /dev/null
533: failed="0"
534: tests="0"
535: for i in conf/sun/invalid/*.xml
536: do
537: name=`basename $i .xml`
1.10 daniel 538: ./tester --nowarning --valid --noent $i > result/conf/sun/invalid/$name.out 2> result/conf/sun/invalid/$name.err
1.8 daniel 539: if [ ! -s result/conf/sun/invalid/$name.err ]
540: then
541: echo "<h3><a href='log.html#siv$name'>$i test failed</a></h3>" >> $HTMLSUM
542: echo "<h3><a name='siv$name'></a>$i test failed</h3>" >> $HTMLLOG
543: failed=`expr $failed + 1`
544: else
545: echo "<p>$i not valid</p>" >> $HTMLLOG
1.10 daniel 546: ./tester --nowarning --noout --htmlout --nowrap --valid --noout $i 2>> $HTMLLOG
1.8 daniel 547: rm -f result/conf/sun/invalid/$name.err
548: rm -f result/conf/sun/invalid/$name.out
549: fi
550: tests=`expr $tests + 1`
551: leak=`grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`
552: if [ "$leak" != "" ]
553: then
1.10 daniel 554: echo "<p><a href='log.html#siv$name'>./tester --nowarning --valid --noent $i leaks</a></p>" >> $HTMLSUM
555: echo "<p><a name='siv$name'></a>./tester --nowarning --valid --noent $i leaks</p>" >> $HTMLLOG
1.8 daniel 556: echo "<pre>" >> $HTMLLOG
557: cat .memdump >> $HTMLLOG
558: echo "</pre>" >> $HTMLLOG
559: cp .memdump result/conf/sun/invalid/$name.leak
560: else
561: rm -f result/conf/sun/invalid/$name.leak
562: fi
563: done
564:
565: tfailed=`expr $tfailed + $failed`
566: total=`expr $total + $tests`
567: echo $failed of $tests tests failed
568: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLLOG
569: echo "<h3>$failed of $tests tests failed</h3>" >> $HTMLSUM
570:
1.5 daniel 571: #
572: # To tal results
573: #
574: echo
575: echo Total: $tfailed of $total tests failed
1.6 daniel 576: echo Sumary in $HTMLSUM
1.5 daniel 577: echo
1.6 daniel 578:
579: echo "<h2 align='center'>Total: $tfailed of $total tests failed</h2>" >> $HTMLLOG
580: echo "<h2 align='center'>Total: $tfailed of $total tests failed</h2>" >> $HTMLSUM
581: echo '</body></html>' >> $HTMLLOG
582: echo '</body></html>' >> $HTMLSUM
583:
Webmaster