Skip to content

Commit

Permalink
Separate flexi-streams-test.asd to satisfy ASDF 3.3
Browse files Browse the repository at this point in the history
ASDF 3 expects secondary systems to use a slash in their system
name, e.g. foo.asd should only contain a system named 'foo' and
additional ones called 'foo/test', 'foo/api' etc. [1]

This change extracts the system flexi-streams-test to have its own
.asd file.

[1] https://common-lisp.net/project/asdf/asdf/Components.html#Components
  • Loading branch information
darabi committed Feb 7, 2018
1 parent e171850 commit a0050b7
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 7 deletions.
41 changes: 41 additions & 0 deletions flexi-streams-test.asd
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-USER; Base: 10 -*-

;;; Copyright (c) 2005-2008, Dr. Edmund Weitz. All rights reserved.

;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:

;;; * Redistributions of source code must retain the above copyright
;;; notice, this list of conditions and the following disclaimer.

;;; * Redistributions in binary form must reproduce the above
;;; copyright notice, this list of conditions and the following
;;; disclaimer in the documentation and/or other materials
;;; provided with the distribution.

;;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESSED
;;; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
;;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
;;; ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
;;; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
;;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
;;; GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
;;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
;;; 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 :cl-user)

(defpackage :flexi-streams-system
(:use :asdf :cl))

(in-package :flexi-streams-system)

(defsystem :flexi-streams-test
:components ((:module "test"
:serial t
:components ((:file "packages")
(:file "test"))))
:depends-on (:flexi-streams))
7 changes: 0 additions & 7 deletions flexi-streams.asd
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@
(:file "strings"))
:depends-on (:trivial-gray-streams))

(defsystem :flexi-streams-test
:components ((:module "test"
:serial t
:components ((:file "packages")
(:file "test"))))
:depends-on (:flexi-streams))

(defmethod perform ((o test-op) (c (eql (find-system 'flexi-streams))))
(operate 'load-op 'flexi-streams-test)
(funcall (intern (symbol-name :run-all-tests)
Expand Down

0 comments on commit a0050b7

Please sign in to comment.