/tests/setup-tests.lisp

http://github.com/sykopomp/chanl · Lisp · 25 lines · 10 code · 6 blank · 9 comment · 0 complexity · 807e0123fd1b032911c4fe7a716ddb10 MD5 · raw file

  1. ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; indent-tabs-mode: nil -*-
  2. ;;;;
  3. ;;;; Copyright © 2009 Kat Marchan, Adlai Chandrasekhar
  4. ;;;;
  5. ;;;; Preparation for the ChanL test suite
  6. ;;;;
  7. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  8. (in-package :chanl)
  9. ;;; Setting up the :CHANL package to include 5AM stuff
  10. (eval-when (:compile-toplevel :load-toplevel :execute)
  11. (import '(5am:def-suite 5am:run! 5am:is 5am:in-suite 5am:signals))
  12. (export 'run-all-tests))
  13. (defmacro test (name &body body)
  14. `(5am:test ,name ,@body))
  15. ;;; Preparing the test suite
  16. (def-suite chanl)
  17. (defun run-all-tests ()
  18. (run! 'chanl))
  19. (in-suite chanl)