source: trunk/abcl/abcl.asd @ 14049

Last change on this file since 14049 was 14049, checked in by ehuelsmann, 8 years ago

Add the clos-tests.lisp file added in the last commit to the ASD file.

  • Property svn:keywords set to Id
File size: 6.2 KB
RevLine 
[11530]1;;; -*- Mode: LISP; Syntax: COMMON-LISP -*-
2;;; $Id: abcl.asd 14049 2012-08-03 20:43:53Z ehuelsmann $
3
4(require 'asdf)
[13261]5(in-package :asdf)
[11530]6
[11556]7;;; Wrapper for all ABCL ASDF definitions.
[13261]8(defsystem :abcl :version "0.6.0")
[11530]9
[12338]10;;;  Run via (asdf:operate 'asdf:test-op :abcl :force t)
11(defmethod perform ((o test-op) (c (eql (find-system :abcl))))
[13261]12  (load-system (find-system :abcl-test-lisp))
13  (operate 'test-op :abcl-test-lisp))
[12301]14
[12338]15;;; Test ABCL with the Lisp unit tests collected in "test/lisp/abcl"
[13008]16;;;
17;;; We guard with #+abcl for tests that other Lisps cannot load.  This
18;;; could be possibly be done at finer granularity in the files
19;;; themselves.
[13057]20(defsystem :abcl-test-lisp :version "1.2" :components
[12402]21     ((:module abcl-rt
22                     :pathname "test/lisp/abcl/" :serial t :components
[13057]23         ((:file "rt-package")
24                      (:file "rt")
[12402]25                      (:file "test-utilities")))
[12300]26      (:module package  :depends-on (abcl-rt)
[11605]27         :pathname "test/lisp/abcl/" :components
[12402]28         ((:file "package")))
29            (:module test :depends-on (package)
30         :pathname "test/lisp/abcl/" :components
[13057]31                     ((:file "utilities")
32                      (:file "compiler-tests")
[12402]33                      (:file "condition-tests")
[13008]34                      #+abcl
[12918]35                      (:file "class-file")
[13008]36                      #+abcl
[12658]37                      (:file "metaclass")
[12899]38                      #+abcl
[12402]39                      (:file "mop-tests-setup")
[12899]40                      #+abcl
[13261]41                      (:file "mop-tests" :depends-on
42                             ("mop-tests-setup"))
[14049]43                      (:file "clos-tests")
[12402]44                      (:file "file-system-tests")
[12899]45                      #+abcl
[13261]46                      (:file "jar-pathname" :depends-on
[13057]47                             ("utilities" "pathname-tests" "file-system-tests"))
[12899]48                      #+abcl
[12610]49                      (:file "url-pathname")
[13261]50                      (:file "math-tests" :depends-on
51                             ("compiler-tests"))
[12402]52                      (:file "misc-tests")
[12902]53                      (:file "latin1-tests")
[13261]54                      (:file "bugs" :depends-on
55                             ("file-system-tests"))
56                      (:file "wild-pathnames" :depends-on
57                             ("file-system-tests"))
[13309]58                      #+abcl
59                      (:file "weak-hash-tables")
[13336]60                      #+abcl
61                      (:file "zip")
[13008]62                      #+abcl
[13261]63                      (:file "pathname-tests" :depends-on
64                             ("utilities"))))))
[12402]65
[11599]66(defmethod perform ((o test-op) (c (eql (find-system 'abcl-test-lisp))))
[12301]67   "Invoke tests with (asdf:oos 'asdf:test-op :abcl-test-lisp)."
[12402]68   (funcall (intern (symbol-name 'run) :abcl.test.lisp)))
[12335]69
[13925]70;;;;
71;;;; ASDF definitions and the ANSI-TEST
72;;;;
73
74;;; We refer to the ANSI-TESTS source tree, which isn't shipped as
75;;; part of ABCL, but may be obtained at
76;;; <svn://common-lisp.net/project/ansi-test/svn/trunk/ansi-tests>.
77
78;;; We currently require that the ANSI-TESTS to be in a sibling
79;;; directory named "ansi-tests" which should be manually synced with
80;;; the contents of the SVN repository listed above.
81
82;;; The ASDF definition for ABCL.TEST.ANSI defines VERIFY-ANSI-TESTS
83;;; which provides a more useful diagnostic, but I can't seem to find
84;;; a way to hook this into the ASDF:LOAD-OP phase
85(defsystem :ansi-rt
86  :description "Enapsulation of the REGRESSION-TEST framework use by ~
87the ANSI test suite, so that we may build on its 'API'.
88
89Requires that the contents of <svn://common-lisp.net/project/ansi-test/svn/trunk/ansi-tests> ~
90be in a directory named '../ansi-test/'."
91  :pathname "../ansi-tests/" ;;; NB works when loaded from ASDF but not with a naked EVAL
92  :default-component-class cl-source-file.lsp
93  :components ((:file "rt-package")
94               (:file "rt" :depends-on (rt-package))))
95
[13924]96(defsystem :ansi-interpreted
97  :version "1.2"
[13925]98  :description "Test ABCL with the interpreted ANSI tests."
99  :depends-on (ansi-rt) :components
[13924]100  ((:module ansi-tests :pathname "test/lisp/ansi/" :components
101            ((:file "packages")
102             (:file "abcl-ansi" :depends-on ("packages"))
103             (:file "parse-ansi-errors" :depends-on ("abcl-ansi"))))))
[12338]104(defmethod perform :before ((o test-op) (c (eql (find-system :ansi-interpreted))))
[13925]105  (load-system :ansi-interpreted))
[13924]106
107(defmethod perform :after ((o load-op) (c (eql (find-system :ansi-interpreted))))
108  (funcall (intern (symbol-name 'load-tests) :abcl.test.ansi)))
109
[12338]110(defmethod perform ((o test-op) (c (eql (find-system :ansi-interpreted))))
111  (funcall (intern (symbol-name 'run) :abcl.test.ansi)
112     :compile-tests nil))
113
[13924]114(defsystem :ansi-compiled :version "1.2"
[13925]115           :description "Test ABCL with the compiled ANSI tests."
116           :depends-on (ansi-rt)
117           :components
[12338]118           ((:module ansi-tests :pathname "test/lisp/ansi/" :components
[13924]119                     ((:file "packages")
120                      (:file "abcl-ansi" :depends-on ("packages"))
121                      (:file "parse-ansi-errors" :depends-on ("abcl-ansi"))))))
122
[12338]123(defmethod perform :before ((o test-op) (c (eql (find-system :ansi-compiled))))
[13261]124  (load-system :ansi-compiled))
[12338]125(defmethod perform ((o test-op) (c (eql (find-system :ansi-compiled))))
126  (funcall (intern (symbol-name 'run) :abcl.test.ansi)
127     :compile-tests t))
128
[13924]129(defsystem :cl-bench
130  :description "Test ABCL with CL-BENCH."
131  :components ((:module cl-bench-package :pathname "../cl-bench/"
132                        :components ((:file "defpackage")))
133               (:module cl-bench-wrapper :pathname "test/lisp/cl-bench/"
134                        :depends-on (cl-bench-package) :components
135                        ((:file "wrapper")))))
[12335]136(defmethod perform :before ((o test-op) (c (eql (find-system :cl-bench))))
[13261]137  (load-system :cl-bench))
[12335]138(defmethod perform ((o test-op) (c (eql (find-system :cl-bench))))
139  (funcall (intern (symbol-name 'run) :abcl.test.cl-bench)))
[11599]140 
[11556]141;;; Build ABCL from a Lisp.
[11599]142;;; aka the "Lisp-hosted build system"
[11556]143;;; Works for: abcl, sbcl, clisp, cmu, lispworks, allegro, openmcl
[11599]144(defsystem :build-abcl :components
[11530]145     ((:module build :pathname ""  :components
146         ((:file "build-abcl")
147          (:file "customizations" :depends-on ("build-abcl"))))))
148
149
150
Note: See TracBrowser for help on using the repository browser.