13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with Megatest. If not, see <http://www.gnu.org/licenses/>.
;;======================================================================
(use (prefix mtargs args:))
(use mtdebug)
(use (prefix mtconfigf configf:))
;; 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-verbosity (args:get-arg "-debug")))
(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))
|
>
|
|
|
>
<
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with Megatest. If not, see <http://www.gnu.org/licenses/>.
;;======================================================================
(define (load-common-modules)
(use (prefix mtargs args:))
(use mtdebug)
(use (prefix mtconfigf configf:)))
(load-common-modules)
;; 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 "-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))
|