chiark / gitweb /
src/method-impl.lisp: Initialize `suppliedp' flags properly.
[sod] / src / sod-test.asd.in
CommitLineData
dea4d055
MW
1;;; -*-lisp-*-
2;;;
3;;; Tests for the Simple Object Design translator
4;;;
5;;; (c) 2009 Straylight/Edgeware
6;;;
7
8;;;----- Licensing notice ---------------------------------------------------
9;;;
e0808c47 10;;; This file is part of the Sensible Object Design, an object system for C.
dea4d055
MW
11;;;
12;;; SOD is free software; you can redistribute it and/or modify
13;;; it under the terms of the GNU General Public License as published by
14;;; the Free Software Foundation; either version 2 of the License, or
15;;; (at your option) any later version.
16;;;
17;;; SOD is distributed in the hope that it will be useful,
18;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20;;; GNU General Public License for more details.
21;;;
22;;; You should have received a copy of the GNU General Public License
23;;; along with SOD; if not, write to the Free Software Foundation,
24;;; Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
3652ba0e 26(cl:defpackage #:sod-test-sysdef
9f452a9b
MW
27 (:use #:common-lisp #:asdf)
28 (:export #:*version*))
dea4d055 29
3652ba0e 30(cl:in-package #:sod-test-sysdef)
58a95090 31
c43f7bbf 32#|@-auto-@|# (load (merge-pathnames "auto.lisp" *load-pathname*))
dea4d055
MW
33
34;;;--------------------------------------------------------------------------
35;;; Definition.
36
37(defsystem sod-test
38
39 ;; Boring copyright stuff.
93be3878 40 :version #.*sysdef-version*
dea4d055
MW
41 :author "Mark Wooding"
42 :license "GNU General Public License, version 2 or later"
58a95090 43 #|@-path-@|# :pathname "@srcdir@"
dea4d055
MW
44
45 ;; Documentation.
46 :description "Tests for the Sensible Object Design translator."
47
48 :long-description
49 "This system provides unit tests for the Sod translator."
50
51 :depends-on ("sod" "xlunit")
52
53 :components
54 ((:file "test-base")
55
56 ;; Test the parser edifice.
57 (:module "parser" :depends-on ("test-base") :components
aa14a4cd
MW
58 ((:file "parser-test")
59 (:file "scanner-charbuf-test")))
dea4d055
MW
60
61 ;; The actual tests.
aa14a4cd
MW
62 (:file "c-types-test" :depends-on ("test-base"))
63 (:file "codegen-test" :depends-on ("test-base"))
64 (:file "lexer-test" :depends-on ("test-base"))))
dea4d055
MW
65
66;;;--------------------------------------------------------------------------
67;;; Testing.
68
69(defmethod perform ((op test-op) (system (eql (find-system "sod-test"))))
8d1d7d3e
MW
70 (handler-bind (((or warning style-warning)
71 (lambda (cond)
72 (declare (ignore cond))
73 (invoke-restart 'muffle-warning))))
74 (operate 'load-op system)
d0bb9ec5
MW
75 (let ((result (funcall (find-symbol "RUN-TESTS" "SOD-TEST"))))
76 (unless (funcall (find-symbol "WAS-SUCCESSFUL" "XLUNIT") result)
77 (error "Failed test")))))
dea4d055
MW
78
79;;;----- That's all, folks --------------------------------------------------