source: trunk/abcl/abcl.asd @ 12610

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

Separate jar and URL pathname tests into distinct files.

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