source: trunk/abcl/abcl.asd @ 13010

Last change on this file since 13010 was 13010, checked in by Mark Evenson, 12 years ago

Test for working :WILD-INFERIORS.

Added tests in 'test/lisp/abcl/wild-inferiors.lisp', for which Ville's
implementation passes.

  • Property svn:keywords set to Id
File size: 4.5 KB
Line 
1;;; -*- Mode: LISP; Syntax: COMMON-LISP -*-
2;;; $Id: abcl.asd 13010 2010-11-07 12:10:45Z mevenson $
3
4(require 'asdf)
5(defpackage :abcl-asdf
6  (:use :cl :asdf))
7(in-package :abcl-asdf)
8
9;;; Wrapper for all ABCL ASDF definitions.
10(defsystem :abcl :version "0.5.0")
11
12(defmethod perform :after ((o load-op) (c (eql (find-system :abcl))))
13  (operate 'load-op :abcl-test-lisp :force t)
14  (operate 'load-op :cl-bench :force t)
15  (operate 'load-op :ansi-compiled :force t)
16  (operate 'load-op :ansi-interpreted :force t))
17
18;;;  Run via (asdf:operate 'asdf:test-op :abcl :force t)
19(defmethod perform ((o test-op) (c (eql (find-system :abcl))))
20  (operate 'test-op :abcl-tests :force t))
21
22;;; Test ABCL with the Lisp unit tests collected in "test/lisp/abcl"
23;;;
24;;; We guard with #+abcl for tests that other Lisps cannot load.  This
25;;; could be possibly be done at finer granularity in the files
26;;; themselves.
27(defsystem :abcl-test-lisp :version "1.1" :components
28     ((:module abcl-rt
29                     :pathname "test/lisp/abcl/" :serial t :components
30         ((:file "rt-package") (:file "rt")
31                      (:file "test-utilities")))
32      (:module package  :depends-on (abcl-rt)
33         :pathname "test/lisp/abcl/" :components
34         ((:file "package")))
35            (:module test :depends-on (package)
36         :pathname "test/lisp/abcl/" :components
37                     ((:file "compiler-tests")
38                      (:file "condition-tests")
39                      #+abcl
40                      (:file "class-file")
41                      #+abcl
42                      (:file "metaclass")
43                      #+abcl
44                      (:file "mop-tests-setup")
45                      #+abcl
46                      (:file "mop-tests" :depends-on ("mop-tests-setup"))
47                      (:file "file-system-tests")
48                      #+abcl
49                      (:file "jar-pathname" :depends-on
50                             ("pathname-tests"))
51                      #+abcl
52                      (:file "url-pathname")
53                      (:file "math-tests")
54                      (:file "misc-tests")
55                      (:file "latin1-tests")
56                      #+abcl
57                      (:file "bugs" :depends-on ("file-system-tests"))
58                      (:file "wild-pathnames" :depends-on ("file-system-tests"))
59                      #+abcl
60                      (:file "pathname-tests")))))
61
62(defmethod perform ((o test-op) (c (eql (find-system 'abcl-test-lisp))))
63   "Invoke tests with (asdf:oos 'asdf:test-op :abcl-test-lisp)."
64   (funcall (intern (symbol-name 'run) :abcl.test.lisp)))
65
66;;; Test ABCL with the interpreted ANSI tests
67(defsystem :ansi-interpreted :version "1.1"
68           :components
69           ((:module ansi-tests :pathname "test/lisp/ansi/" :components
70         ((:file "package")
71                (:file "parse-ansi-errors" :depends-on ("package"))))))
72(defmethod perform :before ((o test-op) (c (eql (find-system :ansi-interpreted))))
73  (operate 'load-op :ansi-interpreted))
74(defmethod perform ((o test-op) (c (eql (find-system :ansi-interpreted))))
75  (funcall (intern (symbol-name 'run) :abcl.test.ansi)
76     :compile-tests nil))
77
78;;; Test ABCL with the compiled ANSI tests
79(defsystem :ansi-compiled :version "1.1"
80           :components
81           ((:module ansi-tests :pathname "test/lisp/ansi/" :components
82         ((:file "package")
83                (:file "parse-ansi-errors" :depends-on ("package"))))))
84(defmethod perform :before ((o test-op) (c (eql (find-system :ansi-compiled))))
85  (operate 'load-op :ansi-compiled))
86(defmethod perform ((o test-op) (c (eql (find-system :ansi-compiled))))
87  (funcall (intern (symbol-name 'run) :abcl.test.ansi)
88     :compile-tests t))
89
90
91;;; Test ABCL with CL-BENCH
92(defsystem :cl-bench :components
93           ((:module cl-bench-package :pathname "../cl-bench/"
94                    :components ((:file "defpackage")))
95            (:module cl-bench-wrapper :pathname "test/lisp/cl-bench/"
96                     :depends-on (cl-bench-package) :components
97                     ((:file "wrapper")))))
98(defmethod perform :before ((o test-op) (c (eql (find-system :cl-bench))))
99  (operate 'load-op :cl-bench :force t))
100(defmethod perform ((o test-op) (c (eql (find-system :cl-bench))))
101  (funcall (intern (symbol-name 'run) :abcl.test.cl-bench)))
102 
103;;; Build ABCL from a Lisp.
104;;; aka the "Lisp-hosted build system"
105;;; Works for: abcl, sbcl, clisp, cmu, lispworks, allegro, openmcl
106(defsystem :build-abcl :components
107     ((:module build :pathname ""  :components
108         ((:file "build-abcl")
109          (:file "customizations" :depends-on ("build-abcl"))))))
110
111
112
Note: See TracBrowser for help on using the repository browser.