Megatest

Hex Artifact Content
Login

Artifact 90abad008687bac39ca73cd538b3e30e987bb214:


0000: 23 21 2f 62 69 6e 2f 62 61 73 68 0a 0a 23 20 6d  #!/bin/bash..# m
0010: 65 67 61 74 65 73 74 20 2d 73 74 65 70 20 77 61  egatest -step wa
0020: 73 74 69 6e 67 5f 74 69 6d 65 20 3a 73 74 61 74  sting_time :stat
0030: 65 20 73 74 61 72 74 20 3a 73 74 61 74 75 73 20  e start :status 
0040: 6e 2f 61 20 2d 6d 20 22 54 68 69 73 20 69 73 20  n/a -m "This is 
0050: 61 20 74 65 73 74 20 73 74 65 70 20 63 6f 6d 6d  a test step comm
0060: 65 6e 74 22 0a 23 20 73 6c 65 65 70 20 32 30 0a  ent".# sleep 20.
0070: 23 20 6d 65 67 61 74 65 73 74 20 2d 73 74 65 70  # megatest -step
0080: 20 77 61 73 74 69 6e 67 5f 74 69 6d 65 20 3a 73   wasting_time :s
0090: 74 61 74 65 20 65 6e 64 20 3a 73 74 61 74 75 73  tate end :status
00a0: 20 24 3f 0a 0a 6d 65 67 61 74 65 73 74 20 2d 72   $?..megatest -r
00b0: 75 6e 73 74 65 70 20 77 61 73 74 69 6e 67 5f 74  unstep wasting_t
00c0: 69 6d 65 20 2d 6c 6f 67 70 72 6f 20 77 61 73 74  ime -logpro wast
00d0: 69 6e 67 5f 74 69 6d 65 2e 6c 6f 67 70 72 6f 20  ing_time.logpro 
00e0: 22 73 6c 65 65 70 20 32 30 3b 65 63 68 6f 20 61  "sleep 20;echo a
00f0: 6c 6c 20 64 6f 6e 65 20 65 68 3f 22 20 2d 6d 20  ll done eh?" -m 
0100: 22 54 68 69 73 20 69 73 20 61 20 74 65 73 74 20  "This is a test 
0110: 73 74 65 70 20 63 6f 6d 6d 65 6e 74 22 0a 0a 6d  step comment"..m
0120: 65 67 61 74 65 73 74 20 2d 74 65 73 74 2d 73 74  egatest -test-st
0130: 61 74 75 73 20 3a 73 74 61 74 65 20 43 4f 4d 50  atus :state COMP
0140: 4c 45 54 45 44 20 3a 73 74 61 74 75 73 20 50 41  LETED :status PA
0150: 53 53 20 2d 73 65 74 6c 6f 67 20 74 68 65 6c 6f  SS -setlog thelo
0160: 67 66 69 6c 65 2e 6c 6f 67 20 2d 6d 20 22 54 68  gfile.log -m "Th
0170: 69 73 20 69 73 20 61 20 74 65 73 74 20 6c 65 76  is is a test lev
0180: 65 6c 20 63 6f 6d 6d 65 6e 74 22 0a              el comment".