Megatest

Diff
Login

Differences From Artifact [c6074c6fe9]:

To Artifact [600e488be2]:


23
24
25
26
27
28
29
30
31
32
33

34
35
36
37
38
39



40
41
42


;; configure mtdebug  ;; TODO: move to megatest.scm with other command line arg processing
(if (args:get-arg "-v")     (debug:set-verbose-mode))
(if (args:get-arg "-q")     (debug:set-quiet-mode))
(if (args:get-arg "-debug") (debug:set-debug-mode))
(if (args:get-arg "-color")
    (case (string->symbol (args:get-arg "-color"))
      ((y Y yes YES t T) (debug:force-color))
      ((n N no NO f F)   (debug:suppress-color))))

;; configure mtconfigf

(let* ((normal-fn debug:print)
       (info-fn   debug:print-info)
       (error-fn  debug:print-error)
       (default-port *default-log-port*))
  (set-debug-printers normal-fn info-fn error-fn default-port))




(configf:add-eval-string "(use (prefix mtargs    args:))
                          (use mtdebug)
                          (use (prefix mtconfigf configf:))")








|
|


>




|

>
>
>
|
|
|
>
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

;; configure mtdebug  ;; TODO: move to megatest.scm with other command line arg processing
(if (args:get-arg "-v")     (debug:set-verbose-mode))
(if (args:get-arg "-q")     (debug:set-quiet-mode))
(if (args:get-arg "-debug") (debug:set-debug-mode))
(if (args:get-arg "-color")
    (case (string->symbol (args:get-arg "-color"))
      ((y Y yes YES t T)  (debug:force-color))
      ((n N no NO f F)    (debug:suppress-color))))

;; configure mtconfigf
(define *default-log-port*  (current-error-port))
(let* ((normal-fn debug:print)
       (info-fn   debug:print-info)
       (error-fn  debug:print-error)
       (default-port *default-log-port*))
  (configf:set-debug-printers normal-fn info-fn error-fn default-port))

(define *add-eval-string-check* #f)
(cond
 ((not *add-eval-string-check*)
  (configf:add-eval-string "(import (prefix mtargs    args:))
                          (import mtdebug)
                          (import (prefix mtconfigf configf:))")
  (set! *add-eval-string-check* #t)))