Megatest

Hex Artifact Content
Login

Artifact 85300347bf28dce8b885519dae6605459200cc8f:


0000: 3b 3b 20 43 6f 70 79 72 69 67 68 74 20 32 30 30  ;; Copyright 200
0010: 36 2d 32 30 31 37 2c 20 4d 61 74 74 68 65 77 20  6-2017, Matthew 
0020: 57 65 6c 6c 61 6e 64 2e 0a 3b 3b 20 0a 3b 3b 20  Welland..;; .;; 
0030: 54 68 69 73 20 66 69 6c 65 20 69 73 20 70 61 72  This file is par
0040: 74 20 6f 66 20 4d 65 67 61 74 65 73 74 2e 0a 3b  t of Megatest..;
0050: 3b 20 0a 3b 3b 20 20 20 20 20 4d 65 67 61 74 65  ; .;;     Megate
0060: 73 74 20 69 73 20 66 72 65 65 20 73 6f 66 74 77  st is free softw
0070: 61 72 65 3a 20 79 6f 75 20 63 61 6e 20 72 65 64  are: you can red
0080: 69 73 74 72 69 62 75 74 65 20 69 74 20 61 6e 64  istribute it and
0090: 2f 6f 72 20 6d 6f 64 69 66 79 0a 3b 3b 20 20 20  /or modify.;;   
00a0: 20 20 69 74 20 75 6e 64 65 72 20 74 68 65 20 74    it under the t
00b0: 65 72 6d 73 20 6f 66 20 74 68 65 20 47 4e 55 20  erms of the GNU 
00c0: 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 4c  General Public L
00d0: 69 63 65 6e 73 65 20 61 73 20 70 75 62 6c 69 73  icense as publis
00e0: 68 65 64 20 62 79 0a 3b 3b 20 20 20 20 20 74 68  hed by.;;     th
00f0: 65 20 46 72 65 65 20 53 6f 66 74 77 61 72 65 20  e Free Software 
0100: 46 6f 75 6e 64 61 74 69 6f 6e 2c 20 65 69 74 68  Foundation, eith
0110: 65 72 20 76 65 72 73 69 6f 6e 20 33 20 6f 66 20  er version 3 of 
0120: 74 68 65 20 4c 69 63 65 6e 73 65 2c 20 6f 72 0a  the License, or.
0130: 3b 3b 20 20 20 20 20 28 61 74 20 79 6f 75 72 20  ;;     (at your 
0140: 6f 70 74 69 6f 6e 29 20 61 6e 79 20 6c 61 74 65  option) any late
0150: 72 20 76 65 72 73 69 6f 6e 2e 0a 3b 3b 20 0a 3b  r version..;; .;
0160: 3b 20 20 20 20 20 4d 65 67 61 74 65 73 74 20 69  ;     Megatest i
0170: 73 20 64 69 73 74 72 69 62 75 74 65 64 20 69 6e  s distributed in
0180: 20 74 68 65 20 68 6f 70 65 20 74 68 61 74 20 69   the hope that i
0190: 74 20 77 69 6c 6c 20 62 65 20 75 73 65 66 75 6c  t will be useful
01a0: 2c 0a 3b 3b 20 20 20 20 20 62 75 74 20 57 49 54  ,.;;     but WIT
01b0: 48 4f 55 54 20 41 4e 59 20 57 41 52 52 41 4e 54  HOUT ANY WARRANT
01c0: 59 3b 20 77 69 74 68 6f 75 74 20 65 76 65 6e 20  Y; without even 
01d0: 74 68 65 20 69 6d 70 6c 69 65 64 20 77 61 72 72  the implied warr
01e0: 61 6e 74 79 20 6f 66 0a 3b 3b 20 20 20 20 20 4d  anty of.;;     M
01f0: 45 52 43 48 41 4e 54 41 42 49 4c 49 54 59 20 6f  ERCHANTABILITY o
0200: 72 20 46 49 54 4e 45 53 53 20 46 4f 52 20 41 20  r FITNESS FOR A 
0210: 50 41 52 54 49 43 55 4c 41 52 20 50 55 52 50 4f  PARTICULAR PURPO
0220: 53 45 2e 20 20 53 65 65 20 74 68 65 0a 3b 3b 20  SE.  See the.;; 
0230: 20 20 20 20 47 4e 55 20 47 65 6e 65 72 61 6c 20      GNU General 
0240: 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 20 66  Public License f
0250: 6f 72 20 6d 6f 72 65 20 64 65 74 61 69 6c 73 2e  or more details.
0260: 0a 3b 3b 20 0a 3b 3b 20 20 20 20 20 59 6f 75 20  .;; .;;     You 
0270: 73 68 6f 75 6c 64 20 68 61 76 65 20 72 65 63 65  should have rece
0280: 69 76 65 64 20 61 20 63 6f 70 79 20 6f 66 20 74  ived a copy of t
0290: 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c 20 50  he GNU General P
02a0: 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 0a 3b 3b  ublic License.;;
02b0: 20 20 20 20 20 61 6c 6f 6e 67 20 77 69 74 68 20       along with 
02c0: 4d 65 67 61 74 65 73 74 2e 20 20 49 66 20 6e 6f  Megatest.  If no
02d0: 74 2c 20 73 65 65 20 3c 68 74 74 70 3a 2f 2f 77  t, see <http://w
02e0: 77 77 2e 67 6e 75 2e 6f 72 67 2f 6c 69 63 65 6e  ww.gnu.org/licen
02f0: 73 65 73 2f 3e 2e 0a 3b 3b 0a 0a 3b 3b 20 28 69  ses/>..;;..;; (i
0300: 6e 63 6c 75 64 65 20 22 63 6f 6d 6d 6f 6e 2e 73  nclude "common.s
0310: 63 6d 22 29 0a 3b 3b 20 28 69 6e 63 6c 75 64 65  cm").;; (include
0320: 20 22 6d 65 67 61 74 65 73 74 2d 76 65 72 73 69   "megatest-versi
0330: 6f 6e 2e 73 63 6d 22 29 0a 0a 3b 3b 20 28 64 65  on.scm")..;; (de
0340: 63 6c 61 72 65 20 28 75 73 65 73 20 63 6f 6d 6d  clare (uses comm
0350: 6f 6e 29 29 0a 3b 3b 20 28 64 65 63 6c 61 72 65  on)).;; (declare
0360: 20 28 75 73 65 73 20 6d 65 67 61 74 65 73 74 2d   (uses megatest-
0370: 76 65 72 73 69 6f 6e 29 29 0a 3b 3b 20 28 64 65  version)).;; (de
0380: 63 6c 61 72 65 20 28 75 73 65 73 20 6d 61 72 67  clare (uses marg
0390: 73 29 29 0a 28 64 65 63 6c 61 72 65 20 28 75 73  s)).(declare (us
03a0: 65 73 20 6d 74 61 72 67 73 29 29 0a 28 64 65 63  es mtargs)).(dec
03b0: 6c 61 72 65 20 28 75 73 65 73 20 6d 74 61 72 67  lare (uses mtarg
03c0: 73 2e 69 6d 70 6f 72 74 29 29 0a 28 64 65 63 6c  s.import)).(decl
03d0: 61 72 65 20 28 75 73 65 73 20 64 65 62 75 67 70  are (uses debugp
03e0: 72 69 6e 74 29 29 0a 28 64 65 63 6c 61 72 65 20  rint)).(declare 
03f0: 28 75 73 65 73 20 64 65 62 75 67 70 72 69 6e 74  (uses debugprint
0400: 2e 69 6d 70 6f 72 74 29 29 0a 28 64 65 63 6c 61  .import)).(decla
0410: 72 65 20 28 75 73 65 73 20 63 6f 6f 6b 69 65 29  re (uses cookie)
0420: 29 0a 28 64 65 63 6c 61 72 65 20 28 75 73 65 73  ).(declare (uses
0430: 20 63 6f 6f 6b 69 65 2e 69 6d 70 6f 72 74 29 29   cookie.import))
0440: 0a 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20  .(declare (uses 
0450: 73 74 6d 6c 32 29 29 0a 28 64 65 63 6c 61 72 65  stml2)).(declare
0460: 20 28 75 73 65 73 20 73 74 6d 6c 32 2e 69 6d 70   (uses stml2.imp
0470: 6f 72 74 29 29 0a 28 64 65 63 6c 61 72 65 20 28  ort)).(declare (
0480: 75 73 65 73 20 63 6f 6d 6d 6f 6e 6d 6f 64 29 29  uses commonmod))
0490: 0a 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20  .(declare (uses 
04a0: 63 6f 6d 6d 6f 6e 6d 6f 64 2e 69 6d 70 6f 72 74  commonmod.import
04b0: 29 29 0a 28 64 65 63 6c 61 72 65 20 28 75 73 65  )).(declare (use
04c0: 73 20 70 72 6f 63 65 73 73 6d 6f 64 29 29 0a 28  s processmod)).(
04d0: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 70 72  declare (uses pr
04e0: 6f 63 65 73 73 6d 6f 64 2e 69 6d 70 6f 72 74 29  ocessmod.import)
04f0: 29 0a 28 64 65 63 6c 61 72 65 20 28 75 73 65 73  ).(declare (uses
0500: 20 63 6f 6e 66 69 67 66 6d 6f 64 29 29 0a 28 64   configfmod)).(d
0510: 65 63 6c 61 72 65 20 28 75 73 65 73 20 63 6f 6e  eclare (uses con
0520: 66 69 67 66 6d 6f 64 2e 69 6d 70 6f 72 74 29 29  figfmod.import))
0530: 0a 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20  .(declare (uses 
0540: 70 67 64 62 29 29 0a 3b 3b 28 64 65 63 6c 61 72  pgdb)).;;(declar
0550: 65 20 28 75 73 65 73 20 70 67 64 62 2e 69 6d 70  e (uses pgdb.imp
0560: 6f 72 74 29 29 0a 28 64 65 63 6c 61 72 65 20 28  ort)).(declare (
0570: 75 73 65 73 20 6d 74 6d 6f 64 29 29 0a 3b 3b 28  uses mtmod)).;;(
0580: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 6d 74  declare (uses mt
0590: 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a 28 64 65  mod.import)).(de
05a0: 63 6c 61 72 65 20 28 75 73 65 73 20 73 65 72 76  clare (uses serv
05b0: 65 72 6d 6f 64 29 29 0a 3b 3b 28 64 65 63 6c 61  ermod)).;;(decla
05c0: 72 65 20 28 75 73 65 73 20 73 65 72 76 65 72 6d  re (uses serverm
05d0: 6f 64 2e 69 6d 70 6f 72 74 29 29 0a 28 64 65 63  od.import)).(dec
05e0: 6c 61 72 65 20 28 75 73 65 73 20 64 62 66 69 6c  lare (uses dbfil
05f0: 65 29 29 0a 3b 3b 28 64 65 63 6c 61 72 65 20 28  e)).;;(declare (
0600: 75 73 65 73 20 64 62 66 69 6c 65 2e 69 6d 70 6f  uses dbfile.impo
0610: 72 74 29 29 0a 28 64 65 63 6c 61 72 65 20 28 75  rt)).(declare (u
0620: 73 65 73 20 64 62 6d 6f 64 29 29 0a 3b 3b 28 64  ses dbmod)).;;(d
0630: 65 63 6c 61 72 65 20 28 75 73 65 73 20 64 62 6d  eclare (uses dbm
0640: 6f 64 2e 69 6d 70 6f 72 74 29 29 0a 28 64 65 63  od.import)).(dec
0650: 6c 61 72 65 20 28 75 73 65 73 20 70 6f 72 74 6c  lare (uses portl
0660: 6f 67 67 65 72 29 29 0a 3b 3b 28 64 65 63 6c 61  ogger)).;;(decla
0670: 72 65 20 28 75 73 65 73 20 70 6f 72 74 6c 6f 67  re (uses portlog
0680: 67 65 72 2e 69 6d 70 6f 72 74 29 29 0a 28 64 65  ger.import)).(de
0690: 63 6c 61 72 65 20 28 75 73 65 73 20 74 63 70 2d  clare (uses tcp-
06a0: 74 72 61 6e 73 70 6f 72 74 6d 6f 64 29 29 0a 3b  transportmod)).;
06b0: 3b 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20  ;(declare (uses 
06c0: 74 63 70 2d 74 72 61 6e 73 70 6f 72 74 6d 6f 64  tcp-transportmod
06d0: 2e 69 6d 70 6f 72 74 29 29 0a 28 64 65 63 6c 61  .import)).(decla
06e0: 72 65 20 28 75 73 65 73 20 66 73 6d 6f 64 29 29  re (uses fsmod))
06f0: 0a 3b 3b 28 64 65 63 6c 61 72 65 20 28 75 73 65  .;;(declare (use
0700: 73 20 66 73 6d 6f 64 2e 69 6d 70 6f 72 74 29 29  s fsmod.import))
0710: 0a 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20  .(declare (uses 
0720: 6d 65 67 61 74 65 73 74 6d 6f 64 29 29 0a 3b 3b  megatestmod)).;;
0730: 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 6d  (declare (uses m
0740: 65 67 61 74 65 73 74 6d 6f 64 2e 69 6d 70 6f 72  egatestmod.impor
0750: 74 29 29 0a 28 64 65 63 6c 61 72 65 20 28 75 73  t)).(declare (us
0760: 65 73 20 61 70 69 6d 6f 64 29 29 0a 3b 3b 28 64  es apimod)).;;(d
0770: 65 63 6c 61 72 65 20 28 75 73 65 73 20 61 70 69  eclare (uses api
0780: 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a 28 64 65  mod.import)).(de
0790: 63 6c 61 72 65 20 28 75 73 65 73 20 72 6d 74 6d  clare (uses rmtm
07a0: 6f 64 29 29 0a 3b 3b 28 64 65 63 6c 61 72 65 20  od)).;;(declare 
07b0: 28 75 73 65 73 20 72 6d 74 6d 6f 64 2e 69 6d 70  (uses rmtmod.imp
07c0: 6f 72 74 29 29 0a 28 64 65 63 6c 61 72 65 20 28  ort)).(declare (
07d0: 75 73 65 73 20 74 61 73 6b 73 6d 6f 64 29 29 0a  uses tasksmod)).
07e0: 3b 3b 28 64 65 63 6c 61 72 65 20 28 75 73 65 73  ;;(declare (uses
07f0: 20 74 61 73 6b 73 6d 6f 64 2e 69 6d 70 6f 72 74   tasksmod.import
0800: 29 29 0a 28 64 65 63 6c 61 72 65 20 28 75 73 65  )).(declare (use
0810: 73 20 74 65 73 74 73 6d 6f 64 29 29 0a 3b 3b 28  s testsmod)).;;(
0820: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 74 65  declare (uses te
0830: 73 74 73 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a  stsmod.import)).
0840: 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 73  (declare (uses s
0850: 75 62 72 75 6e 6d 6f 64 29 29 0a 3b 3b 28 64 65  ubrunmod)).;;(de
0860: 63 6c 61 72 65 20 28 75 73 65 73 20 73 75 62 72  clare (uses subr
0870: 75 6e 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a 28  unmod.import)).(
0880: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 61 72  declare (uses ar
0890: 63 68 69 76 65 6d 6f 64 29 29 0a 3b 3b 28 64 65  chivemod)).;;(de
08a0: 63 6c 61 72 65 20 28 75 73 65 73 20 61 72 63 68  clare (uses arch
08b0: 69 76 65 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a  ivemod.import)).
08c0: 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 72  (declare (uses r
08d0: 75 6e 73 6d 6f 64 29 29 0a 3b 3b 28 64 65 63 6c  unsmod)).;;(decl
08e0: 61 72 65 20 28 75 73 65 73 20 72 75 6e 73 6d 6f  are (uses runsmo
08f0: 64 2e 69 6d 70 6f 72 74 29 29 0a 28 64 65 63 6c  d.import)).(decl
0900: 61 72 65 20 28 75 73 65 73 20 63 70 75 6d 6f 64  are (uses cpumod
0910: 29 29 0a 3b 3b 28 64 65 63 6c 61 72 65 20 28 75  )).;;(declare (u
0920: 73 65 73 20 63 70 75 6d 6f 64 2e 69 6d 70 6f 72  ses cpumod.impor
0930: 74 29 29 0a 28 64 65 63 6c 61 72 65 20 28 75 73  t)).(declare (us
0940: 65 73 20 72 75 6e 73 6d 6f 64 29 29 0a 28 64 65  es runsmod)).(de
0950: 63 6c 61 72 65 20 28 75 73 65 73 20 65 7a 73 74  clare (uses ezst
0960: 65 70 73 6d 6f 64 29 29 0a 28 64 65 63 6c 61 72  epsmod)).(declar
0970: 65 20 28 75 73 65 73 20 6c 61 75 6e 63 68 6d 6f  e (uses launchmo
0980: 64 29 29 0a 0a 28 64 65 63 6c 61 72 65 20 28 75  d))..(declare (u
0990: 73 65 73 20 74 64 62 29 29 0a 28 64 65 63 6c 61  ses tdb)).(decla
09a0: 72 65 20 28 75 73 65 73 20 65 6e 76 29 29 0a 28  re (uses env)).(
09b0: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 64 69  declare (uses di
09c0: 66 66 2d 72 65 70 6f 72 74 29 29 0a 28 64 65 63  ff-report)).(dec
09d0: 6c 61 72 65 20 28 75 73 65 73 20 73 65 72 76 65  lare (uses serve
09e0: 72 29 29 0a 28 64 65 63 6c 61 72 65 20 28 75 73  r)).(declare (us
09f0: 65 73 20 67 65 6e 65 78 61 6d 70 6c 65 29 29 0a  es genexample)).
0a00: 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 6d  (declare (uses m
0a10: 74 62 6f 64 79 29 29 0a 0a 28 69 6d 70 6f 72 74  tbody))..(import
0a20: 20 63 73 69 29 0a 3b 3b 20 66 61 6b 65 20 6f 75   csi).;; fake ou
0a30: 74 20 72 65 61 64 6c 69 6e 65 20 75 73 61 67 65  t readline usage
0a40: 20 6f 66 20 74 6f 70 6c 65 76 65 6c 2d 63 6f 6d   of toplevel-com
0a50: 6d 61 6e 64 0a 28 73 65 74 21 20 74 6f 70 6c 65  mand.(set! tople
0a60: 76 65 6c 2d 63 6f 6d 6d 61 6e 64 20 28 6c 61 6d  vel-command (lam
0a70: 62 64 61 20 28 61 20 62 29 20 23 66 29 29 0a 0a  bda (a b) #f))..
0a80: 3b 3b 20 72 65 71 75 69 72 65 64 20 66 6f 72 20  ;; required for 
0a90: 63 68 69 63 6b 65 6e 20 34 0a 28 75 73 65 20 73  chicken 4.(use s
0aa0: 72 66 69 2d 36 39 0a 20 20 20 20 20 63 61 6c 6c  rfi-69.     call
0ab0: 2d 77 69 74 68 2d 65 6e 76 69 72 6f 6e 6d 65 6e  -with-environmen
0ac0: 74 2d 76 61 72 69 61 62 6c 65 73 0a 20 20 20 20  t-variables.    
0ad0: 20 63 73 76 0a 20 20 20 20 20 72 65 67 65 78 0a   csv.     regex.
0ae0: 20 20 20 20 20 72 65 67 65 78 2d 63 61 73 65 0a       regex-case.
0af0: 20 20 20 20 20 73 70 61 72 73 65 2d 76 65 63 74       sparse-vect
0b00: 6f 72 73 0a 20 20 20 20 20 66 6f 72 6d 61 74 0a  ors.     format.
0b10: 20 20 20 20 20 66 6d 74 0a 20 20 20 20 20 29 0a       fmt.     ).
0b20: 0a 28 69 6d 70 6f 72 74 20 6d 74 62 6f 64 79 29  .(import mtbody)
0b30: 0a 0a 28 6d 61 69 6e 29 0a                       ..(main).