19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
+
-
-
-
-
+
+
+
+
+
+
|
verilog cpu.v | logpro cpu.logpro simlog.html
</verbatim>
The benefit in using logpro calls in a Makefile is that the exit code can be trusted to reflect the pass/fail status correctly. See the [./doc/tip/example.logpro] (which operates on [./doc/tip/example.log] and produces [./doc/tip/example.html]) in the source repository)
<h3>Exit Codes</h3>
<table border=1>
<tr><td>Expect Type</td><td>Exit code</td><td>Description</td></tr>
<tr><td>All ok</td> <td>0</td></tr>
<tr><td>ERROR</td> <td>1</td></tr>
<tr><td>WARNING</td> <td>2</td></tr>
<tr><td>CHECK</td> <td>3</td></tr>
<tr><td>All ok</td> <td>0</td><td>No "errors" or "warnings" found and all "requireds" found.</td></tr>
<tr><td>ERROR</td> <td>1</td><td>One or more expect errors matched or a required or waive check did NOT get hit</td></tr>
<tr><td>WARNING</td> <td>2</td><td>One or more warn rules matched</td></tr>
<tr><td>CHECK</td> <td>3</td><td>A check rule matched</td></tr>
<tr><td>WAIVE</td> <td>4</td><td>A waive rule matched</td></tr>
<tr><td>Reserved for future use</td> <td> > 4 </td><td></td></tr>
</table>
<h3>[Installation]</h3>
<h3>Command file details</h3>
Your command file is written in scheme but don't let that scare you. Only a handful of single line rules are needed to write a rock solid log analyzer. Here is an [example command file] and the [logpro output] from running against this [example log file]
|