Skip to content

Commit

Permalink
Use path-style names for test packages and test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
sionescu committed Dec 15, 2019
1 parent 038c4e5 commit 6ae8a6f
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions tests/base.lisp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
;;; --- iolib.base test suite.
;;; --- iolib/base test suite.
;;;

(in-package :iolib-tests)
(in-package :iolib/tests)

(in-suite :iolib.base)
(in-suite :iolib/base)
12 changes: 6 additions & 6 deletions tests/defsuites.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
;;; --- Main test suite definition.
;;;

(in-package :iolib-tests)
(in-package :iolib/tests)

(def-suite :iolib
:description "Main test suite for IOLib.")

(def-suite :iolib.base :in :iolib)
(def-suite :iolib/base :in :iolib)

(def-suite :iolib.pathnames :in :iolib)
(def-suite :iolib/pathnames :in :iolib)

(def-suite :iolib.multiplex :in :iolib)
(def-suite :iolib/multiplex :in :iolib)

(def-suite :iolib.streams :in :iolib)
(def-suite :iolib/streams :in :iolib)

(def-suite :iolib.sockets :in :iolib)
(def-suite :iolib/sockets :in :iolib)
6 changes: 3 additions & 3 deletions tests/file-paths-unix.lisp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
;;; --- iolib.pathnames test suite.
;;; --- iolib/pathnames test suite.
;;;

(in-package :iolib-tests)
(in-package :iolib/tests)

(in-suite :iolib.pathnames)
(in-suite :iolib/pathnames)

(defmacro is-file-path (path (&rest components))
(with-gensyms (p)
Expand Down
6 changes: 3 additions & 3 deletions tests/events.lisp → tests/multiplex.lisp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
;;; --- iolib.multiplex test suite.
;;; --- iolib/multiplex test suite.
;;;

(in-package :iolib-tests)
(in-package :iolib/tests)

(in-suite :iolib.multiplex)
(in-suite :iolib/multiplex)

(defmacro with-event-base/for-each-mux ((base &rest initargs) &body body)
`(let ((failed-list))
Expand Down
4 changes: 2 additions & 2 deletions tests/pkgdcl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

(in-package :cl-user)

(defpackage :iolib-tests
(defpackage :iolib/tests
(:nicknames :iolib/tests)
(:use :5am :iolib.base :iolib :iolib.pathnames)
(:use :5am :iolib/base :iolib :iolib/pathnames)
#+sb-package-locks
(:lock t)
(:export #:*echo-address* #:*echo-port*))
8 changes: 4 additions & 4 deletions tests/sockets.lisp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
;;; --- iolib.sockets test suite.
;;; --- iolib/sockets test suite.
;;;

(in-package :iolib-tests)
(in-package :iolib/tests)

(in-suite :iolib.sockets)
(in-suite :iolib/sockets)

(iolib.base:enable-literal-reader)

Expand Down Expand Up @@ -382,7 +382,7 @@
(is (string= (let ((file (namestring
(make-pathname :name "local-socket" :type nil
:defaults (asdf:component-pathname
(asdf:find-system :iolib.tests))))))
(asdf:find-system :iolib/tests))))))
(ignore-errors (delete-file file))
(with-open-socket (p :address-family :local :connect :passive :local-filename file)
(with-open-socket (a :address-family :local :remote-filename file)
Expand Down
6 changes: 3 additions & 3 deletions tests/streams.lisp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
;;; --- iolib.streams test suite.
;;; --- iolib/streams test suite.
;;;
;;; Copyright (c) 2006-2007, Dr. Edmund Weitz. All rights reserved.
;;; Copyright (c) 2007, Luis Oliveira <[email protected]>
Expand Down Expand Up @@ -29,9 +29,9 @@
;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

(in-package :iolib-tests)
(in-package :iolib/tests)

(in-suite :iolib.streams)
(in-suite :iolib/streams)

(defclass my-file-stream (dual-channel-gray-stream)
((path :initarg :path :reader file-stream-path)))
Expand Down

0 comments on commit 6ae8a6f

Please sign in to comment.