1 | ;;; -*- Mode: LISP; Syntax: COMMON-LISP -*- |
---|
2 | ;;; $Id: abcl.asd 12337 2010-01-05 22:27:13Z 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.4.0") |
---|
11 | |
---|
12 | (defmethod perform :after ((o load-op) (c (eql (find-system :abcl)))) |
---|
13 | ;;; Additional test suite loads would go here. |
---|
14 | (operate 'load-op :test-abcl :force t)) |
---|
15 | |
---|
16 | (defmethod perform ((o test-op) (c (eql (find-system :abcl)))) |
---|
17 | ;;; Additional test suite invocations would go here. |
---|
18 | (operate 'test-op :ansi-compiled :force t)) |
---|
19 | |
---|
20 | ;;; A collection of test suites for ABCL. |
---|
21 | (defsystem :test-abcl |
---|
22 | :version "0.3.1" |
---|
23 | :depends-on (:ansi-compiled #+nil :abcl-tests)) |
---|
24 | |
---|
25 | (defmethod perform :after ((o load-op) (c (eql (find-system :abcl)))) |
---|
26 | (operate 'load-op :cl-bench :force t) |
---|
27 | (operate 'load-op :abcl-test-lisp :force t) |
---|
28 | (operate 'load-op :ansi-compiled :force t) |
---|
29 | (operate 'load-op :ansi-interpreted :force t)) |
---|
30 | |
---|
31 | #+nil |
---|
32 | (defmethod perform :before ((o load-op) (c t)) |
---|
33 | (warn "ASDF load-op class is ~A" c)) |
---|
34 | |
---|
35 | (defsystem :ansi-test :version "1.0" :components |
---|
36 | ;;; GCL ANSI test suite. |
---|
37 | ((:module ansi-tests :pathname "test/lisp/ansi/" :components |
---|
38 | ((:file "package"))))) |
---|
39 | |
---|
40 | (defsystem :ansi-interpreted :version "1.0" :depends-on (ansi-test)) |
---|
41 | (defmethod perform ((o test-op) (c (eql (find-system :ansi-interpreted)))) |
---|
42 | "Invoke tests with: (asdf:oos 'asdf:test-op :ansi-interpreted :force t)." |
---|
43 | (funcall (intern (symbol-name 'run) :abcl.test.ansi) |
---|
44 | :compile-tests nil)) |
---|
45 | (defmethod perform :before ((o test-op) (c (eql (find-system |
---|
46 | :ansi-interpreted)))) |
---|
47 | (operate 'load-op :ansi-interpreted :force t)) |
---|
48 | |
---|
49 | (defsystem :ansi-compiled :version "1.0" :depends-on (ansi-test)) |
---|
50 | (defmethod perform ((o test-op) (c (eql (find-system :ansi-compiled)))) |
---|
51 | "Invoke tests with: (asdf:oos 'asdf:test-op :abcl-compiled :force t)." |
---|
52 | (funcall (intern (symbol-name 'run) :abcl.test.ansi) |
---|
53 | :compile-tests t)) |
---|
54 | (defmethod perform :before ((o test-op) (c (eql (find-system |
---|
55 | :ansi-compiled)))) |
---|
56 | (operate 'load-op :ansi-compiled :force t)) |
---|
57 | |
---|
58 | (defsystem :abcl-test-lisp :version "1.1" :components |
---|
59 | ((:module abcl-rt :pathname "test/lisp/abcl/" :serial t :components |
---|
60 | ((:file "rt-package") (:file "rt"))) |
---|
61 | (:module package :depends-on (abcl-rt) |
---|
62 | :pathname "test/lisp/abcl/" :components |
---|
63 | ((:file "package"))))) |
---|
64 | |
---|
65 | (defmethod perform :before ((o test-op) (c (eql (find-system |
---|
66 | :abcl-test-lisp)))) |
---|
67 | (operate 'load-op :abcl-test-lisp :force t)) |
---|
68 | |
---|
69 | (defmethod perform ((o test-op) (c (eql (find-system 'abcl-test-lisp)))) |
---|
70 | "Invoke tests with (asdf:oos 'asdf:test-op :abcl-test-lisp)." |
---|
71 | (funcall (intern (symbol-name 'run) :abcl-test))) |
---|
72 | |
---|
73 | (defsystem :cl-bench :components |
---|
74 | ((:module cl-bench-package :pathname "../cl-bench/" |
---|
75 | :components ((:file "defpackage"))) |
---|
76 | (:module cl-bench-wrapper :pathname "test/lisp/cl-bench/" |
---|
77 | :depends-on (cl-bench-package) :components |
---|
78 | ((:file "wrapper"))))) |
---|
79 | |
---|
80 | (defmethod perform :before ((o test-op) (c (eql (find-system :cl-bench)))) |
---|
81 | (operate 'load-op :cl-bench :force t)) |
---|
82 | |
---|
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 | |
---|