| 1 | ;;; -*- Mode: LISP; Syntax: COMMON-LISP -*- |
|---|
| 2 | ;;; $Id: abcl.asd 13607 2011-09-30 14:17:55Z mevenson $ |
|---|
| 3 | |
|---|
| 4 | (require 'asdf) |
|---|
| 5 | (in-package :asdf) |
|---|
| 6 | |
|---|
| 7 | ;;; Wrapper for all ABCL ASDF definitions. |
|---|
| 8 | (defsystem :abcl :version "0.6.0") |
|---|
| 9 | |
|---|
| 10 | ;;; Run via (asdf:operate 'asdf:test-op :abcl :force t) |
|---|
| 11 | (defmethod perform ((o test-op) (c (eql (find-system :abcl)))) |
|---|
| 12 | (load-system (find-system :abcl-test-lisp)) |
|---|
| 13 | (operate 'test-op :abcl-test-lisp)) |
|---|
| 14 | |
|---|
| 15 | ;;; Test ABCL with the Lisp unit tests collected in "test/lisp/abcl" |
|---|
| 16 | ;;; |
|---|
| 17 | ;;; We guard with #+abcl for tests that other Lisps cannot load. This |
|---|
| 18 | ;;; could be possibly be done at finer granularity in the files |
|---|
| 19 | ;;; themselves. |
|---|
| 20 | (defsystem :abcl-test-lisp :version "1.2" :components |
|---|
| 21 | ((:module abcl-rt |
|---|
| 22 | :pathname "test/lisp/abcl/" :serial t :components |
|---|
| 23 | ((:file "rt-package") |
|---|
| 24 | (:file "rt") |
|---|
| 25 | (:file "test-utilities"))) |
|---|
| 26 | (:module package :depends-on (abcl-rt) |
|---|
| 27 | :pathname "test/lisp/abcl/" :components |
|---|
| 28 | ((:file "package"))) |
|---|
| 29 | (:module test :depends-on (package) |
|---|
| 30 | :pathname "test/lisp/abcl/" :components |
|---|
| 31 | ((:file "utilities") |
|---|
| 32 | (:file "compiler-tests") |
|---|
| 33 | (:file "condition-tests") |
|---|
| 34 | #+abcl |
|---|
| 35 | (:file "class-file") |
|---|
| 36 | #+abcl |
|---|
| 37 | (:file "metaclass") |
|---|
| 38 | #+abcl |
|---|
| 39 | (:file "mop-tests-setup") |
|---|
| 40 | #+abcl |
|---|
| 41 | (:file "mop-tests" :depends-on |
|---|
| 42 | ("mop-tests-setup")) |
|---|
| 43 | (:file "file-system-tests") |
|---|
| 44 | #+abcl |
|---|
| 45 | (:file "jar-pathname" :depends-on |
|---|
| 46 | ("utilities" "pathname-tests" "file-system-tests")) |
|---|
| 47 | #+abcl |
|---|
| 48 | (:file "url-pathname") |
|---|
| 49 | (:file "math-tests" :depends-on |
|---|
| 50 | ("compiler-tests")) |
|---|
| 51 | (:file "misc-tests") |
|---|
| 52 | (:file "latin1-tests") |
|---|
| 53 | (:file "bugs" :depends-on |
|---|
| 54 | ("file-system-tests")) |
|---|
| 55 | (:file "wild-pathnames" :depends-on |
|---|
| 56 | ("file-system-tests")) |
|---|
| 57 | #+abcl |
|---|
| 58 | (:file "weak-hash-tables") |
|---|
| 59 | #+abcl |
|---|
| 60 | (:file "zip") |
|---|
| 61 | #+abcl |
|---|
| 62 | (:file "pathname-tests" :depends-on |
|---|
| 63 | ("utilities")))))) |
|---|
| 64 | |
|---|
| 65 | (defmethod perform ((o test-op) (c (eql (find-system 'abcl-test-lisp)))) |
|---|
| 66 | "Invoke tests with (asdf:oos 'asdf:test-op :abcl-test-lisp)." |
|---|
| 67 | (funcall (intern (symbol-name 'run) :abcl.test.lisp))) |
|---|
| 68 | |
|---|
| 69 | ;;; Test ABCL with the interpreted ANSI tests |
|---|
| 70 | (defsystem :ansi-interpreted :version "1.1" |
|---|
| 71 | :components |
|---|
| 72 | ((:module ansi-tests :pathname "test/lisp/ansi/" :components |
|---|
| 73 | ((:file "package") |
|---|
| 74 | (:file "parse-ansi-errors" :depends-on ("package")))))) |
|---|
| 75 | (defmethod perform :before ((o test-op) (c (eql (find-system :ansi-interpreted)))) |
|---|
| 76 | (load-system :ansi-interpreted)) |
|---|
| 77 | (defmethod perform ((o test-op) (c (eql (find-system :ansi-interpreted)))) |
|---|
| 78 | (funcall (intern (symbol-name 'run) :abcl.test.ansi) |
|---|
| 79 | :compile-tests nil)) |
|---|
| 80 | |
|---|
| 81 | ;;; Test ABCL with the compiled ANSI tests |
|---|
| 82 | (defsystem :ansi-compiled :version "1.1" |
|---|
| 83 | :components |
|---|
| 84 | ((:module ansi-tests :pathname "test/lisp/ansi/" :components |
|---|
| 85 | ((:file "package") |
|---|
| 86 | (:file "parse-ansi-errors" :depends-on ("package")))))) |
|---|
| 87 | (defmethod perform :before ((o test-op) (c (eql (find-system :ansi-compiled)))) |
|---|
| 88 | (load-system :ansi-compiled)) |
|---|
| 89 | (defmethod perform ((o test-op) (c (eql (find-system :ansi-compiled)))) |
|---|
| 90 | (funcall (intern (symbol-name 'run) :abcl.test.ansi) |
|---|
| 91 | :compile-tests t)) |
|---|
| 92 | |
|---|
| 93 | ;;; Test ABCL with CL-BENCH |
|---|
| 94 | (defsystem :cl-bench :components |
|---|
| 95 | ((:module cl-bench-package :pathname "../cl-bench/" |
|---|
| 96 | :components ((:file "defpackage"))) |
|---|
| 97 | (:module cl-bench-wrapper :pathname "test/lisp/cl-bench/" |
|---|
| 98 | :depends-on (cl-bench-package) :components |
|---|
| 99 | ((:file "wrapper"))))) |
|---|
| 100 | (defmethod perform :before ((o test-op) (c (eql (find-system :cl-bench)))) |
|---|
| 101 | (load-system :cl-bench)) |
|---|
| 102 | (defmethod perform ((o test-op) (c (eql (find-system :cl-bench)))) |
|---|
| 103 | (funcall (intern (symbol-name 'run) :abcl.test.cl-bench))) |
|---|
| 104 | |
|---|
| 105 | ;;; Build ABCL from a Lisp. |
|---|
| 106 | ;;; aka the "Lisp-hosted build system" |
|---|
| 107 | ;;; Works for: abcl, sbcl, clisp, cmu, lispworks, allegro, openmcl |
|---|
| 108 | (defsystem :build-abcl :components |
|---|
| 109 | ((:module build :pathname "" :components |
|---|
| 110 | ((:file "build-abcl") |
|---|
| 111 | (:file "customizations" :depends-on ("build-abcl")))))) |
|---|
| 112 | |
|---|
| 113 | |
|---|
| 114 | |
|---|