...
original commit: 96d5cfa04a0e5d45385ce705e38e1dcbfdc0de99
This commit is contained in:
parent
aa857b23a5
commit
ccd198d735
|
@ -67,7 +67,7 @@ tests.
|
||||||
|
|
||||||
| This tests the seaching frame.
|
| This tests the seaching frame.
|
||||||
|
|
||||||
- info: |# info.ss #|
|
- info: |# info-frame.ss #|
|
||||||
|
|
||||||
| This tests the info frame. (ie that toolbar on the bottom of the
|
| This tests the info frame. (ie that toolbar on the bottom of the
|
||||||
screen)
|
screen)
|
||||||
|
|
|
@ -18,7 +18,8 @@
|
||||||
|
|
||||||
(define-signature internal-TestSuite^
|
(define-signature internal-TestSuite^
|
||||||
((open TestSuite^)
|
((open TestSuite^)
|
||||||
test-name))
|
test-name
|
||||||
|
failed-tests))
|
||||||
|
|
||||||
(define-signature Engine^
|
(define-signature Engine^
|
||||||
(only-these-tests
|
(only-these-tests
|
||||||
|
@ -34,6 +35,7 @@
|
||||||
mzlib:function^)
|
mzlib:function^)
|
||||||
|
|
||||||
(define test-name "<<setup>>")
|
(define test-name "<<setup>>")
|
||||||
|
(define failed-tests null)
|
||||||
|
|
||||||
(define-struct eof-result ())
|
(define-struct eof-result ())
|
||||||
|
|
||||||
|
@ -175,6 +177,7 @@
|
||||||
(not (passed? result))))])
|
(not (passed? result))))])
|
||||||
(when failed
|
(when failed
|
||||||
(printf "FAILED ~a: ~a~n" failed test-name)
|
(printf "FAILED ~a: ~a~n" failed test-name)
|
||||||
|
(set! failed-tests (cons (cons section-name test-name) failed-tests))
|
||||||
(case jump
|
(case jump
|
||||||
[(section) (section-jump)]
|
[(section) (section-jump)]
|
||||||
[(continue) (void)]
|
[(continue) (void)]
|
||||||
|
@ -250,7 +253,7 @@
|
||||||
[section-jump k])
|
[section-jump k])
|
||||||
(with-handlers ([(lambda (x) #t)
|
(with-handlers ([(lambda (x) #t)
|
||||||
(lambda (exn)
|
(lambda (exn)
|
||||||
(printf "~a" (if (exn? exn) (exn-message exn) exn)))])
|
(printf "~a~n" (if (exn? exn) (exn-message exn) exn)))])
|
||||||
(printf "beginning ~a test suite~n" x)
|
(printf "beginning ~a test suite~n" x)
|
||||||
(invoke-unit/sig
|
(invoke-unit/sig
|
||||||
(eval
|
(eval
|
||||||
|
@ -278,7 +281,13 @@
|
||||||
(delete-file old-preferences-file))
|
(delete-file old-preferences-file))
|
||||||
(printf " restored preferences file~n")
|
(printf " restored preferences file~n")
|
||||||
|
|
||||||
(shutdown-listener)))
|
(shutdown-listener)
|
||||||
|
|
||||||
|
(unless (null? failed-tests)
|
||||||
|
(printf "FAILED tests:~n")
|
||||||
|
(for-each (lambda (failed-test)
|
||||||
|
(printf " ~a // ~a~n" (car failed-test) (cdr failed-test)))
|
||||||
|
failed-tests))))
|
||||||
|
|
||||||
(invoke-unit/sig
|
(invoke-unit/sig
|
||||||
(compound-unit/sig
|
(compound-unit/sig
|
||||||
|
|
Loading…
Reference in New Issue
Block a user