Megatest

Hex Artifact Content
Login

Artifact b996a05181a3c85b6afee31249e9aa01a6c56970:


0000: 5b 66 69 65 6c 64 73 5d 0a 73 79 73 6e 61 6d 65  [fields].sysname
0010: 20 54 45 58 54 0a 66 73 6e 61 6d 65 20 54 45 58   TEXT.fsname TEX
0020: 54 0a 64 61 74 61 70 61 74 68 20 54 45 58 54 0a  T.datapath TEXT.
0030: 0a 5b 73 65 74 75 70 5d 0a 23 20 65 78 65 63 74  .[setup].# exect
0040: 75 74 61 62 6c 65 20 2f 70 61 74 68 2f 74 6f 2f  utable /path/to/
0050: 6d 65 67 61 74 65 73 74 0a 6d 61 78 5f 63 6f 6e  megatest.max_con
0060: 63 75 72 72 65 6e 74 5f 6a 6f 62 73 20 34 30 35  current_jobs 405
0070: 0a 72 75 6e 73 64 69 72 20 2f 74 6d 70 2f 72 75  .runsdir /tmp/ru
0080: 6e 73 0a 0a 5b 6a 6f 62 74 6f 6f 6c 73 5d 0a 23  ns..[jobtools].#
0090: 20 23 23 20 6c 61 75 6e 63 68 65 72 20 6c 61 75   ## launcher lau
00a0: 6e 63 68 65 73 20 6a 6f 62 73 2c 20 74 68 65 20  nches jobs, the 
00b0: 6a 6f 62 20 69 73 20 6d 61 6e 61 67 65 64 20 6f  job is managed o
00c0: 6e 20 74 68 65 20 74 61 72 67 65 74 20 68 6f 73  n the target hos
00d0: 74 0a 23 23 20 62 79 20 6d 65 67 61 74 65 73 74  t.## by megatest
00e0: 2c 20 63 6f 6d 6d 65 6e 74 20 6f 75 74 20 6c 61  , comment out la
00f0: 75 6e 63 68 65 72 20 74 6f 20 72 75 6e 20 6c 6f  uncher to run lo
0100: 63 61 6c 0a 23 20 77 6f 72 6b 68 6f 73 74 73 20  cal.# workhosts 
0110: 6c 6f 63 61 6c 68 6f 73 74 20 68 65 72 6d 65 73  localhost hermes
0120: 0a 6c 61 75 6e 63 68 65 72 20 6e 62 66 61 6b 65  .launcher nbfake
0130: 0a 0a 23 23 20 75 73 65 20 22 78 74 65 72 6d 20  ..## use "xterm 
0140: 2d 65 20 63 73 69 20 2d 2d 20 22 20 61 73 20 61  -e csi -- " as a
0150: 20 6c 61 75 6e 63 68 65 72 20 74 6f 20 65 78 61   launcher to exa
0160: 6d 69 6e 65 20 74 68 65 20 6c 61 75 6e 63 68 20  mine the launch 
0170: 65 6e 76 69 72 6f 6e 6d 65 6e 74 2e 0a 23 23 20  environment..## 
0180: 65 78 69 74 20 77 69 74 68 20 28 65 78 69 74 29  exit with (exit)
0190: 0a 23 23 20 67 65 74 20 61 20 73 68 65 6c 6c 20  .## get a shell 
01a0: 77 69 74 68 20 28 73 79 73 74 65 6d 20 22 62 61  with (system "ba
01b0: 73 68 22 29 0a 23 20 6c 61 75 6e 63 68 65 72 20  sh").# launcher 
01c0: 78 74 65 72 6d 20 2d 65 20 63 73 69 20 2d 2d 0a  xterm -e csi --.
01d0: 0a 5b 76 61 6c 69 64 76 61 6c 75 65 73 5d 0a 73  .[validvalues].s
01e0: 74 61 74 65 20 73 74 61 72 74 20 65 6e 64 20 63  tate start end c
01f0: 6f 6d 70 6c 65 74 65 64 0a 73 74 61 74 75 73 20  ompleted.status 
0200: 70 61 73 73 20 66 61 69 6c 20 6e 2f 61 0a 0a 23  pass fail n/a..#
0210: 20 54 68 65 73 65 20 61 72 65 20 73 65 74 20 62   These are set b
0220: 65 66 6f 72 65 20 61 6c 6c 20 74 65 73 74 73 2c  efore all tests,
0230: 20 6f 76 65 72 72 69 64 65 20 74 68 65 6d 20 0a   override them .
0240: 23 20 69 6e 20 74 68 65 20 74 65 73 74 63 6f 6e  # in the testcon
0250: 66 69 67 20 5b 70 72 65 2d 6c 61 75 6e 63 68 2d  fig [pre-launch-
0260: 65 6e 76 2d 6f 76 65 72 72 69 64 65 73 5d 20 73  env-overrides] s
0270: 65 63 74 69 6f 6e 0a 5b 65 6e 76 2d 6f 76 65 72  ection.[env-over
0280: 72 69 64 65 5d 0a 53 50 45 43 49 41 4c 5f 45 4e  ride].SPECIAL_EN
0290: 56 5f 56 41 52 53 20 6f 76 65 72 69 64 65 20 74  V_VARS overide t
02a0: 68 65 6d 20 68 65 72 65 20 2d 20 73 68 6f 75 6c  hem here - shoul
02b0: 64 20 62 65 20 73 65 65 6e 20 61 74 20 6c 61 75  d be seen at lau
02c0: 6e 63 68 20 61 6e 64 20 69 6e 20 74 68 65 20 72  nch and in the r
02d0: 75 6e 73 0a 54 45 53 54 56 41 52 20 5b 73 79 73  uns.TESTVAR [sys
02e0: 74 65 6d 20 72 65 61 6c 70 61 74 68 20 2e 5d 0a  tem realpath .].
02f0: 44 45 41 44 56 41 52 20 5b 73 79 73 74 65 6d 20  DEADVAR [system 
0300: 6c 73 5d 0a 0a 23 23 20 64 69 73 6b 73 20 61 72  ls]..## disks ar
0310: 65 3a 0a 23 23 20 6e 61 6d 65 20 68 6f 73 74 3a  e:.## name host:
0320: 2f 70 61 74 68 2f 74 6f 2f 61 72 65 61 0a 23 23  /path/to/area.##
0330: 20 2d 6f 72 2d 0a 23 23 20 6e 61 6d 65 20 2f 70   -or-.## name /p
0340: 61 74 68 2f 74 6f 2f 61 72 65 61 0a 5b 64 69 73  ath/to/area.[dis
0350: 6b 73 5d 0a 31 20 2f 74 6d 70 0a                 ks].1 /tmp.