source: trunk/abcl/abcl.asd @ 12899

Last change on this file since 12899 was 12899, checked in by Mark Evenson, 13 years ago

Fix typo in ABCL-TEST-LISP definition; add #+abcl conditional

The non-ABCL specific tests could now be run be other Lisp
implementations (tested with sbcl-1.0.39).

  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1;;; -*- Mode: LISP; Syntax: COMMON-LISP -*-
2;;; $Id: abcl.asd 12899 2010-08-15 19:35:43Z 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(defsystem :abcl-test-lisp :version "1.1" :components
24     ((:module abcl-rt
25                     :pathname "test/lisp/abcl/" :serial t :components
26         ((:file "rt-package") (:file "rt")
27                      (:file "test-utilities")))
28      (:module package  :depends-on (abcl-rt)
29         :pathname "test/lisp/abcl/" :components
30         ((:file "package")))
31            (:module test :depends-on (package)
32         :pathname "test/lisp/abcl/" :components
33                     ((:file "compiler-tests")
34                      (:file "condition-tests")
35                      (:file "metaclass")
36                      #+abcl
37                      (:file "mop-tests-setup")
38                      #+abcl
39                      (:file "mop-tests" :depends-on ("mop-tests-setup"))
40                      (:file "file-system-tests")
41                      #+abcl
42                      (:file "jar-pathname" :depends-on
43                             ("pathname-tests"))
44                      #+abcl
45                      (:file "url-pathname")
46                      (:file "math-tests")
47                      (:file "misc-tests")
48                      (:file "bugs" :depends-on ("file-system-tests"))
49                      (:file "pathname-tests")))))
50
51(defmethod perform ((o test-op) (c (eql (find-system 'abcl-test-lisp))))
52   "Invoke tests with (asdf:oos 'asdf:test-op :abcl-test-lisp)."
53   (funcall (intern (symbol-name 'run) :abcl.test.lisp)))
54
55;;; Test ABCL with the interpreted ANSI tests
56(defsystem :ansi-interpreted :version "1.1"
57           :components
58           ((:module ansi-tests :pathname "test/lisp/ansi/" :components
59         ((:file "package")
60                (:file "parse-ansi-errors" :depends-on ("package"))))))
61(defmethod perform :before ((o test-op) (c (eql (find-system :ansi-interpreted))))
62  (operate 'load-op :ansi-interpreted))
63(defmethod perform ((o test-op) (c (eql (find-system :ansi-interpreted))))
64  (funcall (intern (symbol-name 'run) :abcl.test.ansi)
65     :compile-tests nil))
66
67;;; Test ABCL with the compiled ANSI tests
68(defsystem :ansi-compiled :version "1.1"
69           :components
70           ((:module ansi-tests :pathname "test/lisp/ansi/" :components
71         ((:file "package")
72                (:file "parse-ansi-errors" :depends-on ("package"))))))
73(defmethod perform :before ((o test-op) (c (eql (find-system :ansi-compiled))))
74  (operate 'load-op :ansi-compiled))
75(defmethod perform ((o test-op) (c (eql (find-system :ansi-compiled))))
76  (funcall (intern (symbol-name 'run) :abcl.test.ansi)
77     :compile-tests t))
78
79
80;;; Test ABCL with CL-BENCH
81(defsystem :cl-bench :components
82           ((:module cl-bench-package :pathname "../cl-bench/"
83                    :components ((:file "defpackage")))
84            (:module cl-bench-wrapper :pathname "test/lisp/cl-bench/"
85                     :depends-on (cl-bench-package) :components
86                     ((:file "wrapper")))))
87(defmethod perform :before ((o test-op) (c (eql (find-system :cl-bench))))
88  (operate 'load-op :cl-bench :force t))
89(defmethod perform ((o test-op) (c (eql (find-system :cl-bench))))
90  (funcall (intern (symbol-name 'run) :abcl.test.cl-bench)))
91 
92;;; Build ABCL from a Lisp.
93;;; aka the "Lisp-hosted build system"
94;;; Works for: abcl, sbcl, clisp, cmu, lispworks, allegro, openmcl
95(defsystem :build-abcl :components
96     ((:module build :pathname ""  :components
97         ((:file "build-abcl")
98          (:file "customizations" :depends-on ("build-abcl"))))))
99
100
101
Note: See TracBrowser for help on using the repository browser.