1 | ;;; -*- Mode: LISP; Syntax: COMMON-LISP -*- |
---|
2 | ;;; $Id: abcl.asd 11546 2009-01-05 10:56:01Z mevenson $ |
---|
3 | |
---|
4 | (require 'asdf) |
---|
5 | (defpackage :abcl-asdf |
---|
6 | (:use :cl :asdf)) |
---|
7 | (in-package :abcl-asdf) |
---|
8 | |
---|
9 | (defsystem :abcl |
---|
10 | :documentation "Wrapper for all ABCL ASDF definitions." |
---|
11 | :version "0.2.0") |
---|
12 | |
---|
13 | (defmethod perform :after ((o load-op) (c (eql (find-system 'abcl)))) |
---|
14 | ;;; Additional test suite loads would go here. |
---|
15 | (asdf:oos 'asdf:load-op :test-abcl :force t)) |
---|
16 | |
---|
17 | (defmethod perform ((o test-op) (c (eql (find-system 'abcl)))) |
---|
18 | ;;; Additional test suite invocations would go here. |
---|
19 | (asdf:oos 'asdf:test-op :ansi-test-compiled :force t)) |
---|
20 | |
---|
21 | (defsystem :test-abcl |
---|
22 | :documentation "A collection of test suites for ABCL." |
---|
23 | :version "0.3" |
---|
24 | :depends-on (:ansi-test-compiled :ansi-test-interpreted)) |
---|
25 | |
---|
26 | (defmethod perform :after ((o test-op) (c (eql (find-system 'test-abcl)))) |
---|
27 | (asdf:oos 'asdf:load-op :ansi-test-interpreted :force t) |
---|
28 | (asdf:oos 'asdf:load-op :ansi-test-compiled :force t)) |
---|
29 | |
---|
30 | (defsystem :ansi-test :version "0.1" :components |
---|
31 | ((:module ansi-tests :pathname "test/lisp/ansi/" |
---|
32 | :documentation "GCL ANSI test suite." |
---|
33 | :components |
---|
34 | ((:file "package"))))) |
---|
35 | (defsystem :ansi-test-interpreted :version "0,1" :depends-on (ansi-test)) |
---|
36 | (defsystem :ansi-test-compiled :version "0.1" :depends-on (ansi-test)) |
---|
37 | |
---|
38 | (defmethod perform ((o test-op) (c (eql (find-system 'ansi-test-interpreted)))) |
---|
39 | (funcall (intern (symbol-name 'run) :abcl.tests.ansi-tests) |
---|
40 | :compile-tests nil)) |
---|
41 | |
---|
42 | (defmethod perform ((o test-op) (c (eql (find-system 'ansi-test-compiled)))) |
---|
43 | (funcall (intern (symbol-name 'run) :abcl.tests.ansi-tests) |
---|
44 | :compile-tests t)) |
---|
45 | |
---|
46 | ;;; Works for: abcl, sbcl, clisp |
---|
47 | (defsystem :build-abcl |
---|
48 | :documentation "Build ABCL from a Lisp." |
---|
49 | :components |
---|
50 | ((:module build :pathname "" :components |
---|
51 | ((:file "build-abcl") |
---|
52 | (:file "customizations" :depends-on ("build-abcl")))))) |
---|
53 | |
---|
54 | |
---|
55 | |
---|