Megatest

Hex Artifact Content
Login

Artifact d4bb0a569f6b937158b9819d9243a24f6d862108:


0000: 0a 3b 3b 20 43 6f 70 79 72 69 67 68 74 20 32 30  .;; Copyright 20
0010: 30 36 2d 32 30 31 36 2c 20 4d 61 74 74 68 65 77  06-2016, Matthew
0020: 20 57 65 6c 6c 61 6e 64 2e 0a 3b 3b 20 0a 3b 3b   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: 3b 3b 20 0a 3b 3b 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 3b 3b 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 3b 3b 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 3b 3b 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 3b 3b 20 0a  er version..;; .
0160: 3b 3b 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 3b 3b 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 3b 3b 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 3b 3b  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 3b 3b 20 0a 3b 3b 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 3b  Public License.;
02b0: 3b 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 0a 3b 3b 20 20 73 74 72  nses/>...;;  str
0300: 66 74 69 6d 65 28 27 25 6d 2f 25 64 2f 25 59 20  ftime('%m/%d/%Y 
0310: 25 48 3a 25 4d 3a 25 53 27 2c 27 6e 6f 77 27 2c  %H:%M:%S','now',
0320: 27 6c 6f 63 61 6c 74 69 6d 65 27 29 0a 0a 28 75  'localtime')..(u
0330: 73 65 20 28 70 72 65 66 69 78 20 73 71 6c 69 74  se (prefix sqlit
0340: 65 33 20 73 71 6c 69 74 65 33 3a 29 20 73 72 66  e3 sqlite3:) srf
0350: 69 2d 31 20 70 6f 73 69 78 20 72 65 67 65 78 20  i-1 posix regex 
0360: 72 65 67 65 78 2d 63 61 73 65 20 73 72 66 69 2d  regex-case srfi-
0370: 36 39 20 28 73 72 66 69 20 31 38 29 20 0a 20 20  69 (srfi 18) .  
0380: 20 20 20 70 6f 73 69 78 2d 65 78 74 72 61 73 20     posix-extras 
0390: 64 69 72 65 63 74 6f 72 79 2d 75 74 69 6c 73 20  directory-utils 
03a0: 70 61 74 68 6e 61 6d 65 2d 65 78 70 61 6e 64 20  pathname-expand 
03b0: 74 79 70 65 64 2d 72 65 63 6f 72 64 73 20 66 6f  typed-records fo
03c0: 72 6d 61 74 0a 20 20 20 20 20 63 61 6c 6c 2d 77  rmat.     call-w
03d0: 69 74 68 2d 65 6e 76 69 72 6f 6e 6d 65 6e 74 2d  ith-environment-
03e0: 76 61 72 69 61 62 6c 65 73 29 0a 28 64 65 63 6c  variables).(decl
03f0: 61 72 65 20 28 75 6e 69 74 20 73 75 62 72 75 6e  are (unit subrun
0400: 29 29 0a 3b 3b 28 64 65 63 6c 61 72 65 20 28 75  )).;;(declare (u
0410: 73 65 73 20 72 75 6e 73 29 29 0a 28 64 65 63 6c  ses runs)).(decl
0420: 61 72 65 20 28 75 73 65 73 20 64 62 29 29 0a 28  are (uses db)).(
0430: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 63 6f  declare (uses co
0440: 6d 6d 6f 6e 29 29 0a 28 64 65 63 6c 61 72 65 20  mmon)).(declare 
0450: 28 75 73 65 73 20 63 6f 6d 6d 6f 6e 6d 6f 64 29  (uses commonmod)
0460: 29 0a 28 69 6d 70 6f 72 74 20 63 6f 6d 6d 6f 6e  ).(import common
0470: 6d 6f 64 29 0a 0a 3b 3b 28 64 65 63 6c 61 72 65  mod)..;;(declare
0480: 20 28 75 73 65 73 20 69 74 65 6d 73 29 29 0a 3b   (uses items)).;
0490: 3b 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20  ;(declare (uses 
04a0: 72 75 6e 63 6f 6e 66 69 67 29 29 0a 3b 3b 28 64  runconfig)).;;(d
04b0: 65 63 6c 61 72 65 20 28 75 73 65 73 20 74 65 73  eclare (uses tes
04c0: 74 73 29 29 0a 3b 3b 28 64 65 63 6c 61 72 65 20  ts)).;;(declare 
04d0: 28 75 73 65 73 20 73 65 72 76 65 72 29 29 0a 28  (uses server)).(
04e0: 64 65 63 6c 61 72 65 20 28 75 73 65 73 20 6d 74  declare (uses mt
04f0: 29 29 0a 3b 3b 28 64 65 63 6c 61 72 65 20 28 75  )).;;(declare (u
0500: 73 65 73 20 61 72 63 68 69 76 65 29 29 0a 3b 3b  ses archive)).;;
0510: 20 28 64 65 63 6c 61 72 65 20 28 75 73 65 73 20   (declare (uses 
0520: 66 69 6c 65 64 62 29 29 0a 0a 3b 28 69 6e 63 6c  filedb))..;(incl
0530: 75 64 65 20 22 63 6f 6d 6d 6f 6e 5f 72 65 63 6f  ude "common_reco
0540: 72 64 73 2e 73 63 6d 22 29 0a 3b 3b 28 69 6e 63  rds.scm").;;(inc
0550: 6c 75 64 65 20 22 6b 65 79 5f 72 65 63 6f 72 64  lude "key_record
0560: 73 2e 73 63 6d 22 29 0a 28 69 6e 63 6c 75 64 65  s.scm").(include
0570: 20 22 64 62 5f 72 65 63 6f 72 64 73 2e 73 63 6d   "db_records.scm
0580: 22 29 20 3b 3b 20 70 72 6f 76 69 64 65 73 20 64  ") ;; provides d
0590: 62 3a 74 65 73 74 2d 67 65 74 2d 69 64 0a 3b 3b  b:test-get-id.;;
05a0: 28 69 6e 63 6c 75 64 65 20 22 72 75 6e 5f 72 65  (include "run_re
05b0: 63 6f 72 64 73 2e 73 63 6d 22 29 0a 3b 3b 28 69  cords.scm").;;(i
05c0: 6e 63 6c 75 64 65 20 22 74 65 73 74 5f 72 65 63  nclude "test_rec
05d0: 6f 72 64 73 2e 73 63 6d 22 29 0a 0a              ords.scm")..