Megatest

Diff
Login

Differences From Artifact [54f7083883]:

To Artifact [cb27731940]:


1
2
3
4
5
6
7
8
9
10





11
12
13
14
15







16
17
18
19
20
21
22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15





16
17
18
19
20
21
22
23
24
25
26
27
28
29










+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+








(declare (unit debugprint))
(declare (uses mtargs))

(module debugprint
	*
	
;;(import scheme chicken data-structures extras files ports)
  (import
    scheme
    chicken.base
    chicken.process-context
    chicken.process-context.posix
    chicken.time
    chicken.port
    chicken
    data-structures
    posix
    ports
    extras
    chicken.time.posix
    chicken.string
    system-information
    ;; data-structures
    ;; posix
    ;; ports
    ;; extras
    
    ;; scheme
    ;; chicken.base
    ;; chicken.string
    ;; chicken.time
    ;; chicken.time.posix
    ;; chicken.port
43
44
45
46
47
48
49
50

51
52
53
54
55
56
57
50
51
52
53
54
55
56

57
58
59
60
61
62
63
64







-
+







    (verbosity (debug:calc-verbosity debugstr 'q))
    (debug:check-verbosity (verbosity) debugstr)
    ;; if we were handed a bad verbosity rule then we will override it with 1 and continue
    (if (not (verbosity))(verbosity 1))
    (if (and (not (args:get-arg "-debug-noprop"))
      	     (or (args:get-arg "-debug")
      		 (not (get-environment-variable "MT_DEBUG_MODE"))))
      	(setenv #;set-environment-variable! "MT_DEBUG_MODE" (if (list? (verbosity))
      	(set-environment-variable! "MT_DEBUG_MODE" (if (list? (verbosity))
      				    (string-intersperse (map conc (verbosity)) ",")
      				    (conc (verbosity)))))))

;; check verbosity, #t is ok
(define (debug:check-verbosity verbosity vstr)
  (if (not (or (number? verbosity)
     	       (list?   verbosity)))