Artifact ba8fec938ca32dd3c0447361fc84a6cffae31653:
- File
megatest.scm
— part of check-in
[c91bfc7aa6]
at
2024-11-07 05:22:48
on branch v1.90
— pgdb import was the problem, makes no sense
sped up megatest startup and fully modularized. This branch is a good candidate for migrating to chicken 5. NOTE: There are some important changes on v1.81 that should be manually patched in. (user: matt, size: 3108) [annotate] [blame] [check-ins using]
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 20 63 61 6e 64 69 64 pgdb)).;; candid 0550: 61 74 65 0a 28 64 65 63 6c 61 72 65 20 28 75 73 ate.(declare (us 0560: 65 73 20 70 67 64 62 2e 69 6d 70 6f 72 74 29 29 es pgdb.import)) 0570: 0a 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 .(declare (uses 0580: 6d 74 6d 6f 64 29 29 0a 3b 3b 20 63 61 6e 64 69 mtmod)).;; candi 0590: 64 61 74 65 0a 3b 3b 20 28 64 65 63 6c 61 72 65 date.;; (declare 05a0: 20 28 75 73 65 73 20 6d 74 6d 6f 64 2e 69 6d 70 (uses mtmod.imp 05b0: 6f 72 74 29 29 0a 28 64 65 63 6c 61 72 65 20 28 ort)).(declare ( 05c0: 75 73 65 73 20 73 65 72 76 65 72 6d 6f 64 29 29 uses servermod)) 05d0: 0a 3b 3b 20 63 61 6e 64 69 64 61 74 65 0a 3b 3b .;; candidate.;; 05e0: 20 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 (declare (uses 05f0: 73 65 72 76 65 72 6d 6f 64 2e 69 6d 70 6f 72 74 servermod.import 0600: 29 29 0a 28 64 65 63 6c 61 72 65 20 28 75 73 65 )).(declare (use 0610: 73 20 64 62 66 69 6c 65 29 29 0a 3b 3b 20 63 61 s dbfile)).;; ca 0620: 6e 64 69 64 61 74 65 0a 3b 3b 20 28 64 65 63 6c ndidate.;; (decl 0630: 61 72 65 20 28 75 73 65 73 20 64 62 66 69 6c 65 are (uses dbfile 0640: 2e 69 6d 70 6f 72 74 29 29 0a 28 64 65 63 6c 61 .import)).(decla 0650: 72 65 20 28 75 73 65 73 20 64 62 6d 6f 64 29 29 re (uses dbmod)) 0660: 0a 3b 3b 20 63 61 6e 64 69 64 61 74 65 0a 3b 3b .;; candidate.;; 0670: 20 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 (declare (uses 0680: 64 62 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a 28 dbmod.import)).( 0690: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 70 6f declare (uses po 06a0: 72 74 6c 6f 67 67 65 72 29 29 0a 3b 3b 20 63 61 rtlogger)).;; ca 06b0: 6e 64 69 64 61 74 65 0a 3b 3b 20 28 64 65 63 6c ndidate.;; (decl 06c0: 61 72 65 20 28 75 73 65 73 20 70 6f 72 74 6c 6f are (uses portlo 06d0: 67 67 65 72 2e 69 6d 70 6f 72 74 29 29 0a 28 64 gger.import)).(d 06e0: 65 63 6c 61 72 65 20 28 75 73 65 73 20 74 63 70 eclare (uses tcp 06f0: 2d 74 72 61 6e 73 70 6f 72 74 6d 6f 64 29 29 0a -transportmod)). 0700: 3b 3b 20 63 61 6e 64 69 64 61 74 65 0a 3b 3b 20 ;; candidate.;; 0710: 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 74 (declare (uses t 0720: 63 70 2d 74 72 61 6e 73 70 6f 72 74 6d 6f 64 2e cp-transportmod. 0730: 69 6d 70 6f 72 74 29 29 0a 28 64 65 63 6c 61 72 import)).(declar 0740: 65 20 28 75 73 65 73 20 66 73 6d 6f 64 29 29 0a e (uses fsmod)). 0750: 3b 3b 20 63 61 6e 64 69 64 61 74 65 0a 3b 3b 20 ;; candidate.;; 0760: 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 66 (declare (uses f 0770: 73 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a 28 64 smod.import)).(d 0780: 65 63 6c 61 72 65 20 28 75 73 65 73 20 6d 65 67 eclare (uses meg 0790: 61 74 65 73 74 6d 6f 64 29 29 0a 3b 3b 20 63 61 atestmod)).;; ca 07a0: 6e 64 69 64 61 74 65 0a 3b 3b 20 28 64 65 63 6c ndidate.;; (decl 07b0: 61 72 65 20 28 75 73 65 73 20 6d 65 67 61 74 65 are (uses megate 07c0: 73 74 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a 28 stmod.import)).( 07d0: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 61 70 declare (uses ap 07e0: 69 6d 6f 64 29 29 0a 3b 3b 20 63 61 6e 64 69 64 imod)).;; candid 07f0: 61 74 65 0a 3b 3b 20 28 64 65 63 6c 61 72 65 20 ate.;; (declare 0800: 28 75 73 65 73 20 61 70 69 6d 6f 64 2e 69 6d 70 (uses apimod.imp 0810: 6f 72 74 29 29 0a 28 64 65 63 6c 61 72 65 20 28 ort)).(declare ( 0820: 75 73 65 73 20 72 6d 74 6d 6f 64 29 29 0a 3b 3b uses rmtmod)).;; 0830: 20 63 61 6e 64 69 64 61 74 65 0a 3b 3b 20 28 64 candidate.;; (d 0840: 65 63 6c 61 72 65 20 28 75 73 65 73 20 72 6d 74 eclare (uses rmt 0850: 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a 28 64 65 mod.import)).(de 0860: 63 6c 61 72 65 20 28 75 73 65 73 20 74 61 73 6b clare (uses task 0870: 73 6d 6f 64 29 29 0a 3b 3b 20 63 61 6e 64 69 64 smod)).;; candid 0880: 61 74 65 0a 3b 3b 20 28 64 65 63 6c 61 72 65 20 ate.;; (declare 0890: 28 75 73 65 73 20 74 61 73 6b 73 6d 6f 64 2e 69 (uses tasksmod.i 08a0: 6d 70 6f 72 74 29 29 0a 28 64 65 63 6c 61 72 65 mport)).(declare 08b0: 20 28 75 73 65 73 20 74 65 73 74 73 6d 6f 64 29 (uses testsmod) 08c0: 29 0a 3b 3b 20 63 61 6e 64 69 64 61 74 65 0a 3b ).;; candidate.; 08d0: 3b 20 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 ; (declare (uses 08e0: 20 74 65 73 74 73 6d 6f 64 2e 69 6d 70 6f 72 74 testsmod.import 08f0: 29 29 0a 28 64 65 63 6c 61 72 65 20 28 75 73 65 )).(declare (use 0900: 73 20 73 75 62 72 75 6e 6d 6f 64 29 29 0a 3b 3b s subrunmod)).;; 0910: 20 63 61 6e 64 69 64 61 74 65 0a 3b 3b 20 28 64 candidate.;; (d 0920: 65 63 6c 61 72 65 20 28 75 73 65 73 20 73 75 62 eclare (uses sub 0930: 72 75 6e 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a runmod.import)). 0940: 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 61 (declare (uses a 0950: 72 63 68 69 76 65 6d 6f 64 29 29 0a 3b 3b 20 63 rchivemod)).;; c 0960: 61 6e 64 69 64 61 74 65 0a 3b 3b 20 28 64 65 63 andidate.;; (dec 0970: 6c 61 72 65 20 28 75 73 65 73 20 61 72 63 68 69 lare (uses archi 0980: 76 65 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a 28 vemod.import)).( 0990: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 72 75 declare (uses ru 09a0: 6e 73 6d 6f 64 29 29 0a 3b 3b 20 63 61 6e 64 69 nsmod)).;; candi 09b0: 64 61 74 65 0a 3b 3b 20 28 64 65 63 6c 61 72 65 date.;; (declare 09c0: 20 28 75 73 65 73 20 72 75 6e 73 6d 6f 64 2e 69 (uses runsmod.i 09d0: 6d 70 6f 72 74 29 29 0a 28 64 65 63 6c 61 72 65 mport)).(declare 09e0: 20 28 75 73 65 73 20 63 70 75 6d 6f 64 29 29 0a (uses cpumod)). 09f0: 3b 3b 20 63 61 6e 64 69 64 61 74 65 0a 3b 3b 20 ;; candidate.;; 0a00: 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 63 (declare (uses c 0a10: 70 75 6d 6f 64 2e 69 6d 70 6f 72 74 29 29 0a 28 pumod.import)).( 0a20: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 72 75 declare (uses ru 0a30: 6e 73 6d 6f 64 29 29 0a 28 64 65 63 6c 61 72 65 nsmod)).(declare 0a40: 20 28 75 73 65 73 20 65 7a 73 74 65 70 73 6d 6f (uses ezstepsmo 0a50: 64 29 29 0a 28 64 65 63 6c 61 72 65 20 28 75 73 d)).(declare (us 0a60: 65 73 20 6c 61 75 6e 63 68 6d 6f 64 29 29 0a 0a es launchmod)).. 0a70: 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 74 (declare (uses t 0a80: 64 62 29 29 0a 28 64 65 63 6c 61 72 65 20 28 75 db)).(declare (u 0a90: 73 65 73 20 65 6e 76 29 29 0a 28 64 65 63 6c 61 ses env)).(decla 0aa0: 72 65 20 28 75 73 65 73 20 64 69 66 66 2d 72 65 re (uses diff-re 0ab0: 70 6f 72 74 29 29 0a 28 64 65 63 6c 61 72 65 20 port)).(declare 0ac0: 28 75 73 65 73 20 73 65 72 76 65 72 29 29 0a 28 (uses server)).( 0ad0: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 67 65 declare (uses ge 0ae0: 6e 65 78 61 6d 70 6c 65 29 29 0a 28 64 65 63 6c nexample)).(decl 0af0: 61 72 65 20 28 75 73 65 73 20 6d 74 62 6f 64 79 are (uses mtbody 0b00: 29 29 0a 0a 28 69 6d 70 6f 72 74 20 63 73 69 29 ))..(import csi) 0b10: 0a 3b 3b 20 66 61 6b 65 20 6f 75 74 20 72 65 61 .;; fake out rea 0b20: 64 6c 69 6e 65 20 75 73 61 67 65 20 6f 66 20 74 dline usage of t 0b30: 6f 70 6c 65 76 65 6c 2d 63 6f 6d 6d 61 6e 64 0a oplevel-command. 0b40: 28 73 65 74 21 20 74 6f 70 6c 65 76 65 6c 2d 63 (set! toplevel-c 0b50: 6f 6d 6d 61 6e 64 20 28 6c 61 6d 62 64 61 20 28 ommand (lambda ( 0b60: 61 20 62 29 20 23 66 29 29 0a 0a 3b 3b 20 72 65 a b) #f))..;; re 0b70: 71 75 69 72 65 64 20 66 6f 72 20 63 68 69 63 6b quired for chick 0b80: 65 6e 20 34 0a 28 75 73 65 20 73 72 66 69 2d 36 en 4.(use srfi-6 0b90: 39 0a 20 20 20 20 20 63 61 6c 6c 2d 77 69 74 68 9. call-with 0ba0: 2d 65 6e 76 69 72 6f 6e 6d 65 6e 74 2d 76 61 72 -environment-var 0bb0: 69 61 62 6c 65 73 0a 20 20 20 20 20 63 73 76 0a iables. csv. 0bc0: 20 20 20 20 20 72 65 67 65 78 0a 20 20 20 20 20 regex. 0bd0: 72 65 67 65 78 2d 63 61 73 65 0a 20 20 20 20 20 regex-case. 0be0: 73 70 61 72 73 65 2d 76 65 63 74 6f 72 73 0a 20 sparse-vectors. 0bf0: 20 20 20 20 66 6f 72 6d 61 74 0a 20 20 20 20 20 format. 0c00: 66 6d 74 0a 20 20 20 20 20 29 0a 0a 28 69 6d 70 fmt. )..(imp 0c10: 6f 72 74 20 6d 74 62 6f 64 79 29 0a 0a 28 6d 61 ort mtbody)..(ma 0c20: 69 6e 29 0a in).