PageRenderTime 19ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/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
10;;; Setting up the :CHANL package to include 5AM stuff
11(eval-when (:compile-toplevel :load-toplevel :execute)
12  (import '(5am:def-suite 5am:run! 5am:is 5am:in-suite 5am:signals))
13  (export 'run-all-tests))
14
15(defmacro test (name &body body)
16  `(5am:test ,name ,@body))
17
18;;; Preparing the test suite
19(def-suite chanl)
20
21(defun run-all-tests ()
22  (run! 'chanl))
23
24(in-suite chanl)
25