Megatest

Hex Artifact Content
Login

Artifact fcd0b8523ffb632c03d2d67deea1fc5cdcc5ebfb:


0000: 2f 2f 20 20 43 6f 70 79 72 69 67 68 74 20 32 30  //  Copyright 20
0010: 30 36 2d 32 30 31 37 2c 20 4d 61 74 74 68 65 77  06-2017, Matthew
0020: 20 57 65 6c 6c 61 6e 64 2e 0a 2f 2f 20 0a 2f 2f   Welland..// .//
0030: 20 54 68 69 73 20 66 69 6c 65 20 69 73 20 70 61   This file is pa
0040: 72 74 20 6f 66 20 4d 65 67 61 74 65 73 74 2e 0a  rt of Megatest..
0050: 2f 2f 20 0a 2f 2f 20 20 20 20 20 4d 65 67 61 74  // .//     Megat
0060: 65 73 74 20 69 73 20 66 72 65 65 20 73 6f 66 74  est is free soft
0070: 77 61 72 65 3a 20 79 6f 75 20 63 61 6e 20 72 65  ware: you can re
0080: 64 69 73 74 72 69 62 75 74 65 20 69 74 20 61 6e  distribute it an
0090: 64 2f 6f 72 20 6d 6f 64 69 66 79 0a 2f 2f 20 20  d/or modify.//  
00a0: 20 20 20 69 74 20 75 6e 64 65 72 20 74 68 65 20     it under the 
00b0: 74 65 72 6d 73 20 6f 66 20 74 68 65 20 47 4e 55  terms of the GNU
00c0: 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20   General Public 
00d0: 4c 69 63 65 6e 73 65 20 61 73 20 70 75 62 6c 69  License as publi
00e0: 73 68 65 64 20 62 79 0a 2f 2f 20 20 20 20 20 74  shed by.//     t
00f0: 68 65 20 46 72 65 65 20 53 6f 66 74 77 61 72 65  he Free Software
0100: 20 46 6f 75 6e 64 61 74 69 6f 6e 2c 20 65 69 74   Foundation, eit
0110: 68 65 72 20 76 65 72 73 69 6f 6e 20 33 20 6f 66  her version 3 of
0120: 20 74 68 65 20 4c 69 63 65 6e 73 65 2c 20 6f 72   the License, or
0130: 0a 2f 2f 20 20 20 20 20 28 61 74 20 79 6f 75 72  .//     (at your
0140: 20 6f 70 74 69 6f 6e 29 20 61 6e 79 20 6c 61 74   option) any lat
0150: 65 72 20 76 65 72 73 69 6f 6e 2e 0a 2f 2f 20 0a  er version..// .
0160: 2f 2f 20 20 20 20 20 4d 65 67 61 74 65 73 74 20  //     Megatest 
0170: 69 73 20 64 69 73 74 72 69 62 75 74 65 64 20 69  is distributed i
0180: 6e 20 74 68 65 20 68 6f 70 65 20 74 68 61 74 20  n the hope that 
0190: 69 74 20 77 69 6c 6c 20 62 65 20 75 73 65 66 75  it will be usefu
01a0: 6c 2c 0a 2f 2f 20 20 20 20 20 62 75 74 20 57 49  l,.//     but WI
01b0: 54 48 4f 55 54 20 41 4e 59 20 57 41 52 52 41 4e  THOUT ANY WARRAN
01c0: 54 59 3b 20 77 69 74 68 6f 75 74 20 65 76 65 6e  TY; without even
01d0: 20 74 68 65 20 69 6d 70 6c 69 65 64 20 77 61 72   the implied war
01e0: 72 61 6e 74 79 20 6f 66 0a 2f 2f 20 20 20 20 20  ranty of.//     
01f0: 4d 45 52 43 48 41 4e 54 41 42 49 4c 49 54 59 20  MERCHANTABILITY 
0200: 6f 72 20 46 49 54 4e 45 53 53 20 46 4f 52 20 41  or FITNESS FOR A
0210: 20 50 41 52 54 49 43 55 4c 41 52 20 50 55 52 50   PARTICULAR PURP
0220: 4f 53 45 2e 20 20 53 65 65 20 74 68 65 0a 2f 2f  OSE.  See the.//
0230: 20 20 20 20 20 47 4e 55 20 47 65 6e 65 72 61 6c       GNU General
0240: 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 20   Public License 
0250: 66 6f 72 20 6d 6f 72 65 20 64 65 74 61 69 6c 73  for more details
0260: 2e 0a 2f 2f 20 0a 2f 2f 20 20 20 20 20 59 6f 75  ..// .//     You
0270: 20 73 68 6f 75 6c 64 20 68 61 76 65 20 72 65 63   should have rec
0280: 65 69 76 65 64 20 61 20 63 6f 70 79 20 6f 66 20  eived a copy of 
0290: 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c 20  the GNU General 
02a0: 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 0a 2f  Public License./
02b0: 2f 20 20 20 20 20 61 6c 6f 6e 67 20 77 69 74 68  /     along with
02c0: 20 4d 65 67 61 74 65 73 74 2e 20 20 49 66 20 6e   Megatest.  If n
02d0: 6f 74 2c 20 73 65 65 20 3c 68 74 74 70 3a 2f 2f  ot, see <http://
02e0: 77 77 77 2e 67 6e 75 2e 6f 72 67 2f 6c 69 63 65  www.gnu.org/lice
02f0: 6e 73 65 73 2f 3e 2e 0a 2f 2f 20 0a 64 69 67 72  nses/>..// .digr
0300: 61 70 68 20 6d 65 67 61 74 65 73 74 5f 70 6b 74  aph megatest_pkt
0310: 73 20 7b 0a 20 20 72 61 6e 6b 73 65 70 3d 30 2e  s {.  ranksep=0.
0320: 30 35 0a 20 20 2f 2f 20 72 61 6e 6b 64 69 72 3d  05.  // rankdir=
0330: 4c 52 0a 0a 6e 6f 64 65 20 5b 73 68 61 70 65 3d  LR..node [shape=
0340: 62 6f 78 2c 73 74 79 6c 65 3d 66 69 6c 6c 65 64  box,style=filled
0350: 5d 3b 0a 20 20 0a 20 20 22 53 45 4e 53 4f 52 53  ];.  .  "SENSORS
0360: 22 20 5b 20 6c 61 62 65 6c 20 3d 20 22 7b 20 53  " [ label = "{ S
0370: 65 6e 73 6f 72 20 50 72 6f 63 65 73 73 69 6e 67  ensor Processing
0380: 20 7c 20 7b 20 66 69 6c 65 20 7c 20 67 69 74 20   | { file | git 
0390: 7c 20 66 6f 73 73 69 6c 20 7c 20 73 63 72 69 70  | fossil | scrip
03a0: 74 20 7d 7d 22 0a 09 20 20 20 20 20 20 73 68 61  t }}"..      sha
03b0: 70 65 20 3d 20 22 72 65 63 6f 72 64 22 3b 20 5d  pe = "record"; ]
03c0: 3b 0a 20 20 0a 20 20 22 52 55 4e 53 22 20 20 20  ;.  .  "RUNS"   
03d0: 20 5b 20 6c 61 62 65 6c 20 3d 20 22 7b 20 52 75   [ label = "{ Ru
03e0: 6e 73 20 50 72 6f 63 65 73 73 69 6e 67 20 7c 20  ns Processing | 
03f0: 7b 20 6c 61 75 6e 63 68 20 7c 20 63 6c 65 61 6e  { launch | clean
0400: 20 7c 20 72 65 2d 72 75 6e 20 7c 20 61 72 63 68   | re-run | arch
0410: 69 76 65 20 7d 20 7c 20 7b 20 64 69 73 70 61 74  ive } | { dispat
0420: 63 68 65 72 20 7d 7d 22 3b 0a 09 20 20 20 20 20  cher }}";..     
0430: 20 73 68 61 70 65 20 3d 20 22 72 65 63 6f 72 64   shape = "record
0440: 22 3b 20 5d 3b 0a 0a 20 20 22 57 4f 52 4b 22 20  "; ];..  "WORK" 
0450: 20 20 20 5b 20 6c 61 62 65 6c 20 3d 20 22 7b 20     [ label = "{ 
0460: 57 6f 72 6b 20 49 74 65 6d 73 20 7c 20 7b 20 73  Work Items | { s
0470: 74 61 72 74 20 74 61 73 6b 20 7c 20 74 61 73 6b  tart task | task
0480: 20 63 6f 6d 70 65 74 65 64 20 7d 7d 22 3b 0a 09   competed }}";..
0490: 20 20 20 20 20 20 73 68 61 70 65 20 3d 20 22 72        shape = "r
04a0: 65 63 6f 72 64 22 3b 20 5d 3b 0a 0a 20 20 22 55  ecord"; ];..  "U
04b0: 53 45 52 52 45 51 22 20 5b 20 6c 61 62 65 6c 20  SERREQ" [ label 
04c0: 3d 20 22 7b 20 55 73 65 72 20 52 65 71 75 65 73  = "{ User Reques
04d0: 74 73 20 28 55 6e 69 78 20 61 6e 64 20 57 65 62  ts (Unix and Web
04e0: 29 20 7c 20 7b 20 6c 61 75 6e 63 68 20 7c 20 63  ) | { launch | c
04f0: 6c 65 61 6e 20 7c 20 72 65 2d 72 75 6e 20 7c 20  lean | re-run | 
0500: 61 72 63 68 69 76 65 20 7d 7d 22 3b 0a 09 20 20  archive }}";..  
0510: 20 20 20 20 73 68 61 70 65 20 3d 20 22 72 65 63      shape = "rec
0520: 6f 72 64 22 3b 20 5d 3b 0a 0a 20 20 22 4d 54 41  ord"; ];..  "MTA
0530: 52 45 41 31 22 20 5b 20 6c 61 62 65 6c 20 3d 20  REA1" [ label = 
0540: 22 7b 20 4d 65 67 61 74 65 73 74 20 41 72 65 61  "{ Megatest Area
0550: 20 31 20 7c 20 7b 20 70 61 72 61 6c 6c 65 6c 20   1 | { parallel 
0560: 6a 6f 62 5c 6e 6d 61 6e 61 67 65 6d 65 6e 74 20  job\nmanagement 
0570: 7c 20 74 65 73 74 5c 6e 6d 61 6e 61 67 65 6d 65  | test\nmanageme
0580: 6e 74 20 7c 20 64 61 74 61 5c 6e 72 6f 6c 6c 75  nt | data\nrollu
0590: 70 20 7d 7d 22 3b 0a 09 20 20 20 20 20 20 73 68  p }}";..      sh
05a0: 61 70 65 20 3d 20 22 72 65 63 6f 72 64 22 3b 20  ape = "record"; 
05b0: 5d 3b 0a 20 20 0a 20 20 22 4d 54 41 52 45 41 32  ];.  .  "MTAREA2
05c0: 22 20 5b 20 6c 61 62 65 6c 20 3d 20 22 7b 20 4d  " [ label = "{ M
05d0: 65 67 61 74 65 73 74 20 41 72 65 61 20 32 20 7c  egatest Area 2 |
05e0: 20 7b 20 70 61 72 61 6c 6c 65 6c 20 6a 6f 62 5c   { parallel job\
05f0: 6e 6d 61 6e 61 67 65 6d 65 6e 74 20 7c 20 74 65  nmanagement | te
0600: 73 74 5c 6e 6d 61 6e 61 67 65 6d 65 6e 74 20 7c  st\nmanagement |
0610: 20 64 61 74 61 5c 6e 72 6f 6c 6c 75 70 20 7d 7d   data\nrollup }}
0620: 22 3b 0a 09 20 20 20 20 20 20 73 68 61 70 65 20  ";..      shape 
0630: 3d 20 22 72 65 63 6f 72 64 22 3b 20 5d 3b 0a 20  = "record"; ];. 
0640: 20 0a 20 20 22 4d 54 41 52 45 41 33 22 20 5b 20   .  "MTAREA3" [ 
0650: 6c 61 62 65 6c 20 3d 20 22 4d 6f 72 65 20 4d 65  label = "More Me
0660: 67 61 74 65 73 74 20 41 72 65 61 73 20 2e 2e 2e  gatest Areas ...
0670: 20 22 3b 0a 09 20 20 20 20 20 20 73 68 61 70 65   ";..      shape
0680: 20 3d 20 22 72 65 63 6f 72 64 22 3b 20 5d 3b 0a   = "record"; ];.
0690: 0a 20 20 22 50 47 44 42 22 20 20 20 20 5b 20 6c  .  "PGDB"    [ l
06a0: 61 62 65 6c 20 3d 20 22 70 6f 73 74 67 72 65 73  abel = "postgres
06b0: 20 64 61 74 61 62 61 73 65 22 3b 0a 09 20 20 20   database";..   
06c0: 20 20 20 73 68 61 70 65 20 3d 20 22 63 79 6c 69     shape = "cyli
06d0: 6e 64 65 72 22 3b 20 5d 3b 0a 0a 20 20 22 57 45  nder"; ];..  "WE
06e0: 42 41 50 50 22 20 20 5b 20 6c 61 62 65 6c 20 3d  BAPP"  [ label =
06f0: 20 22 7b 20 57 65 62 20 56 69 65 77 20 7c 20 7b   "{ Web View | {
0700: 20 52 75 6e 73 20 7c 20 43 6f 6e 74 6f 75 72 73   Runs | Contours
0710: 20 7c 20 43 6f 6e 74 72 6f 6c 20 7c 20 54 69 6d   | Control | Tim
0720: 65 20 56 69 65 77 20 7d 7d 22 3b 0a 09 20 20 20  e View }}";..   
0730: 20 20 20 73 68 61 70 65 20 3d 20 22 72 65 63 6f     shape = "reco
0740: 72 64 22 3b 20 5d 3b 0a 0a 20 20 2f 2f 20 22 57  rd"; ];..  // "W
0750: 45 42 43 54 52 4c 22 20 5b 20 6c 61 62 65 6c 20  EBCTRL" [ label 
0760: 3d 20 22 7b 20 57 65 62 20 56 69 65 77 20 5c 6e  = "{ Web View \n
0770: 28 63 6f 6e 74 72 6f 6c 29 20 7d 22 3b 0a 20 20  (control) }";.  
0780: 2f 2f 09 20 20 20 20 20 20 73 68 61 70 65 20 3d  //.      shape =
0790: 20 22 72 65 63 6f 72 64 22 3b 20 5d 3b 0a 20 20   "record"; ];.  
07a0: 0a 20 20 22 53 45 4e 53 4f 52 53 22 20 2d 3e 20  .  "SENSORS" -> 
07b0: 22 53 50 4b 54 53 22 3b 0a 20 20 22 52 55 4e 53  "SPKTS";.  "RUNS
07c0: 22 20 20 20 20 2d 3e 20 22 72 75 6e 20 70 6b 74  "    -> "run pkt
07d0: 73 22 3b 0a 20 20 22 72 75 6e 20 70 6b 74 73 22  s";.  "run pkts"
07e0: 20 2d 3e 20 22 52 55 4e 53 22 3b 0a 20 20 22 57   -> "RUNS";.  "W
07f0: 4f 52 4b 22 20 20 20 20 2d 3e 20 22 77 6f 72 6b  ORK"    -> "work
0800: 20 70 6b 74 73 22 3b 0a 20 20 22 77 6f 72 6b 20   pkts";.  "work 
0810: 70 6b 74 73 22 20 2d 3e 20 22 52 55 4e 53 22 3b  pkts" -> "RUNS";
0820: 0a 20 20 22 55 53 45 52 52 45 51 22 20 2d 3e 20  .  "USERREQ" -> 
0830: 22 75 73 65 72 20 72 65 71 75 65 73 74 20 70 6b  "user request pk
0840: 74 73 22 3b 0a 20 20 22 53 50 4b 54 53 22 20 20  ts";.  "SPKTS"  
0850: 20 2d 3e 20 22 52 55 4e 53 22 3b 0a 20 20 22 75   -> "RUNS";.  "u
0860: 73 65 72 20 72 65 71 75 65 73 74 20 70 6b 74 73  ser request pkts
0870: 22 20 2d 3e 20 22 52 55 4e 53 22 3b 0a 20 20 22  " -> "RUNS";.  "
0880: 52 55 4e 53 22 20 20 20 20 2d 3e 20 22 4d 54 41  RUNS"    -> "MTA
0890: 52 45 41 31 22 20 2d 3e 20 22 50 47 44 42 22 3b  REA1" -> "PGDB";
08a0: 0a 20 20 22 52 55 4e 53 22 20 20 20 20 2d 3e 20  .  "RUNS"    -> 
08b0: 22 4d 54 41 52 45 41 32 22 20 2d 3e 20 22 50 47  "MTAREA2" -> "PG
08c0: 44 42 22 3b 0a 20 20 22 52 55 4e 53 22 20 20 20  DB";.  "RUNS"   
08d0: 20 2d 3e 20 22 4d 54 41 52 45 41 33 22 20 2d 3e   -> "MTAREA3" ->
08e0: 20 22 50 47 44 42 22 3b 0a 20 20 22 50 47 44 42   "PGDB";.  "PGDB
08f0: 22 20 20 20 20 2d 3e 20 22 57 45 42 41 50 50 22  "    -> "WEBAPP"
0900: 3b 0a 20 20 2f 2f 20 22 57 45 42 43 54 52 4c 22  ;.  // "WEBCTRL"
0910: 20 2d 3e 20 22 72 75 6e 20 70 6b 74 73 22 3b 0a   -> "run pkts";.
0920: 20 20 0a 20 20 73 75 62 67 72 61 70 68 20 63 6c    .  subgraph cl
0930: 75 73 74 65 72 5f 70 6b 74 73 20 7b 0a 20 20 20  uster_pkts {.   
0940: 20 6c 61 62 65 6c 3d 22 50 61 63 6b 65 74 73 22   label="Packets"
0950: 3b 0a 20 20 20 20 22 53 50 4b 54 53 22 20 5b 20  ;.    "SPKTS" [ 
0960: 6c 61 62 65 6c 20 3d 20 22 53 65 6e 73 6f 72 20  label = "Sensor 
0970: 50 61 63 6b 65 74 73 22 20 5d 3b 0a 20 20 20 20  Packets" ];.    
0980: 22 72 75 6e 20 70 6b 74 73 22 3b 0a 20 20 20 20  "run pkts";.    
0990: 22 77 6f 72 6b 20 70 6b 74 73 22 3b 0a 20 20 20  "work pkts";.   
09a0: 20 22 75 73 65 72 20 72 65 71 75 65 73 74 20 70   "user request p
09b0: 6b 74 73 22 3b 0a 20 20 7d 0a 7d 0a 0a           kts";.  }.}..