Fixed Typed Scheme's optimizer's test harness to work with drdr.
This commit is contained in:
parent
f58b58383f
commit
28acece484
|
@ -1861,6 +1861,7 @@ path/s is either such a string or a list of them.
|
|||
"collects/tests/typed-scheme/fail" drdr:command-line #f
|
||||
"collects/tests/typed-scheme/fail/with-type3.rkt" responsible (sstrickl)
|
||||
"collects/tests/typed-scheme/nightly-run.rkt" drdr:command-line #f
|
||||
"collects/tests/typed-scheme/optimizer" responsible (stamourv)
|
||||
"collects/tests/typed-scheme/run.rkt" drdr:command-line (racket "-t" * "--" "--nightly") drdr:timeout 1200
|
||||
"collects/tests/typed-scheme/xfail" drdr:command-line #f
|
||||
"collects/tests/units" responsible (sstrickl)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#lang racket
|
||||
(require racket/runtime-path)
|
||||
|
||||
;; since Typed Scheme's optimizer does source to source transformations,
|
||||
;; we compare the expansion of automatically optimized and hand optimized
|
||||
|
@ -20,13 +21,15 @@
|
|||
(begin (printf "~a failed\n\n" name)
|
||||
#f))))
|
||||
|
||||
(define-runtime-path here ".")
|
||||
|
||||
(let ((n-failures
|
||||
(if (> (vector-length (current-command-line-arguments)) 0)
|
||||
(if (test (format "generic/~a.rkt"
|
||||
(vector-ref (current-command-line-arguments) 0)))
|
||||
0 1)
|
||||
(for/fold ((n-failures 0))
|
||||
((gen (in-directory "generic")))
|
||||
((gen (in-directory (build-path here "generic"))))
|
||||
(+ n-failures (if (test gen) 0 1))))))
|
||||
(unless (= n-failures 0)
|
||||
(error (format "~a tests failed." n-failures))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user