(directory "tests/*.lisp")
(directory "tests-report.lisp")))
(ls-compile-file input out))))
+
+
+;;; Run the tests in the host Lisp implementation. It is a quick way
+;;; to improve the level of trust of the tests.
+(defun run-tests-in-host ()
+ (dolist (input (append (directory "tests.lisp")
+ (directory "tests/*.lisp")
+ (directory "tests-report.lisp")))
+ (load input)))
(write-line "")
(write-string "Finished. The execution took ")
-(write-string (prin1-to-string (/ (- (get-internal-real-time) *timestamp*) internal-time-units-per-second)))
+(write-string (prin1-to-string (/ (- (get-internal-real-time) *timestamp*) internal-time-units-per-second 1.0)))
(write-line " seconds.")
(cond
(defvar *passed-tests* 0)
(defvar *failed-tests* 0)
-(defvar *timestamp* (get-internal-real-time))
+(defvar *timestamp*)
(defmacro test (condition)
`(cond
(write-line "Running tests...")
(write-line "")
+
+(setq *timestamp* (get-internal-real-time))