Skip to content
iolib-tests.asd 2.22 KiB
Newer Older
Luís Oliveira's avatar
Luís Oliveira committed
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Indent-tabs-mode: NIL -*-
Luís Oliveira's avatar
Luís Oliveira committed
;;;
;;; iolib-tests.asd --- ASDF system definition.
Luís Oliveira's avatar
Luís Oliveira committed
;;;
;;; Copyright (C) 2007, Luis Oliveira  <loliveira@common-lisp.net>
;;;
;;; Permission is hereby granted, free of charge, to any person
;;; obtaining a copy of this software and associated documentation
;;; files (the "Software"), to deal in the Software without
;;; restriction, including without limitation the rights to use, copy,
;;; modify, merge, publish, distribute, sublicense, and/or sell copies
;;; of the Software, and to permit persons to whom the Software is
;;; furnished to do so, subject to the following conditions:
;;;
;;; The above copyright notice and this permission notice shall be
;;; included in all copies or substantial portions of the Software.
;;;
;;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
;;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
;;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
;;; NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
;;; HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
;;; WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
;;; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
;;; DEALINGS IN THE SOFTWARE.

(asdf:defsystem :iolib-tests
Luís Oliveira's avatar
Luís Oliveira committed
  :description "IOLib test suite."
  :author "Luis Oliveira <loliveira@common-lisp.net>"
Luís Oliveira's avatar
Luís Oliveira committed
  :licence "MIT"
  :depends-on (:io.multiplex :io.streams :net.sockets :fiveam)
Luís Oliveira's avatar
Luís Oliveira committed
  :pathname (merge-pathnames (make-pathname :directory '(:relative "tests"))
                             *load-truename*)
  :components
Luís Oliveira's avatar
Luís Oliveira committed
  ((:file "pkgdcl")
   (:file "mainsuite" :depends-on ("pkgdcl"))
   (:file "misc" :depends-on ("pkgdcl" "mainsuite"))
   (:file "events" :depends-on ("pkgdcl" "mainsuite"))
   (:file "streams" :depends-on ("pkgdcl" "mainsuite"))
   (:file "sockets" :depends-on ("pkgdcl" "mainsuite"))))
(defmethod asdf:perform ((o asdf:test-op)
                         (c (eql (asdf:find-system :iolib-tests))))
  (asdf:operate 'asdf:load-op :iolib-tests)
  (funcall (intern (symbol-name '#:run!) '#:5am) :iolib))
(defmethod asdf:operation-done-p ((o asdf:test-op)
                                  (c (eql (asdf:find-system :iolib-tests))))