parent
e24932011f
commit
e62510c4f1
|
@ -118,7 +118,16 @@
|
||||||
(if (not silent)
|
(if (not silent)
|
||||||
(display-start))
|
(display-start))
|
||||||
|
|
||||||
(if (apply proc args)
|
(call-with-current-continuation
|
||||||
|
(lambda (k)
|
||||||
|
(if (with-handler
|
||||||
|
(lambda (cond more)
|
||||||
|
(display "Error: ")
|
||||||
|
(display cond)
|
||||||
|
(newline)
|
||||||
|
(k #f))
|
||||||
|
(lambda ()
|
||||||
|
(apply proc args)))
|
||||||
(begin
|
(begin
|
||||||
(if silent
|
(if silent
|
||||||
(display ".")
|
(display ".")
|
||||||
|
@ -131,7 +140,7 @@
|
||||||
(display "Error! Input was ")
|
(display "Error! Input was ")
|
||||||
(display args)
|
(display args)
|
||||||
(newline)
|
(newline)
|
||||||
#f)))))
|
#f)))))))
|
||||||
|
|
||||||
;; --- Exported functions to make a test -------------------------------
|
;; --- Exported functions to make a test -------------------------------
|
||||||
;; The following 3 functions start the testing. They all have an
|
;; The following 3 functions start the testing. They all have an
|
||||||
|
|
|
@ -8,21 +8,19 @@
|
||||||
test-summary))
|
test-summary))
|
||||||
|
|
||||||
(define-structure test-base test-base-interface
|
(define-structure test-base test-base-interface
|
||||||
(open scsh
|
(open scheme-with-scsh
|
||||||
scheme
|
handle
|
||||||
list-lib
|
list-lib
|
||||||
define-record-types)
|
define-record-types)
|
||||||
(files test-base))
|
(files test-base))
|
||||||
|
|
||||||
(define-structure file-system-test (export)
|
(define-structure file-system-test (export)
|
||||||
(open scsh
|
(open scheme-with-scsh
|
||||||
scheme
|
|
||||||
test-base)
|
test-base)
|
||||||
(files file-system-tests))
|
(files file-system-tests))
|
||||||
|
|
||||||
(define-structure process-state-test (export)
|
(define-structure process-state-test (export)
|
||||||
(open scsh
|
(open scheme-with-scsh
|
||||||
scheme
|
|
||||||
test-base)
|
test-base)
|
||||||
(files process-state-tests))
|
(files process-state-tests))
|
||||||
|
|
||||||
|
@ -41,8 +39,7 @@
|
||||||
exec-path-list-test
|
exec-path-list-test
|
||||||
add-before-test
|
add-before-test
|
||||||
add-after-test)
|
add-after-test)
|
||||||
(open scsh
|
(open scheme-with-scsh
|
||||||
scheme
|
|
||||||
thread-fluids
|
thread-fluids
|
||||||
list-lib
|
list-lib
|
||||||
string-lib)
|
string-lib)
|
||||||
|
@ -50,15 +47,13 @@
|
||||||
|
|
||||||
(define-structure add-env-test
|
(define-structure add-env-test
|
||||||
(export)
|
(export)
|
||||||
(open scsh
|
(open scheme-with-scsh
|
||||||
scheme
|
|
||||||
test-base
|
test-base
|
||||||
env-test)
|
env-test)
|
||||||
(files env-test-add))
|
(files env-test-add))
|
||||||
|
|
||||||
(define-structure system-parameter-tests (export)
|
(define-structure system-parameter-tests (export)
|
||||||
(open scsh
|
(open scheme-with-scsh
|
||||||
scheme
|
|
||||||
test-base)
|
test-base)
|
||||||
(begin
|
(begin
|
||||||
(add-test! 'uname 'system-parameter
|
(add-test! 'uname 'system-parameter
|
||||||
|
|
Loading…
Reference in New Issue