source: branches/0.21.x/abcl/abcl.asd

Last change on this file was 12658, checked in by ehuelsmann, 14 years ago

Close #38: Add some metaclass tests - to be expanded
upon fixing encountered issues.

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