// This is a header // The following is an error, also this comment should be "ignored" and thus green, not red begin Blah1 ERROR: This is a real error. It should be red. end Blah1 begin Blah1 This is another part of Blah1 end Blah1 // The following is an expected ErrorLink to section: Blah2
blah2.html end Blah2 // The following is an Error that is Waived (i.e. permitted for the moment). begin Blah3 ERROR: Bad, but allowed for now, should be flagged in brown end Blah3Link to section: Nested2
nested2.html end nested2 // Blah5 tests. Errors are suppressed in section Blah5 but not otherwise begin Blah5 A BLAH5 message in a BLAH5 section is suppressed end Blah5 A BLAH5 message outside a BLAH5 section is counted begin Blah5 A second BLAH5 message in a BLAH5 section is suppressed end Blah5 // Expirations: // // expired error - error no longer applied after date // expired warn - warn no longer applied after date // expired ignore - ignore no longer applied after date // I.e. an expired rule is no longer applied, as if it is not even typed into the logpro fileLink to section: Blah4
blah4.html ==========================LOGPRO SUMMARY========================== Trigger: Blah5End OK, count=2, regex=/^end Blah5/ Trigger: Blah5 OK, count=2, regex=/^begin Blah5/ Trigger: NON-REQUIRED trigger OPTIONAL, count=0, regex=/FooBazBlat/ Trigger: Blah4End FAIL, count=0, regex=/^end Blah4/ Trigger: Blah4 OK, count=1, regex=/^begin Blah4/ Trigger: Blah3End OK, count=1, regex=/^end Blah3/ Trigger: Blah3 OK, count=1, regex=/^begin Blah3/ Trigger: Nested2End OK, count=3, regex=/^end nested2/ Trigger: Nested2 OK, count=3, regex=/^begin nested2/ Trigger: Nested1End OK, count=1, regex=/^end nested1/ Trigger: Nested1 OK, count=1, regex=/^begin nested1/ Trigger: Blah2End OK, count=1, regex=/^end Blah2/ Trigger: Blah2 OK, count=1, regex=/^begin Blah2/ Trigger: InitEnd OK, count=1, regex=/^\s*$/ Trigger: Init OK, count=1, regex=/This is a header/ Trigger: LogFileBodyStart OK, count=1, regex=/.*/ Trigger: LogFileBodyStart OK, count=1, regex=/.*/
RuleNum | RuleType | Status | Comp | Count/Val | Count | Desc | Rx | |||
---|---|---|---|---|---|---|---|---|---|---|
Expects for LogFileBody section: #f | ||||||||||
rule-1 | Error | FAIL | < | 1 | 1 | Only have one BLAH5 error outside of the Blah5 section | /^A.*BLAH5/ | |||
rule-3 | Ignore | OK | = | 1 | 1 | single quotes | /'This line is ignored'/ | |||
rule-5 | Required | FAIL | > | 0 | 0 | Something required but not found | /This is required but not found/ | |||
rule-6 | Value | FAIL | 1.9 | +/- | - | 0.1 | /Measured voltage output:\s*v/ | |||
rule-7 | Value | FAIL | 0.5 | +/- | 0.39 | 0.1 | /Measured output current:\s*([\d\.\+\-e]+)mA/ | |||
rule-8 | Value | OK | 110000000000.0 | +/- | 112000000000.0 | 2000000000.0 | /Freq:\s*([\d\.\+\-e]+)\s+Hz/ | |||
rule-9 | Value | FAIL | 110000000000.0 | +/- | 11197000000.0 | 1000000000.0 | /Freq:\s*([\d\.\+\-e]+)Hz/ | |||
rule-10 | Value | FAIL | 110000000000.0 | +/- | - | 1000000000.0 | /Freq:\s*([\d\.\+\-e]+)zH/ | |||
rule-12 | Ignore | OK | > | 0 | 1 | Testing substitution | /(misc).*(out\S+)\s+(.*ich).*(exp.*)$/ | |||
rule-13 | Value | FAIL | 1.9 | +/- | 1.99 | 0.1 | / out: (\d+)\s+([\d\.\+\-e]+)/ | |||
rule-14 | Value | FAIL | > | 1.92 | 1.9 | / cmpout: (\d+)\s+([\d\.\+\-e]+)/ | ||||
rule-16 | Ignore | OK | < | 99 | 2 | Ignore the word error in comments | /^\/\/.*error/ | |||
rule-17 | Warning | WARN | = | 0 | 1 | Any warning | /WARNING/ | |||
rule-18 | Error | FAIL | = | 0 | 1 | ERROR BLAH | /ERROR/, /error/ | |||
rule-19 | Required | OK | <= | 1 | 1 | Quad values | /First:\s+(\d+)\s+Second:\s+(\d+)\s+Third:\s+(\d+)\s+Fourth:\s+(\d+)/ | |||
rule-20 | Required-warn | FAIL | = | 1 | 0 | I'm gonna warn you once... | /I'm gonna warn you once/ | |||
rule-21 | Check | OK | = | 1 | 1 | If flagged, raise CHECKED flag and exit with error code 3 | /This is a line to trigger CHECK/ | |||
rule-22 | Abort | FAIL | = | 0 | 1 | If flagged our process failed to run correctly | /^CRASH/ | |||
rule-23 | Skip | FAIL | = | 0 | 1 | If flagged we are asking for this to exit with code 6 | /^SKIPME/ | |||
Expects for Init section: #f | ||||||||||
rule-4 | Required | OK | = | 1 | 1 | Header | /This is a header/ | |||
Expects for Blah5 section: #f | ||||||||||
rule-0 | Waive | OK | = | 2 | 2 | Have exactly two BLAH5 errors to waive inside the two Blah5 sections | /^A.*BLAH5/ | |||
Expects for Blah4 section: blah4.html | ||||||||||
rule-11 | Error | FAIL | = | 0 | 2 | Any ERROR in section blah4 | /ERROR/ | |||
Expects for Blah3 section: #f | ||||||||||
rule-2 | Waive | OK | = | 1 | 1 | A real error that has been waived | /ERROR:/ | |||
Expects for Blah2 section: blah2.html | ||||||||||
rule-15 | Ignore | OK | < | 99 | 1 | FALSE ERROR | /ERROR/ |