# in netbsd make.
do_make proto showflags everything
do_make everything
- if [ -f ibm_checker.out ]; then
- cat ibm_checker.out
- fi
;;
samba|samba_3_0)
do_make proto everything torture
return $bstatus
}
+############################
+# show static analysis results
+action_cc_checker() {
+
+ # default to passing the cc_checker
+ cccstatus=0
+
+ if [ -f ibm_checker.out ]; then
+ cat ibm_checker.out
+ cccstatus=`cat ibm_checker.out | grep '^ \-\-' | wc -l`
+ fi
+
+ echo "CC_CHECKER STATUS: $cccstatus"
+ return $cccstatus;
+}
+
############################
# install the tree
action_install() {
$sstatus = "";
}
+ if ($log =~ /CC_CHECKER STATUS: (.*)/ && $1 > 0) {
+ $sstatus .= "/<span class=\"status checker\">$1</span>";
+ }
+
$ret = "<a href=\"$myself?function=View+Build;host=$host;tree=$tree;compiler=$compiler";
if ($rev) {
$ret .= ";revision=$rev";
==========================================\s+
}{make_collapsible_html('test', $1, $4, $id++, $5)}exgs;
+ $log =~ s{
+ --\ ((ERROR|WARNING|MISTAKE).*?)\n
+ (.*?)
+ \n{3,}
+ }{make_collapsible_html('cc_checker', $1, $3, $id++, $2)}exgs;
print "<tt><pre>" .join('', $log) . "</pre></tt><p>\n";
}
font-weight: bold;
font-family: sans-serif;
}
-#log .status.failed {
- color: rgb(153, 0, 0);;
-}
-#log .status.passed {
- color: rgb(0, 153, 0);
-}
-#log .status.skipped {
- color: rgb(0, 0, 153);
-}
+#log .status.failed { color: rgb(153, 0, 0); }
+#log .status.passed { color: rgb(0, 153, 0); }
+#log .status.skipped { color: rgb(0, 0, 153); }
+#log .status.error { color: rgb(153, 0, 0); }
+#log .status.warning { color: rgb(153, 75, 0); }
+#log .status.mistake { color: rgb(0, 0, 153); }
#log .output {
color: rgb(0, 0, 0);
font-family: monospace;
padding: 10px;
border: 2px solid black;
}
-#log div.unit.passed {
- background-color: rgb(180, 255, 180);
-}
-#log div.unit.failed {
- background-color: rgb(255, 180, 180);
-}
-#log div.unit.skipped {
- background-color: rgb(180, 180, 255);
-}
-#log .unit.failed .output {
- display: block;
-}
-#log .unit.skipped .output {
- display: block;
-}
-#log .unit.passed .output {
- display: none;
-}
+#log div.unit.passed { background-color: rgb(180, 255, 180); }
+#log div.unit.failed { background-color: rgb(255, 180, 180); }
+#log div.unit.skipped { background-color: rgb(180, 180, 255); }
+#log div.unit.warning { background-color: rgb(255, 180, 125); }
+#log div.unit.error { background-color: rgb(255, 180, 180); }
+#log div.unit.mistake { background-color: rgb(180, 180, 255); }
+
+#log .unit.failed .output { display: block;}
+#log .unit.skipped .output { display: block;}
+#log .unit.passed .output { display: none;}
+#log .unit.error .output { display: none;}
+#log .unit.mistake .output { display: none;}
+#log .unit.warning .output { display: none;}
+
#log div.output-stderr-0 {
display: none;
}
color: rgb(255, 0, 0);
}
-.panic {
+.status.panic {
color: rgb(255, 0, 0);
font-weight: bold;
}
+.status.checker {
+ color: rgb(255, 127, 0);
+}
+.status.checker:before {
+ content: "Checker: ";
+}
.status.unknown {
color: rgb(0, 0, 255);
}