;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: test-examples.cl,v 1.1 2002/07/26 03:24:29 kevin Exp $
+;;;; $Id: test-examples.cl,v 1.3 2002/09/20 05:38:01 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-#-uffi
-(mk:load-system :uffi)
-
-#-allegro
-(load (make-pathname :name "acl-compat-tester" :type "cl"
- :defaults *load-truename*))
+#-uffi (asdf:oos 'asdf:load-op :uffi)
+(unless (ignore-errors (find-package :util.test))
+ (load (make-pathname :name "acl-compat-tester" :type "cl"
+ :defaults *load-truename*)))
(defun do-tests ()
(pushnew :test-uffi cl:*features*)
- (util.test:with-tests (:name "UFFI")
- (setq util.test:*break-on-test-failures* t)
+ (util.test:with-tests (:name "UFFI-Tests")
+ (setq util.test:*break-on-test-failures* nil)
(flet ((load-test (name)
- (load (merge-pathnames
- (make-pathname :name name
- :type "cl"
- *load-truename*))))
-
+ (load (merge-pathnames
+ (make-pathname :name name
+ :type "cl")
+ *load-truename*))))
(load-test "c-test-fns")
(load-test "arrays")
(load-test "union")