Megatest

Hex Artifact Content
Login

Artifact 22f12ee837d77ff83866a7137e5467667fdff88e:


0000: 3b 3b 20 59 6f 75 20 73 68 6f 75 6c 64 20 68 61  ;; You should ha
0010: 76 65 20 61 74 20 6c 65 61 73 74 20 6f 6e 65 20  ve at least one 
0020: 65 78 70 65 63 74 3a 72 65 71 75 69 72 65 64 2e  expect:required.
0030: 20 54 68 69 73 20 65 6e 73 75 72 65 73 20 74 68   This ensures th
0040: 61 74 20 79 6f 75 72 20 70 72 6f 63 65 73 73 20  at your process 
0050: 72 61 6e 0a 28 65 78 70 65 63 74 3a 72 65 71 75  ran.(expect:requ
0060: 69 72 65 64 20 69 6e 20 22 4c 6f 67 46 69 6c 65  ired in "LogFile
0070: 42 6f 64 79 22 20 3e 20 30 20 22 50 75 74 20 64  Body" > 0 "Put d
0080: 65 73 63 72 69 70 74 69 6f 6e 20 68 65 72 65 22  escription here"
0090: 20 23 2f 70 75 74 20 70 61 74 74 65 72 6e 20 68   #/put pattern h
00a0: 65 72 65 2f 29 0a 0a 3b 3b 20 59 6f 75 20 6d 61  ere/)..;; You ma
00b0: 79 20 6e 65 65 64 20 69 67 6e 6f 72 65 73 20 74  y need ignores t
00c0: 6f 20 73 75 70 70 72 65 73 73 20 66 61 6c 73 65  o suppress false
00d0: 20 65 72 72 6f 72 20 6f 72 20 77 61 72 6e 69 6e   error or warnin
00e0: 67 20 68 69 74 73 20 66 72 6f 6d 20 74 68 65 20  g hits from the 
00f0: 6c 61 74 65 72 20 65 78 70 65 63 74 73 0a 3b 3b  later expects.;;
0100: 20 4e 4f 54 45 3a 20 4f 72 64 65 72 20 69 73 20   NOTE: Order is 
0110: 69 6d 70 6f 72 74 61 6e 74 20 68 65 72 65 21 0a  important here!.
0120: 28 65 78 70 65 63 74 3a 69 67 6e 6f 72 65 20 20  (expect:ignore  
0130: 20 69 6e 20 22 4c 6f 67 46 69 6c 65 42 6f 64 79   in "LogFileBody
0140: 22 20 20 3c 20 39 39 20 22 49 67 6e 6f 72 65 20  "  < 99 "Ignore 
0150: 74 68 65 20 77 6f 72 64 20 65 72 72 6f 72 20 69  the word error i
0160: 6e 20 63 6f 6d 6d 65 6e 74 73 22 20 23 2f 5e 5c  n comments" #/^\
0170: 2f 5c 2f 2e 2a 65 72 72 6f 72 2f 29 0a 28 65 78  /\/.*error/).(ex
0180: 70 65 63 74 3a 77 61 72 6e 69 6e 67 20 20 69 6e  pect:warning  in
0190: 20 22 4c 6f 67 46 69 6c 65 42 6f 64 79 22 20 20   "LogFileBody"  
01a0: 3d 20 30 20 22 41 6e 79 20 77 61 72 6e 69 6e 67  = 0 "Any warning
01b0: 22 20 23 2f 77 61 72 6e 2f 29 0a 28 65 78 70 65  " #/warn/).(expe
01c0: 63 74 3a 65 72 72 6f 72 20 20 20 20 69 6e 20 22  ct:error    in "
01d0: 4c 6f 67 46 69 6c 65 42 6f 64 79 22 20 20 3d 20  LogFileBody"  = 
01e0: 30 20 22 41 6e 79 20 65 72 72 6f 72 22 20 20 28  0 "Any error"  (
01f0: 6c 69 73 74 20 23 2f 45 52 52 4f 52 2f 20 23 2f  list #/ERROR/ #/
0200: 65 72 72 6f 72 2f 29 29 20 3b 3b 20 62 75 74 20  error/)) ;; but 
0210: 64 69 73 61 6c 6c 6f 77 20 61 6e 79 20 6f 74 68  disallow any oth
0220: 65 72 20 65 72 72 6f 72 73 0a                    er errors.