1 (defvar *test-evaluator-mode
* :compile
)
3 (defun clear-test-status ()
4 (with-open-file (stream "test-status.lisp-expr"
7 (write-line "NIL" stream
)))
9 (defun load-test (file)
10 (load file
:external-format
:utf-8
))
12 (defun cload-test (file)
13 (let ((compile-name (compile-file-pathname file
)))
16 (compile-file file
:print nil
)
19 (delete-file compile-name
)))))
24 (sb-posix:setenv
"TEST_SBCL_EVALUATOR_MODE"
25 (string-downcase *test-evaluator-mode
*)
27 (let ((process (sb-ext:run-program
"/bin/sh"
28 (list (native-namestring file
))
29 :output
*error-output
*)))
30 (let ((*failures
* nil
))
31 (test-util:report-test-status
))
32 (sb-ext:exit
:code
(process-exit-code process
)))))