Commit 57e4b086 authored by Kevin Rosenberg's avatar Kevin Rosenberg

Add check-component-input with partial input tests

parent 0bcfca3e
;;; This is asdf: Another System Definition Facility. $Revision: 1.68 $
;;; This is asdf: Another System Definition Facility. $Revision: 1.69 $
;;;
;;; Feedback, bug reports, and patches are all welcome: please mail to
;;; <cclan-list@lists.sf.net>. But note first that the canonical
......@@ -89,7 +89,7 @@
(in-package #:asdf)
(defvar *asdf-revision* (let* ((v "$Revision: 1.68 $")
(defvar *asdf-revision* (let* ((v "$Revision: 1.69 $")
(colon (or (position #\: v) -1))
(dot (position #\. v)))
(and v colon dot
......@@ -889,6 +889,7 @@ Returns the new tree (which probably shares structure with the old one)"
depends-on serial in-order-to
;; list ends
&allow-other-keys) options
(check-component-input type name depends-on components)
(let* ((other-args (remove-keys
'(components pathname default-component-class
perform explain output-files operation-done-p
......@@ -943,6 +944,16 @@ Returns the new tree (which probably shares structure with the old one)"
(component-inline-methods ret))))
ret)))
(defun check-component-input (type name depends-on components)
"A partial test of the values of a component."
(unless (listp depends-on)
(error
":depends-on must be a list.~&The value for ~(~A~) ~A is ~W" type name depends-on))
(unless (and (listp components) (listp (car components)))
(error
":components must be NIL or a list of lists.~&The value for ~(~A~) ~A is ~W"
type name components)))
(defun resolve-symlinks (path)
#-allegro (truename path)
......
cl-asdf (1.69) unstable; urgency=low
* Add check-component-values function with partial checking of components
-- Kevin M. Rosenberg <kmr@debian.org> Tue, 6 May 2003 08:26:11 -0600
cl-asdf (1.68) unstable; urgency=low
* New upstream with 'asdf:test-op
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment