253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
|
;; U T I L S
;;======================================================================
;; given a mtutil param, return the old megatest equivalent
;;
(define (param-translate param)
(or (alist-ref (string->symbol param)
'((-tag-expr . "-tagexpr")
(-mode-patt . "-modepatt")
(-run-name . "-runname")
(-test-patt . "-testpatt")
(-msg . "-m")
(-new . "-set-state-status")))
param))
(define (val->alist val)
(let ((val-list (string-split-fields ";\\s*" val #:infix)))
(if val-list
(map (lambda (x)
(let ((f (string-split-fields "\\s*=\\s*" x #:infix)))
|
<
<
<
|
<
<
|
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
|
;; U T I L S
;;======================================================================
;; given a mtutil param, return the old megatest equivalent
;;
(define (param-translate param)
(or (alist-ref (string->symbol param)
(common:get-param-mapping flavor: 'switch-symbol))
param))
(define (val->alist val)
(let ((val-list (string-split-fields ";\\s*" val #:infix)))
(if val-list
(map (lambda (x)
(let ((f (string-split-fields "\\s*=\\s*" x #:infix)))
|