Megatest

Diff
Login

Differences From Artifact [73e9da4e68]:

To Artifact [ab8143b2ea]:


31
32
33
34
35
36
37


















38
39
40
41
42
43
44
(define *db* #f) ;; this is only for the repl, do not use in general!!!!

(include "common_records.scm")
(include "key_records.scm")
(include "db_records.scm")
(include "run_records.scm")
(include "megatest-fossil-hash.scm")



















(let ((debugcontrolf (conc (get-environment-variable "HOME") "/.megatestrc")))
  (if (file-exists? debugcontrolf)
      (load debugcontrolf)))


(define help (conc "







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
(define *db* #f) ;; this is only for the repl, do not use in general!!!!

(include "common_records.scm")
(include "key_records.scm")
(include "db_records.scm")
(include "run_records.scm")
(include "megatest-fossil-hash.scm")

;; Overall exit handling setup immediately
;;
(let ((original-exit (exit-handler)))
  (exit-handler (lambda (#!optional (exit-code 0))
		  (printf "Preparing to exit with exit code ~A ...\n" exit-code)
		  (children
		   (lambda (pid)
		     (handle-exceptions
		      exn
		      #t
		      (let-values (((pid-val exit-status exit-code) (process-wait pid #t)))
				  (if (or (eq? pid-val pid)
					  (eq? pid-val 0))
				      (begin
					(printf "Sending signal/term to ~A\n" pid)
					(process-signal pid signal/term)))))))
		  (original-exit exit-code))))

(let ((debugcontrolf (conc (get-environment-variable "HOME") "/.megatestrc")))
  (if (file-exists? debugcontrolf)
      (load debugcontrolf)))


(define help (conc "