Debian Codegraph @

tests/aslts/bin/bugstate/bdemostabs

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 #
3 # @echo off
4 #
5 # Calculate the current state of all bugs
6 # and report the summary tables.
7 #
8 # Parameters:
9 #
10 # arg1 - the first multi-result directory
11 # arg2 - the second multi-result directory
12 #
13 # Note: fictitious invalid name could be applied instead of either arg1 or arg2.
14 #
15 # arg3 - ALLBUGS file which is a manually prepared description of all bugs,
16 # those features of current state of bugs which could not be obtained
17 # automatically
18 # arg4 - kernel bugzilla Bug List file
19 # arg5 - local bugzilla Bug List file
20 #
21 # (for additional comments see Do and asltsrun utilities).
22
23 # Includes
24
25 . commonscip-shell source . . common.
26 . settingsscip-shell source . . settings.
27
28 print_complete_list_per_comp=yes
29
30 # Opcodes of TEST-RESULT
31 PASS=0
32 FAIL=1
33 BLOCKED=2
34 SKIPPED=3
35 UNDEFINED=4
36
37 ST_FAIL=" FAIL "
38 ST_BLCK=" BLOCKED "
39 ST_PASS=" PASS "
40 ST_SKIP=" SKIPPED "
41 ST_UNDF=" UNDEFINED "
42 ST_EMPT=" "
43
44 # Opcodes of (STATE-MANUALLY)
45 Man_REJECTED=0
46 Man_FIXED=1
47 Man_INTEGRATED=2
48 Man_FIXED_INTEGRATED=3
49 Man_EMPTY=4
50 Man_UNDEFINED=5
51
52 # Overall status
53 REJ_STATUS=0
54 PASS_STATUS=1
55 FAIL_STATUS=2
56
57 # Opcodes of component
58 I_COMP=0
59 C_COMP=1
60 M_COMP=2
61 U_COMP=3
62 S_COMP=4
63 UNDEF_COMP=5
64
65
66 # Return opcode of TEST-RESULT according to weights
67 gen_statscip-shell shell acpica-unix 20260408-1 gen_stat().()
68 {
69 if [scip-shell system . . `[`. "x$1" != x ]; then
70 stat=`echoscip-shell system . . echo. "$1" | awkscip-shell system . . awk. -F: '{ print $4}'`
71 if [scip-shell system . . `[`. "$stat" != 0 ]; then
72 rval=$FAIL
73 else
74 stat=`echoscip-shell system . . echo. "$1" | awkscip-shell system . . awk. -F: '{ print $5}'`
75 if [scip-shell system . . `[`. "$stat" != 0 ]; then
76 if [scip-shell system . . `[`. "$rval" != $FAIL ]; then
77 rval=$BLOCKED
78 fi
79 else
80 stat=`echoscip-shell system . . echo. "$1" | awkscip-shell system . . awk. -F: '{ print $6}'`
81 if [scip-shell system . . `[`. "$stat" != 0 ]; then
82 if [scip-shell system . . `[`. "$rval" != $FAIL -a "$rval" != $BLOCKED ]; then
83 rval=$PASS
84 fi
85 else
86 stat=`echoscip-shell system . . echo. "$1" | awkscip-shell system . . awk. -F: '{ print $7}'`
87 if [scip-shell system . . `[`. "$stat" != 0 ]; then
88 if [scip-shell system . . `[`. "$rval" != $FAIL -a "$rval" != $BLOCKED -a "$rval" != $PASS ]; then
89 rval=$SKIPPED
90 fi
91 fi
92 fi
93 fi
94 fi
95 fi
96 }
97
98 # Inputs/outputs are 'Opcodes of TEST-RESULT'
99 generate_statusscip-shell shell acpica-unix 20260408-1 generate_status().()
100 {
101 rval="$UNDEFINED"
102
103 gen_statscip-shell shell acpica-unix 20260408-1 gen_stat(). "$c32n_GL"
104 gen_statscip-shell shell acpica-unix 20260408-1 gen_stat(). "$c64n_GL"
105 gen_statscip-shell shell acpica-unix 20260408-1 gen_stat(). "$c32s_GL"
106 gen_statscip-shell shell acpica-unix 20260408-1 gen_stat(). "$c64s_GL"
107 gen_statscip-shell shell acpica-unix 20260408-1 gen_stat(). "$l32n_GL"
108 gen_statscip-shell shell acpica-unix 20260408-1 gen_stat(). "$l64n_GL"
109 gen_statscip-shell shell acpica-unix 20260408-1 gen_stat(). "$l32s_GL"
110 gen_statscip-shell shell acpica-unix 20260408-1 gen_stat(). "$l64s_GL"
111
112 return $rval
113 }
114
115 # Get name of 'Opcode of TEST-RESULT'
116 get_test_result_namescip-shell shell acpica-unix 20260408-1 get_test_result_name().()
117 {
118 case $1 in
119 0) echoscip-shell system . . echo. "$ST_PASS";;
120 1) echoscip-shell system . . echo. "$ST_FAIL";;
121 2) echoscip-shell system . . echo. "$ST_BLCK";;
122 3) echoscip-shell system . . echo. "$ST_SKIP";;
123 4) echoscip-shell system . . echo. "$ST_UNDF";;
124 *) echoscip-shell system . . echo. "?"
125 esac
126 }
127
128 get_state_resultscip-shell shell acpica-unix 20260408-1 get_state_result().()
129 {
130 if [scip-shell system . . `[`. "x$2" != x ]; then
131 State=`get_element_of_line "$1" ":" $2 0`
132 Result=`get_element_of_line "$1" ":" $2 1`
133 if [scip-shell system . . `[`. "x$State" == x ]; then
134 StateResult=" "
135 elif [scip-shell system . . `[`. "$State" == NEW ]; then
136 StateResult="$State "
137 elif [scip-shell system . . `[`. "x$Result" == x ]; then
138 StateResult="$State "
139 else
140 StateResult="$State $Result"
141 fi
142 else
143 StateResult=" "
144 fi
145
146 echoscip-shell system . . echo. "$StateResult"
147 }
148
149 # Check(STATE-MANUALLY) == {REJECTED|FIXED|INTEGRATED|FIXED INTEGRATED|<empty>}
150 check_state_manuallyscip-shell shell acpica-unix 20260408-1 check_state_manually().()
151 {
152 rval=$Man_UNDEFINED
153
154 x=`echoscip-shell system . . echo. "$1" | awkscip-shell system . . awk. -F" " '{print $1}'`
155 y=`echoscip-shell system . . echo. "$1" | awkscip-shell system . . awk. -F" " '{print $2}'`
156
157 # FIXED INTEGRATED
158 if [scip-shell system . . `[`. "x$y" != x ]; then
159 if [scip-shell system . . `[`. "$x" != FIXED -o "$y" != INTEGRATED ]; then
160 CerrSTMAN=h
161 else
162 rval=$Man_FIXED_INTEGRATED
163 z=`echoscip-shell system . . echo. "$1" | awkscip-shell system . . awk. -F" " '{print NF}'`
164 if [scip-shell system . . `[`. "$z" != 2 ]; then
165 CerrSTMAN=i
166 fi
167 fi
168 elif [scip-shell system . . `[`. "$x" == REJECTED ]; then
169 rval=$Man_REJECTED
170 elif [scip-shell system . . `[`. "$x" == FIXED ]; then
171 rval=$Man_FIXED
172 elif [scip-shell system . . `[`. "$x" == INTEGRATED ]; then
173 rval=$Man_INTEGRATED
174 elif [scip-shell system . . `[`. "x$x" == x ]; then
175 rval=$Man_EMPTY
176 else
177 CerrSTMAN=j
178 fi
179
180 return $rval
181 }
182
183 # Check(TEST-RESULT) == {PASS|FAIL|BLOCKED|SKIPPED|UNDEFINED}
184 check_test_resultscip-shell shell acpica-unix 20260408-1 check_test_result().()
185 {
186 if [scip-shell system . . `[`. "$1" != $PASS\
187 -a "$1" != $FAIL\
188 -a "$1" != $BLOCKED\
189 -a "$1" != $SKIPPED\
190 -a "$1" != $UNDEFINED ]; then
191 CerrTSRESID=k
192 fi
193 }
194
195 check_conformityscip-shell shell acpica-unix 20260408-1 check_conformity().()
196 {
197 entry=7
198 rval=$FAIL_STATUS
199
200 if [scip-shell system . . `[`. "$1" == $Man_REJECTED ]; then
201 entry=0
202 rval=$REJ_STATUS
203 elif [scip-shell system . . `[`. "$1" == $Man_FIXED -a "$2" == $UNDEFINED ]; then
204 entry=1
205 rval=$PASS_STATUS
206 elif [scip-shell system . . `[`. "$1" == $Man_FIXED_INTEGRATED -a "$2" == $UNDEFINED ]; then
207 entry=1
208 rval=$PASS_STATUS
209 elif [scip-shell system . . `[`. "$1" == $Man_EMPTY -o "$1" == $Man_INTEGRATED ]; then
210 if [scip-shell system . . `[`. "$2" == $PASS ]; then
211 entry=2
212 rval=$PASS_STATUS
213 elif [scip-shell system . . `[`. "$2" == $FAIL ]; then
214 entry=4
215 rval=$FAIL_STATUS
216 elif [scip-shell system . . `[`. "$2" == $BLOCKED ]; then
217 entry=5
218 rval=$FAIL_STATUS
219 elif [scip-shell system . . `[`. "$2" == $SKIPPED ]; then
220 entry=3
221 rval=$PASS_STATUS
222 elif [scip-shell system . . `[`. "$2" == $UNDEFINED ]; then
223 entry=6
224 rval=$FAIL_STATUS
225 else
226 CerrCONFORMITY=l
227 fi
228 else
229 entry=7
230 echoscip-shell system . . echo. "ERROR 0: check_conformity, <$1> <$2>"
231 InternalErrCount=$[ $InternalErrCount + 1 ]
232 CerrCONFORMITY=m
233 fi
234
235 if [scip-shell system . . `[`. "$1" == $Man_FIXED_INTEGRATED -o "$1" == $Man_INTEGRATED ]; then
236 if [scip-shell system . . `[`. "x$LBZID" == x -a "x$KBZID" == x ]; then
237 CerrCONFORMITY=u
238 fi
239 fi
240
241 entry_of_table=$entry
242
243 return $rval
244 }
245
246 # Check(COMP) == {I|C|M|U|S}
247 check_componentscip-shell shell acpica-unix 20260408-1 check_component().()
248 {
249 rval=$UNDEF_COMP
250
251 if [[ "$1" == I* ]]; then
252 rval=$I_COMP
253 elif [[ "$1" == C* ]]; then
254 rval=$C_COMP
255 elif [[ "$1" == M* ]]; then
256 rval=$M_COMP
257 elif [[ "$1" == U* ]]; then
258 rval=$U_COMP
259 elif [[ "$1" == S* ]]; then
260 rval=$S_COMP
261 else
262 CerrCOMP=g
263 echoscip-shell system . . echo. "ERROR 0: check_component, <$1>"
264 InternalErrCount=$[ $InternalErrCount + 1 ]
265 fi
266
267 return $rval
268 }
269
270 report_state_of_bugsscip-shell shell acpica-unix 20260408-1 report_state_of_bugs().()
271 {
272 local second_file=
273
274 rintinbzcnt=0
275 notresolvedcnt=0
276 rnotintcnt=0
277 rjinbzilla=0
278 rstateinbzilla=0
279 rstateinbzillafail=0
280
281 init_summary_tablescip-shell shell acpica-unix 20260408-1 init_summary_table().
282
283 echoscip-shell system . . echo. ""
284 echoscip-shell system . . echo. ""
285 echoscip-shell system . . echo. ""
286 echoscip-shell system . . echo. "Table 1 (Complete list of per-bug states)"
287 echoscip-shell system . . echo. ""
288
289 report_head_of_tablescip-shell shell acpica-unix 20260408-1 report_head_of_table().
290
291 OLD_IFS=$IFS
292 IFS="|"
293
294 cat\
295 "$BDEMO_SUM"\
296 "$ALLBUGS" |\
297 while [scip-shell system . . `[`. 1 ]
298 do
299 read number s0 s1 s2 s3 s4 s5 s6 s7
300 if [scip-shell system . . `[`. $? -ne 0 ] ; then
301 do_report_summaryscip-shell shell acpica-unix 20260408-1 do_report_summary().
302 echoscip-shell system . . echo. ""
303 report_errors_encounteredscip-shell shell acpica-unix 20260408-1 report_errors_encountered().
304 echoscip-shell system . . echo. ""
305 echoscip-shell system . . echo. ""
306 echoscip-shell system . . echo. ""
307 report_bug_summaryscip-shell shell acpica-unix 20260408-1 report_bug_summary().
308 echoscip-shell system . . echo. ""
309 echoscip-shell system . . echo. ""
310 echoscip-shell system . . echo. ""
311 report_rejected_in_bzillascip-shell shell acpica-unix 20260408-1 report_rejected_in_bzilla().
312 echoscip-shell system . . echo. ""
313 echoscip-shell system . . echo. ""
314 echoscip-shell system . . echo. ""
315 report_resolved_integratedscip-shell shell acpica-unix 20260408-1 report_resolved_integrated().
316 echoscip-shell system . . echo. ""
317 echoscip-shell system . . echo. ""
318 echoscip-shell system . . echo. ""
319 report_resolved_not_integratedscip-shell shell acpica-unix 20260408-1 report_resolved_not_integrated().
320 echoscip-shell system . . echo. ""
321 echoscip-shell system . . echo. ""
322 echoscip-shell system . . echo. ""
323 report_not_resolvedscip-shell shell acpica-unix 20260408-1 report_not_resolved().
324 echoscip-shell system . . echo. ""
325 echoscip-shell system . . echo. ""
326 echoscip-shell system . . echo. ""
327 report_resolved_state_in_bzillascip-shell shell acpica-unix 20260408-1 report_resolved_state_in_bzilla().
328 echoscip-shell system . . echo. ""
329 echoscip-shell system . . echo. ""
330 echoscip-shell system . . echo. ""
331 report_resolved_state_in_bzilla_but_failscip-shell shell acpica-unix 20260408-1 report_resolved_state_in_bzilla_but_fail().
332 echoscip-shell system . . echo. ""
333 echoscip-shell system . . echo. ""
334 echoscip-shell system . . echo. ""
335 report_bzilla_summaryscip-shell shell acpica-unix 20260408-1 report_bzilla_summary().
336 echoscip-shell system . . echo. ""
337 echoscip-shell system . . echo. ""
338 echoscip-shell system . . echo. ""
339 report_internal_bugs_numberscip-shell shell acpica-unix 20260408-1 report_internal_bugs_number().
340
341 break
342 fi
343
344 if [scip-shell system . . `[`. "$number" == ALLBUGS ] ; then
345 second_file=yes
346 continue
347 fi
348
349 if [scip-shell system . . `[`. "$second_file" == yes ] ; then
350
351 if [scip-shell system . . `[`. "x$number" == x ]; then
352 continue
353 fi
354
355 CerrMISC=" "
356
357 # Local/kernel bugzilla State/Result parameters
358
359 LBZID=`echoscip-shell system . . echo. $s1 | sedscip-shell system . . sed. 's/ //'g`
360 lst=`get_state_resultscip-shell shell acpica-unix 20260408-1 get_state_result(). "$LBSUM_PARSED" "$LBZID"`
361
362 KBZID=`echoscip-shell system . . echo. $s2 | sedscip-shell system . . sed. 's/ //'g`
363 kst=`get_state_resultscip-shell shell acpica-unix 20260408-1 get_state_result(). "$KBSUM_PARSED" "$KBZID"`
364
365 lState=`echoscip-shell system . . echo. "$lst" | awkscip-shell system . . awk. -F" " '{print $1}'`
366 lResult=`echoscip-shell system . . echo. "$lst" | awkscip-shell system . . awk. -F" " '{print $2}'`
367
368 kState=`echoscip-shell system . . echo. "$kst" | awkscip-shell system . . awk. -F" " '{print $1}'`
369 kResult=`echoscip-shell system . . echo. "$kst" | awkscip-shell system . . awk. -F" " '{print $2}'`
370
371 resolved_state_in_bzilla=
372 resolved_state_in_bzilla_but_fail=
373
374 if [scip-shell system . . `[`. "$lState" == RESO\
375 -o "$lState" == REJE\
376 -o "$lState" == CLOS\
377 -o "$kState" == RESO\
378 -o "$kState" == REJE\
379 -o "$kState" == CLOS ]; then
380 resolved_state_in_bzilla=yes
381 fi
382
383
384 # Check consistency of bug-data.
385 #
386 # Check that the state of bugs reported by local and kernel
387 # bugzilla don't contradict with the actual state of bugs
388 # reported by test runs and manually provided data.
389
390 # Check STATE-MANUALLY (error # 1)
391
392 CerrSTMAN=" "
393 check_state_manuallyscip-shell shell acpica-unix 20260408-1 check_state_manually(). "$s3"
394 MANstat=$?
395
396 # Check TEST-RESULT (error # 1)
397
398 TSRESstat="${SUMMARY[$number]}"
399
400 CerrTSRESID=" "
401 check_test_resultscip-shell shell acpica-unix 20260408-1 check_test_result(). "$TSRESstat"
402
403 # Check Component (error # 2,3,4,5,6)
404
405 LerrCOMP=" "
406 KerrCOMP=" "
407 CerrCOMP=" "
408
409 Component=`echoscip-shell system . . echo. $s0 | sedscip-shell system . . sed. 's/ //'g`
410 check_componentscip-shell shell acpica-unix 20260408-1 check_component(). "$Component"
411 Component=$?
412
413 if [scip-shell system . . `[`. "x$KBZID" != x ]; then
414 if [scip-shell system . . `[`. "x$kState" == x ]; then
415 KerrCOMP=s
416 else
417 Comp=`get_element_of_line "$KBSUM_PARSED" ":" "$KBZID" 2`
418 if [scip-shell system . . `[`. "$Comp" != "ACPI" ]; then
419 KerrCOMP=v
420 elif [[ "$Component" != $I_COMP ]]; then
421 KerrCOMP=f
422 fi
423 fi
424 fi
425 if [scip-shell system . . `[`. "x$LBZID" != x ]; then
426
427 if [scip-shell system . . `[`. "x$lState" == x ]; then
428 LerrCOMP=s
429 else
430 Comp=`get_element_of_line "$LBSUM_PARSED" ":" "$LBZID" 2`
431 if [scip-shell system . . `[`. "$Comp" == "Core/Int" ]; then
432 if [[ "$Component" != $I_COMP ]]; then
433 LerrCOMP=a
434 fi
435 elif [scip-shell system . . `[`. "$Comp" == "iASL Com" ]; then
436 if [[ "$Component" != $C_COMP ]]; then
437 LerrCOMP=b
438 fi
439 elif [scip-shell system . . `[`. "$Comp" == "ACPI Spe" ]; then
440 if [[ "$Component" != $S_COMP ]]; then
441 LerrCOMP=c
442 fi
443 elif [scip-shell system . . `[`. "$Comp" == "Utilitie" ]; then
444 if [scip-shell system . . `[`. "$Component" != $U_COMP -a "$Component" != $M_COMP ]; then
445 LerrCOMP=d
446 fi
447 else
448 LerrCOMP=e
449 fi
450 fi
451 fi
452
453 # Check conformity of STATE-MANUALLY & TEST-RESULT (error # 1)
454
455 CerrCONFORMITY=" "
456 entry_of_table=100
457 check_conformityscip-shell shell acpica-unix 20260408-1 check_conformity(). "$MANstat" "$TSRESstat"
458 overall_status=$?
459
460
461 # Increment the relevant entry of the summary table
462 if [scip-shell system . . `[`. "$Component" != $UNDEF_COMP ]; then
463 increment_summary_tablescip-shell shell acpica-unix 20260408-1 increment_summary_table(). "$Component" "$entry_of_table"
464 else
465 CerrMISC=t
466 echoscip-shell system . . echo. "ERROR 0: report_state_of_bugs, <$number> <$Component> <$entry_of_table>"
467 InternalErrCount=$[ $InternalErrCount + 1 ]
468 fi
469
470
471 if [scip-shell system . . `[`. "$overall_status" == $FAIL_STATUS ]; then
472 tobefixed="*"
473 else
474 tobefixed=" "
475 fi
476
477 # Check REJECTED (error # 1)
478
479 LerrRJ=" "
480 KerrRJ=" "
481
482 if [scip-shell system . . `[`. "x$LBZID" != x -o "x$KBZID" != x ]; then
483
484 MNrejected=
485 if [scip-shell system . . `[`. "$overall_status" == $REJ_STATUS ]; then
486 MNrejected=yes
487 fi
488
489 # Local bugzilla
490
491 if [scip-shell system . . `[`. "x$LBZID" != x ]; then
492 rejected=
493 if [scip-shell system . . `[`. "$lResult" == INVA ]; then
494 rejected=yes
495 fi
496 if [scip-shell system . . `[`. "$rejected" != "$MNrejected" ]; then
497 LerrRJ=A
498 fi
499 fi
500
501 # Kernel bugzilla
502
503 if [scip-shell system . . `[`. "x$KBZID" != x ]; then
504 rejected=
505 if [scip-shell system . . `[`. "$kState" == REJE ]; then
506 rejected=yes
507 fi
508 if [scip-shell system . . `[`. "$rejected" != "$MNrejected" ]; then
509 KerrRJ=F
510 fi
511 fi
512 fi
513
514 # Check State-Result (error # 7,8,9,a,b,c,d,e)
515
516 intgr=
517 if [[ "$s3" == *INTEGRATED* ]]; then
518 intgr=yes
519 fi
520
521 LerrSTAT=" "
522 LerrRES=" "
523 KerrSTAT=" "
524 KerrRES=" "
525 CerrPRIOR=" "
526
527 x=`echoscip-shell system . . echo. $s4 | sedscip-shell system . . sed. 's/ //'g`
528
529 if [scip-shell system . . `[`. "$overall_status" == $REJ_STATUS ]; then
530 if [scip-shell system . . `[`. "x$x" != x ]; then
531 CerrPRIOR=n
532 fi
533 elif [scip-shell system . . `[`. "$overall_status" == $PASS_STATUS ]; then
534 if [scip-shell system . . `[`. "x$LBZID" != x ]; then
535 if [scip-shell system . . `[`. "$lState" == CLOS -a "x$intgr" == x ]; then
536 LerrSTAT=L
537 elif [scip-shell system . . `[`. "$lState" != RESO -a "$lState" != CLOS ]; then
538 LerrSTAT=R
539 elif [scip-shell system . . `[`. "$lState" == RESO ]; then
540 LerrSTAT=C
541 if [scip-shell system . . `[`. "$lResult" != FIXE ]; then
542 LerrRES=D
543 fi
544 else
545 if [scip-shell system . . `[`. "$lResult" != FIXE ]; then
546 LerrRES=D
547 fi
548 fi
549 fi
550 if [scip-shell system . . `[`. "x$KBZID" != x ]; then
551 if [scip-shell system . . `[`. "$kState" == CLOS -a "x$intgr" == x ]; then
552 KerrSTAT=L
553 elif [scip-shell system . . `[`. "$kState" != RESO -a "$kState" != CLOS ]; then
554 KerrSTAT=R
555 elif [scip-shell system . . `[`. "$kState" == RESO ]; then
556 KerrSTAT=C
557 if [scip-shell system . . `[`. "$kResult" != CODE -a "$kResult" != PATC ]; then
558 KerrRES=H
559 fi
560 else
561 if [scip-shell system . . `[`. "$kResult" != CODE -a "$kResult" != PATC ]; then
562 KerrRES=H
563 fi
564 fi
565 fi
566 if [scip-shell system . . `[`. "x$x" != x ]; then
567 CerrPRIOR=o
568 fi
569 else
570 if [scip-shell system . . `[`. "x$LBZID" != x ]; then
571 if [scip-shell system . . `[`. "$lState" == RESO\
572 -o "$lState" == CLOS ]; then
573 LerrSTAT=B
574 elif [scip-shell system . . `[`. "$lResult" == FIXE\
575 -o "$lResult" == CODE\
576 -o "$lResult" == PATC ]; then
577 LerrRES=E
578 fi
579 fi
580 if [scip-shell system . . `[`. "x$KBZID" != x ]; then
581 if [scip-shell system . . `[`. "$kState" == RESO\
582 -o "$kState" == CLOS ]; then
583 KerrSTAT=G
584 elif [scip-shell system . . `[`. "$kResult" == FIXE\
585 -o "$kResult" == CODE\
586 -o "$kResult" == PATC ]; then
587 KerrRES=J
588 fi
589 fi
590
591 if [scip-shell system . . `[`. "x$LBZID" == x -a "x$KBZID" == x ]; then
592 LerrSTAT=r
593 KerrSTAT=r
594 fi
595 if [scip-shell system . . `[`. "x$x" == x ]; then
596 CerrPRIOR=p
597 fi
598 fi
599
600 # Check INTEGRATED (error # f,g,h,i)
601
602 CerrINTEGR=" "
603
604 rejected_in_bz=
605 rejected_not_in_bz=
606 not_resolved=
607 resolved_integrated_in_bz=
608 resolved_not_integrated_in_bz=
609
610 if [scip-shell system . . `[`. "$overall_status" == $REJ_STATUS ]; then
611 if [scip-shell system . . `[`. "x$KBZID" != x -o "x$LBZID" != x ]; then
612 rejected_in_bz=yes
613 else
614 rejected_not_in_bz=yes
615 fi
616 elif [scip-shell system . . `[`. "$overall_status" == $FAIL_STATUS ]; then
617 not_resolved=yes
618 if [scip-shell system . . `[`. "x$LBZID" != x -o "x$KBZID" != x ]; then
619 if [scip-shell system . . `[`. "$resolved_state_in_bzilla" == yes ]; then
620 resolved_state_in_bzilla_but_fail=yes
621 fi
622 if [scip-shell system . . `[`. "x$intgr" != x ]; then
623 CerrINTEGR=K
624 fi
625 fi
626 else
627 if [scip-shell system . . `[`. "x$LBZID" != x -o "x$KBZID" != x ]; then
628 if [scip-shell system . . `[`. "x$intgr" == x ]; then
629 CerrINTEGR=I
630 resolved_not_integrated_in_bz=yes
631 else
632 resolved_integrated_in_bz=yes
633 fi
634 fi
635 fi
636
637 # Local & Kernel bugzilla summary
638
639 if [scip-shell system . . `[`. "x$LBZID" != x -o "x$KBZID" != x ]; then
640
641 if [scip-shell system . . `[`. "$kState" == NEW ]; then
642 KBarr[0]=$[ ${KBarr[0]} + 1 ]
643 elif [scip-shell system . . `[`. "$kState" == ASSI ]; then
644 KBarr[1]=$[ ${KBarr[1]} + 1 ]
645 elif [scip-shell system . . `[`. "$kState" == NEED ]; then
646 KBarr[2]=$[ ${KBarr[2]} + 1 ]
647 elif [scip-shell system . . `[`. "$kState" == RESO ]; then
648 if [scip-shell system . . `[`. "$kResult" == CODE ]; then
649 KBarr[3]=$[ ${KBarr[3]} + 1 ]
650 elif [scip-shell system . . `[`. "$kResult" == PATC ]; then
651 KBarr[4]=$[ ${KBarr[4]} + 1 ]
652 elif [scip-shell system . . `[`. "$kResult" == FIXE ]; then
653 KBarr[5]=$[ ${KBarr[5]} + 1 ]
654 elif [scip-shell system . . `[`. "$kResult" == INVA ]; then
655 KBarr[6]=$[ ${KBarr[6]} + 1 ]
656 else
657 KBarr[9]=$[ ${KBarr[9]} + 1 ]
658 fi
659 elif [scip-shell system . . `[`. "$kState" == REJE ]; then
660 if [scip-shell system . . `[`. "$kResult" == DOCU ]; then
661 KBarr[7]=$[ ${KBarr[7]} + 1 ]
662 else
663 KBarr[9]=$[ ${KBarr[9]} + 1 ]
664 fi
665 elif [scip-shell system . . `[`. "$kState" == CLOS ]; then
666 if [scip-shell system . . `[`. "$kResult" == CODE ]; then
667 KBarr[8]=$[ ${KBarr[8]} + 1 ]
668 else
669 KBarr[9]=$[ ${KBarr[9]} + 1 ]
670 fi
671 fi
672
673 if [scip-shell system . . `[`. "$lState" == NEW ]; then
674 LBarr[0]=$[ ${LBarr[0]} + 1 ]
675 elif [scip-shell system . . `[`. "$lState" == ASSI ]; then
676 LBarr[1]=$[ ${LBarr[1]} + 1 ]
677 elif [scip-shell system . . `[`. "$lState" == NEED ]; then
678 LBarr[2]=$[ ${LBarr[2]} + 1 ]
679 elif [scip-shell system . . `[`. "$lState" == RESO ]; then
680 if [scip-shell system . . `[`. "$lResult" == CODE ]; then
681 LBarr[3]=$[ ${LBarr[3]} + 1 ]
682 elif [scip-shell system . . `[`. "$lResult" == PATC ]; then
683 LBarr[4]=$[ ${LBarr[4]} + 1 ]
684 elif [scip-shell system . . `[`. "$lResult" == FIXE ]; then
685 LBarr[5]=$[ ${LBarr[5]} + 1 ]
686 elif [scip-shell system . . `[`. "$lResult" == INVA ]; then
687 LBarr[6]=$[ ${LBarr[6]} + 1 ]
688 else
689 LBarr[9]=$[ ${LBarr[9]} + 1 ]
690 fi
691 elif [scip-shell system . . `[`. "$lState" == REJE ]; then
692 if [scip-shell system . . `[`. "$lResult" == DOCU ]; then
693 LBarr[7]=$[ ${LBarr[7]} + 1 ]
694 else
695 LBarr[9]=$[ ${LBarr[9]} + 1 ]
696 fi
697 elif [scip-shell system . . `[`. "$lState" == CLOS ]; then
698 if [scip-shell system . . `[`. "$lResult" == CODE ]; then
699 LBarr[8]=$[ ${LBarr[8]} + 1 ]
700 else
701 LBarr[9]=$[ ${LBarr[9]} + 1 ]
702 fi
703 fi
704
705 if [scip-shell system . . `[`. "$overall_status" == $REJ_STATUS ]; then
706 if [scip-shell system . . `[`. "x$LBZID" != x ]; then
707 LBarr[10]=$[ ${LBarr[10]} + 1 ]
708 fi
709 if [scip-shell system . . `[`. "x$KBZID" != x ]; then
710 KBarr[10]=$[ ${KBarr[10]} + 1 ]
711 fi
712 elif [scip-shell system . . `[`. "$overall_status" == $PASS_STATUS ]; then
713 if [scip-shell system . . `[`. "x$LBZID" != x ]; then
714 LBarr[11]=$[ ${LBarr[11]} + 1 ]
715 fi
716 if [scip-shell system . . `[`. "x$KBZID" != x ]; then
717 KBarr[11]=$[ ${KBarr[11]} + 1 ]
718 fi
719 else
720 if [scip-shell system . . `[`. "x$LBZID" != x ]; then
721 LBarr[12]=$[ ${LBarr[12]} + 1 ]
722 fi
723 if [scip-shell system . . `[`. "x$KBZID" != x ]; then
724 KBarr[12]=$[ ${KBarr[12]} + 1 ]
725 fi
726 fi
727 fi
728
729 TSRESname=`get_test_result_namescip-shell shell acpica-unix 20260408-1 get_test_result_name(). "$TSRESstat"`
730 if [scip-shell system . . `[`. "$overall_status" == $REJ_STATUS ]; then
731 TSRESname="$ST_EMPT"
732 fi
733
734 # Summary error string
735
736 LErrStr="$LerrRJ$LerrCOMP$LerrSTAT$LerrRES"
737 KErrStr="$KerrRJ$KerrCOMP$KerrSTAT$KerrRES"
738 CommonErrStr="$CerrCOMP$CerrSTMAN$CerrTSRESID$CerrCONFORMITY$CerrPRIOR$CerrINTEGR"
739 AllErrors="$LErrStr$KErrStr$CommonErrStr$CerrMISC $tobefixed"
740 x=`echoscip-shell system . . echo. "$AllErrors" | sedscip-shell system . . sed. 's/ //'g`
741 AccumulateErrors="$AccumulateErrors$x"
742 line="$AllErrors|$number|$s0|$s1|$lst|$s2|$kst|$TSRESname|$s3|$s4| $tobefixed$s5"
743 SUMMARY[$number]="$line"
744
745 if [scip-shell system . . `[`. "x$print_complete_list_per_comp" != x ]; then
746 if [[ "$Component" == $I_COMP ]]; then
747 SUMMARY_I="$SUMMARY_I:$number"
748 elif [[ "$Component" == $C_COMP ]]; then
749 SUMMARY_C="$SUMMARY_C:$number"
750 elif [[ "$Component" == $M_COMP ]]; then
751 SUMMARY_M="$SUMMARY_M:$number"
752 elif [[ "$Component" == $U_COMP ]]; then
753 SUMMARY_U="$SUMMARY_U:$number"
754 elif [[ "$Component" == $S_COMP ]]; then
755 SUMMARY_S="$SUMMARY_S:$number"
756 else
757 SUMMARY_UNDEF="$SUMMARY_UNDEF:$number"
758 fi
759 fi
760
761 if [scip-shell system . . `[`. "$not_resolved" == yes ]; then
762 if [[ "$Component" == $I_COMP ]]; then
763 NOT_RESOLVED_I="$NOT_RESOLVED_I:$number"
764 elif [[ "$Component" == $C_COMP ]]; then
765 NOT_RESOLVED_C="$NOT_RESOLVED_C:$number"
766 elif [[ "$Component" == $M_COMP ]]; then
767 NOT_RESOLVED_M="$NOT_RESOLVED_M:$number"
768 elif [[ "$Component" == $U_COMP ]]; then
769 NOT_RESOLVED_U="$NOT_RESOLVED_U:$number"
770 elif [[ "$Component" == $S_COMP ]]; then
771 NOT_RESOLVED_S="$NOT_RESOLVED_S:$number"
772 else
773 NOT_RESOLVED_UNDEF="$NOT_RESOLVED_UNDEF:$number"
774 fi
775 notresolvedcnt=$[ $notresolvedcnt + 1 ]
776 elif [scip-shell system . . `[`. "$resolved_integrated_in_bz" == yes ]; then
777 if [[ "$Component" == $I_COMP ]]; then
778 RESOLVED_INTEGRATED_IN_BZ_I="$RESOLVED_INTEGRATED_IN_BZ_I:$number"
779 elif [[ "$Component" == $C_COMP ]]; then
780 RESOLVED_INTEGRATED_IN_BZ_C="$RESOLVED_INTEGRATED_IN_BZ_C:$number"
781 elif [[ "$Component" == $M_COMP ]]; then
782 RESOLVED_INTEGRATED_IN_BZ_M="$RESOLVED_INTEGRATED_IN_BZ_M:$number"
783 elif [[ "$Component" == $U_COMP ]]; then
784 RESOLVED_INTEGRATED_IN_BZ_U="$RESOLVED_INTEGRATED_IN_BZ_U:$number"
785 elif [[ "$Component" == $S_COMP ]]; then
786 RESOLVED_INTEGRATED_IN_BZ_S="$RESOLVED_INTEGRATED_IN_BZ_S:$number"
787 else
788 RESOLVED_INTEGRATED_IN_BZ_UNDEF="$RESOLVED_INTEGRATED_IN_BZ_UNDEF:$number"
789 fi
790 rintinbzcnt=$[ $rintinbzcnt + 1 ]
791 elif [scip-shell system . . `[`. "$resolved_not_integrated_in_bz" == yes ]; then
792 if [[ "$Component" == $I_COMP ]]; then
793 RESOLVED_NOT_INTEGRATED_IN_BZ_I="$RESOLVED_NOT_INTEGRATED_IN_BZ_I:$number"
794 elif [[ "$Component" == $C_COMP ]]; then
795 RESOLVED_NOT_INTEGRATED_IN_BZ_C="$RESOLVED_NOT_INTEGRATED_IN_BZ_C:$number"
796 elif [[ "$Component" == $M_COMP ]]; then
797 RESOLVED_NOT_INTEGRATED_IN_BZ_M="$RESOLVED_NOT_INTEGRATED_IN_BZ_M:$number"
798 elif [[ "$Component" == $U_COMP ]]; then
799 RESOLVED_NOT_INTEGRATED_IN_BZ_U="$RESOLVED_NOT_INTEGRATED_IN_BZ_U:$number"
800 elif [[ "$Component" == $S_COMP ]]; then
801 RESOLVED_NOT_INTEGRATED_IN_BZ_S="$RESOLVED_NOT_INTEGRATED_IN_BZ_S:$number"
802 else
803 RESOLVED_NOT_INTEGRATED_IN_BZ_UNDEF="$RESOLVED_NOT_INTEGRATED_IN_BZ_UNDEF:$number"
804 fi
805 rnotintcnt=$[ $rnotintcnt + 1 ]
806 elif [scip-shell system . . `[`. "$rejected_in_bz" == yes ]; then
807 REJECTED_IN_BZILLA="$REJECTED_IN_BZILLA:$number"
808 rjinbzilla=$[ $rjinbzilla + 1 ]
809 elif [scip-shell system . . `[`. "$rejected_not_in_bz" == yes ]; then
810 if [[ "$Component" == $I_COMP ]]; then
811 REJECTED_NOT_IN_BZILLA_I="$REJECTED_NOT_IN_BZILLA_I:$number"
812 elif [[ "$Component" == $C_COMP ]]; then
813 REJECTED_NOT_IN_BZILLA_C="$REJECTED_NOT_IN_BZILLA_C:$number"
814 elif [[ "$Component" == $M_COMP ]]; then
815 REJECTED_NOT_IN_BZILLA_M="$REJECTED_NOT_IN_BZILLA_M:$number"
816 elif [[ "$Component" == $U_COMP ]]; then
817 REJECTED_NOT_IN_BZILLA_U="$REJECTED_NOT_IN_BZILLA_U:$number"
818 elif [[ "$Component" == $S_COMP ]]; then
819 REJECTED_NOT_IN_BZILLA_S="$REJECTED_NOT_IN_BZILLA_S:$number"
820 else
821 REJECTED_NOT_IN_BZILLA_UNDEF="$REJECTED_NOT_IN_BZILLA_UNDEF:$number"
822 fi
823 rjnotinbzilla=$[ $rjnotinbzilla + 1 ]
824 fi
825
826 if [scip-shell system . . `[`. "$resolved_state_in_bzilla" == yes ]; then
827 if [[ "$Component" == $I_COMP ]]; then
828 RESOLVED_STATE_IN_BZILLA_I="$RESOLVED_STATE_IN_BZILLA_I:$number"
829 elif [[ "$Component" == $C_COMP ]]; then
830 RESOLVED_STATE_IN_BZILLA_C="$RESOLVED_STATE_IN_BZILLA_C:$number"
831 elif [[ "$Component" == $M_COMP ]]; then
832 RESOLVED_STATE_IN_BZILLA_M="$RESOLVED_STATE_IN_BZILLA_M:$number"
833 elif [[ "$Component" == $U_COMP ]]; then
834 RESOLVED_STATE_IN_BZILLA_U="$RESOLVED_STATE_IN_BZILLA_U:$number"
835 elif [[ "$Component" == $S_COMP ]]; then
836 RESOLVED_STATE_IN_BZILLA_S="$RESOLVED_STATE_IN_BZILLA_S:$number"
837 else
838 RESOLVED_STATE_IN_BZILLA_UNDEF="$RESOLVED_STATE_IN_BZILLA_UNDEF:$number"
839 fi
840 rstateinbzilla=$[ $rstateinbzilla + 1 ]
841 fi
842
843 if [scip-shell system . . `[`. "$resolved_state_in_bzilla_but_fail" == yes ]; then
844 if [[ "$Component" == $I_COMP ]]; then
845 RESOLVED_STATE_IN_BZILLA_BUT_FAIL_I="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_I:$number"
846 elif [[ "$Component" == $C_COMP ]]; then
847 RESOLVED_STATE_IN_BZILLA_BUT_FAIL_C="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_C:$number"
848 elif [[ "$Component" == $M_COMP ]]; then
849 RESOLVED_STATE_IN_BZILLA_BUT_FAIL_M="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_M:$number"
850 elif [[ "$Component" == $U_COMP ]]; then
851 RESOLVED_STATE_IN_BZILLA_BUT_FAIL_U="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_U:$number"
852 elif [[ "$Component" == $S_COMP ]]; then
853 RESOLVED_STATE_IN_BZILLA_BUT_FAIL_S="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_S:$number"
854 else
855 RESOLVED_STATE_IN_BZILLA_BUT_FAIL_UNDEF="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_UNDEF:$number"
856 fi
857 rstateinbzillafail=$[ $rstateinbzillafail + 1 ]
858 fi
859
860 else
861 c32n_GL="$s0"
862 c64n_GL="$s1"
863 c32s_GL="$s2"
864 c64s_GL="$s3"
865 l32n_GL="$s4"
866 l64n_GL="$s5"
867 l32s_GL="$s6"
868 l64s_GL="$s7"
869
870 generate_statusscip-shell shell acpica-unix 20260408-1 generate_status(). "$number"
871 status=$?
872
873 if [scip-shell system . . `[`. "x$number" != x ]; then
874 SUMMARY[$number]="$status"
875 fi
876 fi
877
878 done
879
880 IFS=$OLD_IFS
881 }
882
883 init_summary_tablescip-shell shell acpica-unix 20260408-1 init_summary_table().()
884 {
885 # Elements of arrays:
886 # 0 - rejected
887 # 1 - undef_fixed
888 # 2 - pass
889 # 3 - skipped
890 # 4 - failed
891 # 5 - blocked
892 # 6 - undef_not_fixed
893
894 InternalErrCount=0
895
896 # Interpreter
897 StINT[0]=0
898 StINT[1]=0
899 StINT[2]=0
900 StINT[3]=0
901 StINT[4]=0
902 StINT[5]=0
903 StINT[6]=0
904 StINT[7]=0
905
906 # iASL
907 StASL[0]=0
908 StASL[1]=0
909 StASL[2]=0
910 StASL[3]=0
911 StASL[4]=0
912 StASL[5]=0
913 StASL[6]=0
914 StASL[7]=0
915
916 # Simulation
917 StSIM[0]=0
918 StSIM[1]=0
919 StSIM[2]=0
920 StSIM[3]=0
921 StSIM[4]=0
922 StSIM[5]=0
923 StSIM[6]=0
924 StSIM[7]=0
925
926 # Utilities
927 StUTIL[0]=0
928 StUTIL[1]=0
929 StUTIL[2]=0
930 StUTIL[3]=0
931 StUTIL[4]=0
932 StUTIL[5]=0
933 StUTIL[6]=0
934 StUTIL[7]=0
935
936 # Specs
937 StSPEC[0]=0
938 StSPEC[1]=0
939 StSPEC[2]=0
940 StSPEC[3]=0
941 StSPEC[4]=0
942 StSPEC[5]=0
943 StSPEC[6]=0
944 StSPEC[7]=0
945
946 # LBarr
947
948 LBarr[0]=0
949 LBarr[1]=0
950 LBarr[2]=0
951 LBarr[3]=0
952 LBarr[4]=0
953 LBarr[5]=0
954 LBarr[6]=0
955 LBarr[7]=0
956 LBarr[8]=0
957 LBarr[9]=0
958 LBarr[10]=0
959 LBarr[11]=0
960 LBarr[12]=0
961
962 # KBarr
963
964 KBarr[0]=0
965 KBarr[1]=0
966 KBarr[2]=0
967 KBarr[3]=0
968 KBarr[4]=0
969 KBarr[5]=0
970 KBarr[6]=0
971 KBarr[7]=0
972 KBarr[8]=0
973 KBarr[9]=0
974 KBarr[10]=0
975 KBarr[11]=0
976 KBarr[12]=0
977 }
978
979 increment_summary_tablescip-shell shell acpica-unix 20260408-1 increment_summary_table().()
980 {
981 if [scip-shell system . . `[`. "$1" == $I_COMP ]; then
982 StINT[$2]=$[ ${StINT[$2]} + 1 ]
983 elif [scip-shell system . . `[`. "$1" == $C_COMP ]; then
984 StASL[$2]=$[ ${StASL[$2]} + 1 ]
985 elif [scip-shell system . . `[`. "$1" == $S_COMP ]; then
986 StSPEC[$2]=$[ ${StSPEC[$2]} + 1 ]
987 elif [scip-shell system . . `[`. "$1" == $M_COMP ]; then
988 StSIM[$2]=$[ ${StSIM[$2]} + 1 ]
989 elif [scip-shell system . . `[`. "$1" == $U_COMP ]; then
990 StUTIL[$2]=$[ ${StUTIL[$2]} + 1 ]
991 fi
992 }
993
994 report_bug_summaryscip-shell shell acpica-unix 20260408-1 report_bug_summary().()
995 {
996 y0=$[ ${StINT[0]} + ${StASL[0]} + ${StSIM[0]} + ${StUTIL[0]} + ${StSPEC[0]} ]
997 y1=$[ ${StINT[1]} + ${StASL[1]} + ${StSIM[1]} + ${StUTIL[1]} + ${StSPEC[1]} ]
998 y2=$[ ${StINT[2]} + ${StASL[2]} + ${StSIM[2]} + ${StUTIL[2]} + ${StSPEC[2]} ]
999 y3=$[ ${StINT[3]} + ${StASL[3]} + ${StSIM[3]} + ${StUTIL[3]} + ${StSPEC[3]} ]
1000
1001 x=" "
1002 echoscip-shell system . . echo. "Table 2 (Summary of bugs)"
1003 echoscip-shell system . . echo. ""
1004 echoscip-shell system . . echo. " | Interpreter iASL Simulation Utilities Specs | TOTAL |"
1005 echoscip-shell system . . echo. "=============================|=========================================================|===========|"
1006 echoscip-shell system . . echo. "F |* & REJECTED | ${StINT[0]}$x${StASL[0]}$x${StSIM[0]}$x${StUTIL[0]}$x${StSPEC[0]} | $y0"
1007 echoscip-shell system . . echo. " I |UNDEFINED & FIXED | ${StINT[1]}$x${StASL[1]}$x${StSIM[1]}$x${StUTIL[1]}$x${StSPEC[1]} | $y1"
1008 echoscip-shell system . . echo. " X |PASS | ${StINT[2]}$x${StASL[2]}$x${StSIM[2]}$x${StUTIL[2]}$x${StSPEC[2]} | $y2"
1009 echoscip-shell system . . echo. " ED |SKIPPED | ${StINT[3]}$x${StASL[3]}$x${StSIM[3]}$x${StUTIL[3]}$x${StSPEC[3]} | $y3"
1010 echoscip-shell system . . echo. "-----------------------------|---------------------------------------------------------|"
1011
1012 y4=$[ ${StINT[4]} + ${StASL[4]} + ${StSIM[4]} + ${StUTIL[4]} + ${StSPEC[4]} ]
1013 y5=$[ ${StINT[5]} + ${StASL[5]} + ${StSIM[5]} + ${StUTIL[5]} + ${StSPEC[5]} ]
1014 y6=$[ ${StINT[6]} + ${StASL[6]} + ${StSIM[6]} + ${StUTIL[6]} + ${StSPEC[6]} ]
1015 # y7=$[ ${StINT[7]} + ${StASL[7]} + ${StSIM[7]} + ${StUTIL[7]} + ${StSPEC[7]} ]
1016
1017 x00=$[ ${StINT[0]} + ${StINT[1]} + ${StINT[2]} + ${StINT[3]} ]
1018 x01=$[ ${StASL[0]} + ${StASL[1]} + ${StASL[2]} + ${StASL[3]} ]
1019 x02=$[ ${StSIM[0]} + ${StSIM[1]} + ${StSIM[2]} + ${StSIM[3]} ]
1020 x03=$[ ${StUTIL[0]} + ${StUTIL[1]} + ${StUTIL[2]} + ${StUTIL[3]} ]
1021 x04=$[ ${StSPEC[0]} + ${StSPEC[1]} + ${StSPEC[2]} + ${StSPEC[3]} ]
1022 x05=$[ $x00 + $x01 + $x02 + $x03 + $x04 ]
1023
1024 echoscip-shell system . . echo. " Total (fixed) | $x00$x$x01$x$x02$x$x03$x$x04 | $x05"
1025
1026 echoscip-shell system . . echo. "-----------------------------|---------------------------------------------------------|"
1027 echoscip-shell system . . echo. "TO |FAIL | ${StINT[4]}$x${StASL[4]}$x${StSIM[4]}$x${StUTIL[4]}$x${StSPEC[4]} | $y4"
1028 echoscip-shell system . . echo. " BE |BLOCKED | ${StINT[5]}$x${StASL[5]}$x${StSIM[5]}$x${StUTIL[5]}$x${StSPEC[5]} | $y5"
1029 echoscip-shell system . . echo. " FIXED|UNDEFINED & !FIXED | ${StINT[6]}$x${StASL[6]}$x${StSIM[6]}$x${StUTIL[6]}$x${StSPEC[6]} | $y6"
1030 # echo " | Other (must be 0) | ${StINT[7]}$x${StASL[7]}$x${StSIM[7]}$x${StUTIL[7]}$x${StSPEC[7]} | $y7"
1031 echoscip-shell system . . echo. "-----------------------------|---------------------------------------------------------|"
1032
1033
1034 x10=$[ ${StINT[4]} + ${StINT[5]} + ${StINT[6]} ]
1035 x11=$[ ${StASL[4]} + ${StASL[5]} + ${StASL[6]} ]
1036 x12=$[ ${StSIM[4]} + ${StSIM[5]} + ${StSIM[6]} ]
1037 x13=$[ ${StUTIL[4]} + ${StUTIL[5]} + ${StUTIL[6]} ]
1038 x14=$[ ${StSPEC[4]} + ${StSPEC[5]} + ${StSPEC[6]} ]
1039 x15=$[ $x10 + $x11 + $x12 + $x13 + $x14 ]
1040
1041 echoscip-shell system . . echo. " Total (NOT fixed) | $x10$x$x11$x$x12$x$x13$x$x14 | $x15"
1042
1043 x20=$[ $x00 + $x10 ]
1044 x21=$[ $x01 + $x11 ]
1045 x22=$[ $x02 + $x12 ]
1046 x23=$[ $x03 + $x13 ]
1047 x24=$[ $x04 + $x14 ]
1048 x25=$[ $x20 + $x21 + $x22 + $x23 + $x24 ]
1049
1050 echoscip-shell system . . echo. "-----------------------------|---------------------------------------------------------|"
1051 echoscip-shell system . . echo. " TOTAL ($MAXBDEMO) | $x20$x$x21$x$x22$x$x23$x$x24 | $x25"
1052 echoscip-shell system . . echo. "===================================================================================================|"
1053
1054 if [scip-shell system . . `[`. "$x25" != "$MAXBDEMO" ]; then
1055 echoscip-shell system . . echo. "ERROR 0: report_bug_summary, incorrect TOTAL, expected <$MAXBDEMO> received <$x25>"
1056 InternalErrCount=$[ $InternalErrCount + 1 ]
1057 fi
1058 }
1059
1060 report_internal_bugs_numberscip-shell shell acpica-unix 20260408-1 report_internal_bugs_number().()
1061 {
1062 echoscip-shell system . . echo. "Number of data inconsistency internal errors: InternalErrCount = $InternalErrCount (program to be updated)"
1063 }
1064
1065 status_calculation_commentscip-shell shell acpica-unix 20260408-1 status_calculation_comment().()
1066 {
1067 echoscip-shell system . . echo. "Calculate status of bug according to the results of bdemo-tests run on two systems"
1068 echoscip-shell system . . echo. "for all modes (norm-32,norm-64,slack-32,slack-64):"
1069 echoscip-shell system . . echo. ""
1070 echoscip-shell system . . echo. " UNDEFINED & FIXED == PASS"
1071 echoscip-shell system . . echo. ""
1072 echoscip-shell system . . echo. " UNDEFINED & {FAIL|BLOCKED| |PASS|SKIPPED} == UNDEFINED == FAIL"
1073 echoscip-shell system . . echo. " REJECTED & {FAIL|BLOCKED|UNDEFINED|PASS|SKIPPED} == REJECTED == PASS"
1074 echoscip-shell system . . echo. " FAIL & { BLOCKED|UNDEFINED|PASS|SKIPPED} == FAIL == FAIL"
1075 echoscip-shell system . . echo. " BLOCKED & { UNDEFINED|PASS|SKIPPED} == BLOCKED == FAIL"
1076 echoscip-shell system . . echo. " PASS & { SKIPPED} == PASS == PASS"
1077 }
1078
1079 status_entries_commentscip-shell shell acpica-unix 20260408-1 status_entries_comment().()
1080 {
1081 echoscip-shell system . . echo. "Bug status entries:"
1082 echoscip-shell system . . echo. ""
1083 echoscip-shell system . . echo. " REJECTED : bug is rejected - no matter what are the results of bdemo-test runs"
1084 echoscip-shell system . . echo. " UNDEFINED & FIXED : no runtime bdemo-test for this bug (impossible), status FIXED was set up manually"
1085 echoscip-shell system . . echo. " FAIL : some of runs of the relevant bdemo-test on either system in different modes failed"
1086 echoscip-shell system . . echo. " BLOCKED : no failures for the bdemo-test but it was not run in some of modes (see FAIL) (blocked temporary for some reason)"
1087 echoscip-shell system . . echo. " PASS : the bdemo-test doesn't failed or blocked and some runs resulted in PASS"
1088 echoscip-shell system . . echo. " SKIPPED : no FAIL/BLOCKED/PASS for this bdemo-test and some run was SKIPPED (no conditions to run the test)"
1089 echoscip-shell system . . echo. " UNDEFINED : no result of bdemo-test for this bug (either temporary or impossible to generate runtime test conditions at all)"
1090 }
1091
1092
1093 # arg1 - the first multi-result directory
1094 # arg2 - the second multi-result directory
1095 init_bdemo_sumscip-shell shell acpica-unix 20260408-1 init_bdemo_sum().()
1096 {
1097 if [scip-shell system . . `[`. -d "$DIR0" ]; then
1098 BDEMO_SUM="$DIR0/__STATUS_OF_ALL_BDEMO_TESTS"
1099 elif [scip-shell system . . `[`. -d "$DIR1" ]; then
1100 BDEMO_SUM="$DIR1/__STATUS_OF_ALL_BDEMO_TESTS"
1101 else
1102 do_exit 1 "No one directory specified by both parameters"
1103 fi
1104 }
1105
1106 report_head_of_tablescip-shell shell acpica-unix 20260408-1 report_head_of_table().()
1107 {
1108 echoscip-shell system . . echo. "Errors IID COMP LBZID ST/RES KBZID ST/RES TEST-RESULT STATE-MANUALLY PR SUMMARY"
1109 echoscip-shell system . . echo. "=====================================================================================================|"
1110 }
1111
1112 report_end_of_tablescip-shell shell acpica-unix 20260408-1 report_end_of_table().()
1113 {
1114 echoscip-shell system . . echo. "=====================================================================================================|"
1115 }
1116
1117 report_mid_linescip-shell shell acpica-unix 20260408-1 report_mid_line().()
1118 {
1119 echoscip-shell system . . echo. " |---|-------|------|---------|------|---------|------------|------------------|-----|"
1120 }
1121
1122 do_report_summaryscip-shell shell acpica-unix 20260408-1 do_report_summary().()
1123 {
1124 if [scip-shell system . . `[`. "x$print_complete_list_per_comp" != x ]; then
1125 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$SUMMARY_S"
1126 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$SUMMARY_C"
1127 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$SUMMARY_M"
1128 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$SUMMARY_U"
1129 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$SUMMARY_UNDEF"
1130 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$SUMMARY_I"
1131 else
1132 index=0
1133 while [scip-shell system . . `[`. 1 ]
1134 do
1135 if [[ $index -ge $MAXBDEMO ]]; then
1136 break
1137 fi
1138 echoscip-shell system . . echo. "${SUMMARY[$index]}"
1139 index=$[ $index + 1 ]
1140 done
1141 fi
1142
1143 report_end_of_tablescip-shell shell acpica-unix 20260408-1 report_end_of_table().
1144 }
1145
1146 # arg1 - numbers of bugs - ":n0:n1:...:nX"
1147 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary().()
1148 {
1149 if [scip-shell system . . `[`. "x$1" != x ]; then
1150 echoscip-shell system . . echo. "$1" | awkscip-shell system . . awk. -F: '{ for (i=2; i<=NF; i++) { print $i}}' |\
1151 while [scip-shell system . . `[`. 1 ]
1152 do
1153 read number
1154 if [scip-shell system . . `[`. $? -ne 0 ] ; then
1155 break
1156 fi
1157 echoscip-shell system . . echo. "${SUMMARY[$number]}"
1158 done
1159 fi
1160 }
1161
1162 report_rejected_in_bzillascip-shell shell acpica-unix 20260408-1 report_rejected_in_bzilla().()
1163 {
1164 x=$[ $rjnotinbzilla + $rjinbzilla ]
1165
1166 echoscip-shell system . . echo. "Table 3 (Rejected, $rjnotinbzilla + $rjinbzilla == $x)"
1167 echoscip-shell system . . echo. ""
1168 report_head_of_tablescip-shell shell acpica-unix 20260408-1 report_head_of_table().
1169
1170 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$REJECTED_NOT_IN_BZILLA_S"
1171 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$REJECTED_NOT_IN_BZILLA_C"
1172 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$REJECTED_NOT_IN_BZILLA_M"
1173 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$REJECTED_NOT_IN_BZILLA_U"
1174 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$REJECTED_NOT_IN_BZILLA_UNDEF"
1175 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$REJECTED_NOT_IN_BZILLA_I"
1176
1177 if [scip-shell system . . `[`. $rjnotinbzilla -gt 0 ]; then
1178 report_mid_linescip-shell shell acpica-unix 20260408-1 report_mid_line().
1179 fi
1180
1181 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$REJECTED_IN_BZILLA"
1182
1183 report_end_of_tablescip-shell shell acpica-unix 20260408-1 report_end_of_table().
1184 }
1185
1186 report_resolved_integratedscip-shell shell acpica-unix 20260408-1 report_resolved_integrated().()
1187 {
1188 echoscip-shell system . . echo. "Table 4 (PASS-state and INTEGRATED (of BZ), $rintinbzcnt)"
1189
1190 echoscip-shell system . . echo. ""
1191 report_head_of_tablescip-shell shell acpica-unix 20260408-1 report_head_of_table().
1192
1193 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_INTEGRATED_IN_BZ_S"
1194 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_INTEGRATED_IN_BZ_C"
1195 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_INTEGRATED_IN_BZ_M"
1196 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_INTEGRATED_IN_BZ_U"
1197 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_INTEGRATED_IN_BZ_UNDEF"
1198 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_INTEGRATED_IN_BZ_I"
1199
1200 report_end_of_tablescip-shell shell acpica-unix 20260408-1 report_end_of_table().
1201 }
1202
1203 report_resolved_not_integratedscip-shell shell acpica-unix 20260408-1 report_resolved_not_integrated().()
1204 {
1205 echoscip-shell system . . echo. "Table 5 (PASS-state but NOT INTEGRATED (of BZ), $rnotintcnt)"
1206 echoscip-shell system . . echo. ""
1207 report_head_of_tablescip-shell shell acpica-unix 20260408-1 report_head_of_table().
1208
1209 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_NOT_INTEGRATED_IN_BZ_S"
1210 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_NOT_INTEGRATED_IN_BZ_C"
1211 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_NOT_INTEGRATED_IN_BZ_M"
1212 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_NOT_INTEGRATED_IN_BZ_U"
1213 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_NOT_INTEGRATED_IN_BZ_UNDEF"
1214 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_NOT_INTEGRATED_IN_BZ_I"
1215
1216 report_end_of_tablescip-shell shell acpica-unix 20260408-1 report_end_of_table().
1217 }
1218
1219 report_not_resolvedscip-shell shell acpica-unix 20260408-1 report_not_resolved().()
1220 {
1221 echoscip-shell system . . echo. "Table 6 (FAIL-state, $notresolvedcnt)"
1222 echoscip-shell system . . echo. ""
1223 report_head_of_tablescip-shell shell acpica-unix 20260408-1 report_head_of_table().
1224
1225 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$NOT_RESOLVED_S"
1226 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$NOT_RESOLVED_C"
1227 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$NOT_RESOLVED_M"
1228 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$NOT_RESOLVED_U"
1229 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$NOT_RESOLVED_UNDEF"
1230 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$NOT_RESOLVED_I"
1231
1232 report_end_of_tablescip-shell shell acpica-unix 20260408-1 report_end_of_table().
1233 }
1234
1235 report_resolved_state_in_bzillascip-shell shell acpica-unix 20260408-1 report_resolved_state_in_bzilla().()
1236 {
1237 echoscip-shell system . . echo. "Table 7 (RESOLVED-Bugzilla-State, $rstateinbzilla)"
1238 echoscip-shell system . . echo. ""
1239 report_head_of_tablescip-shell shell acpica-unix 20260408-1 report_head_of_table().
1240
1241 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_S"
1242 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_C"
1243 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_M"
1244 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_U"
1245 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_UNDEF"
1246 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_I"
1247
1248 report_end_of_tablescip-shell shell acpica-unix 20260408-1 report_end_of_table().
1249 }
1250
1251 report_resolved_state_in_bzilla_but_failscip-shell shell acpica-unix 20260408-1 report_resolved_state_in_bzilla_but_fail().()
1252 {
1253 echoscip-shell system . . echo. "Table 8 (RESOLVED-Bugzilla-State BUT FAIL-state, $rstateinbzillafail)"
1254 echoscip-shell system . . echo. ""
1255 report_head_of_tablescip-shell shell acpica-unix 20260408-1 report_head_of_table().
1256
1257 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_S"
1258 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_C"
1259 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_M"
1260 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_U"
1261 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_UNDEF"
1262 report_subset_of_summaryscip-shell shell acpica-unix 20260408-1 report_subset_of_summary(). "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_I"
1263
1264 report_end_of_tablescip-shell shell acpica-unix 20260408-1 report_end_of_table().
1265 }
1266
1267 report_bzilla_summaryscip-shell shell acpica-unix 20260408-1 report_bzilla_summary().()
1268 {
1269 y=$[ ${LBarr[0]} + ${LBarr[1]} + ${LBarr[2]} + ${LBarr[3]}\
1270 + ${LBarr[4]} + ${LBarr[5]} + ${LBarr[6]} + ${LBarr[7]}\
1271 + ${LBarr[8]} + ${LBarr[9]} ]
1272
1273 z=$[ ${KBarr[0]} + ${KBarr[1]} + ${KBarr[2]} + ${KBarr[3]}\
1274 + ${KBarr[4]} + ${KBarr[5]} + ${KBarr[6]} + ${KBarr[7]}\
1275 + ${KBarr[8]} + ${KBarr[9]} ]
1276
1277 x=" "
1278 echoscip-shell system . . echo. "Table 9 (Summary per-State-Result in BZ)"
1279 echoscip-shell system . . echo. ""
1280
1281 echoscip-shell system . . echo. "State Result | LBZ KBZ"
1282 echoscip-shell system . . echo. "=============|==================="
1283 echoscip-shell system . . echo. "NEW | ${LBarr[0]}$x${KBarr[0]}"
1284 echoscip-shell system . . echo. "ASSI | ${LBarr[1]}$x${KBarr[1]}"
1285 echoscip-shell system . . echo. "NEED | ${LBarr[2]}$x${KBarr[2]}"
1286 echoscip-shell system . . echo. "RESO CODE | ${LBarr[3]}$x${KBarr[3]}"
1287 echoscip-shell system . . echo. "RESO PATC | ${LBarr[4]}$x${KBarr[4]}"
1288 echoscip-shell system . . echo. "RESO FIXE | ${LBarr[5]}$x${KBarr[5]}"
1289 echoscip-shell system . . echo. "RESO INVA | ${LBarr[6]}$x${KBarr[6]}"
1290 echoscip-shell system . . echo. "REJE DOCU | ${LBarr[7]}$x${KBarr[7]}"
1291 echoscip-shell system . . echo. "CLOS CODE | ${LBarr[8]}$x${KBarr[8]}"
1292 echoscip-shell system . . echo. "Other | ${LBarr[9]}$x${KBarr[9]}"
1293 echoscip-shell system . . echo. "-------------|-------------------"
1294 echoscip-shell system . . echo. "Total | $y$x$z"
1295 echoscip-shell system . . echo. "=============|==================="
1296
1297 y=$[ ${LBarr[10]} + ${LBarr[11]} + ${LBarr[12]} ]
1298 z=$[ ${KBarr[10]} + ${KBarr[11]} + ${KBarr[12]} ]
1299
1300 echoscip-shell system . . echo. ""
1301 echoscip-shell system . . echo. ""
1302 echoscip-shell system . . echo. ""
1303 echoscip-shell system . . echo. "Table 10 (Summary state of bugs (of BZ))"
1304 echoscip-shell system . . echo. ""
1305 echoscip-shell system . . echo. " State | LBZ KBZ"
1306 echoscip-shell system . . echo. "=============|==================="
1307 echoscip-shell system . . echo. "REJECTED | ${LBarr[10]}$x${KBarr[10]}"
1308 echoscip-shell system . . echo. "PASS-state | ${LBarr[11]}$x${KBarr[11]}"
1309 echoscip-shell system . . echo. "FAIL-state | ${LBarr[12]}$x${KBarr[12]}"
1310 echoscip-shell system . . echo. "-------------|-------------------"
1311 echoscip-shell system . . echo. "Total | $y$x$z"
1312 echoscip-shell system . . echo. "================================="
1313 }
1314
1315 report_errors_encounteredscip-shell shell acpica-unix 20260408-1 report_errors_encountered().()
1316 {
1317 echoscip-shell system . . echo. "A list of encountered errors:"
1318 echoscip-shell system . . echo. ""
1319
1320 if [scip-shell system . . `[`. -f "$ERROR_OPCODES" ]; then
1321 z=`echoscip-shell system . . echo. "$AccumulateErrors" | transform_to_single_chars`
1322 report_lines_per_char "$ERROR_OPCODES" "$z"
1323 else
1324 echoscip-shell system . . echo. "Error: ERROR_OPCODES is not file: <$ERROR_OPCODES>"
1325 fi
1326 }
1327
1328 # ############################## MAIN ###############################
1329
1330 datescip-shell system . . date.
1331
1332 DIR0="$1"
1333 DIR1="$2"
1334 ALLBUGS="$3"
1335 KBSUM="$4"
1336 LBSUM="$5"
1337 BUG_STATE_DIR="$6"
1338
1339 BDEMO_SUM=
1340 KBSUM_PARSED=
1341 LBSUM_PARSED=
1342
1343 c32n_GL=
1344 c64n_GL=
1345 c32s_GL=
1346 c64s_GL=
1347 l32n_GL=
1348 l64n_GL=
1349 l32s_GL=
1350 l64s_GL=
1351
1352 UTILSTATUS=0
1353 SUMMARY=
1354
1355 # NOT_RESOLVED=
1356 # RESOLVED_INTEGRATED_IN_BZ=
1357 # RESOLVED_NOT_INTEGRATED_IN_BZ=
1358 # RESOLVED_STATE_IN_BZILLA=
1359 # REJECTED_IN_BZILLA=
1360 # REJECTED_NOT_IN_BZILLA=
1361
1362 LBarr=
1363 KBarr=
1364
1365 ERROR_OPCODES="$BUG_STATE_DIR/ERROR_OPCODES"
1366
1367
1368 # Opcodes of errors
1369 # REJECTED_ERR=1
1370 # COMP_ERR=9
1371
1372
1373 # Arrays for summary information for Interpreter, iASL, Simulation, Utilities, Specs.
1374
1375 StINT=
1376 StASL=
1377 StSIM=
1378 StUTIL=
1379 StSPEC=
1380
1381
1382 # Prepare the summary table of bdemo summary files of two multi-results:
1383
1384 echoscip-shell system . . echo. "Preparing the summary table of bdemo summary files of two multi-results:"
1385 echoscip-shell system . . echo. " the first : $DIR0"
1386 echoscip-shell system . . echo. " the second : $DIR1"
1387 echoscip-shell system . . echo. " ALLBUGS : $ALLBUGS"
1388 echoscip-shell system . . echo. " kernel bugzilla Bug List file : $KBSUM"
1389 echoscip-shell system . . echo. " local bugzilla Bug List file : $LBSUM"
1390
1391 # Initialization
1392
1393 INIT_MAX_BDEMO
1394
1395 system0=
1396 system1=
1397 if [scip-shell system . . `[`. -d "$DIR0" ]; then
1398 COMMONLOGFILE="$DIR0/Summary"
1399 if [scip-shell system . . `[`. ! -f "$COMMONLOGFILE" ]; then
1400 do_exit 1 "COMMONLOGFILE is not file: <$COMMONLOGFILE>"
1401 else
1402 system0=`get_name_of_system "$COMMONLOGFILE"`
1403 fi
1404 fi
1405 if [scip-shell system . . `[`. -d "$DIR1" ]; then
1406 COMMONLOGFILE="$DIR1/Summary"
1407 if [scip-shell system . . `[`. ! -f "$COMMONLOGFILE" ]; then
1408 do_exit 1 "COMMONLOGFILE is not file: <$COMMONLOGFILE>"
1409 else
1410 system1=`get_name_of_system "$COMMONLOGFILE"`
1411 fi
1412 fi
1413
1414 if [scip-shell system . . `[`. ! -f "$KBSUM" ]; then
1415 do_exit 1 "KBSUM is not file: <$KBSUM>"
1416 fi
1417
1418 if [scip-shell system . . `[`. ! -f "$LBSUM" ]; then
1419 do_exit 1 "LBSUM is not file: <$LBSUM>"
1420 fi
1421
1422 if [scip-shell system . . `[`. -d "$DIR0" ]; then
1423 KBSUM_PARSED="$DIR0/__KERNEL_ASLTS_BUG_LIST"
1424 LBSUM_PARSED="$DIR0/__LOCAL_ASLTS_BUG_LIST"
1425 elif [scip-shell system . . `[`. -d "$DIR1" ]; then
1426 KBSUM_PARSED="$DIR1/__KERNEL_ASLTS_BUG_LIST"
1427 LBSUM_PARSED="$DIR1/__LOCAL_ASLTS_BUG_LIST"
1428 fi
1429
1430 if [scip-shell system . . `[`. "x$KBSUM_PARSED" == x -o "x$LBSUM_PARSED" == x ]; then
1431 do_exit 1 "Failed to initialize KBSUM_PARSED & LBSUM_PARSED"
1432 fi
1433
1434 if [scip-shell system . . `[`. ! -f "$ALLBUGS" ]; then
1435 do_exit 1 "ALLBUGS is not file: <$ALLBUGS>"
1436 fi
1437
1438 init_bdemo_sumscip-shell shell acpica-unix 20260408-1 init_bdemo_sum().
1439
1440 # Parse the Bug List files (kernel and local bugzilla)
1441
1442 echoscip-shell system . . echo. "Parse the Bug List files (kernel and local bugzilla)"
1443 echoscip-shell system . . echo. " kernel bugzilla Bug List file : $KBSUM"
1444 echoscip-shell system . . echo. " local bugzilla Bug List file : $LBSUM"
1445
1446 parsebuglist "$KBSUM" > "$KBSUM_PARSED"
1447 if [scip-shell system . . `[`. $? -ne 0 ]; then
1448 do_exit 1 "Failed to parse KBSUM: <$KBSUM>"
1449 fi
1450
1451 parsebuglist "$LBSUM" > "$LBSUM_PARSED"
1452 if [scip-shell system . . `[`. $? -ne 0 ]; then
1453 do_exit 1 "Failed to parse LBSUM: <$LBSUM>"
1454 fi
1455
1456 # Concatenate the summary files of bdemos of two multi-results
1457
1458 bdemosconc "$DIR0" "$DIR1"
1459
1460 if [scip-shell system . . `[`. ! -f "$BDEMO_SUM" ]; then
1461 do_exit 1 "BDEMO_SUM is not file: <$BDEMO_SUM>"
1462 fi
1463
1464 echoscip-shell system . . echo. ""
1465 echoscip-shell system . . echo. ""
1466 echoscip-shell system . . echo. "The tables below represent the current state of all bugs encountered by ASLTS project."
1467 echoscip-shell system . . echo. ""
1468 echoscip-shell system . . echo. "The underlying systems the aslts tests were run:"
1469 echoscip-shell system . . echo. ""
1470 echoscip-shell system . . echo. " the first <$system0>"
1471 echoscip-shell system . . echo. " the second <$system1>"
1472 echoscip-shell system . . echo. ""
1473 echoscip-shell system . . echo. "The aslts tests multi-results analyzed:"
1474 echoscip-shell system . . echo. ""
1475 echoscip-shell system . . echo. " the first multi-result directory : <$DIR0>"
1476 echoscip-shell system . . echo. " the second multi-result directory : <$DIR1>"
1477 echoscip-shell system . . echo. ""
1478
1479
1480 report_state_of_bugsscip-shell shell acpica-unix 20260408-1 report_state_of_bugs().
1481
1482 if [scip-shell system . . `[`. 0 -eq 1 ]; then
1483 echoscip-shell system . . echo. ""
1484 status_calculation_commentscip-shell shell acpica-unix 20260408-1 status_calculation_comment().
1485 echoscip-shell system . . echo. ""
1486 status_entries_commentscip-shell shell acpica-unix 20260408-1 status_entries_comment().
1487 fi
1488
1489 echoscip-shell system . . echo. ""
1490
1491 datescip-shell system . . date.
1492
1493 exit $UTILSTATUS
1494
1495
1496