X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=test-examples.cl;h=e62d2a5cfcc00f56bfc5c1213db59480b2bab1fb;hb=8bc3c5c67e678d004331fa393f13171949c2b74c;hp=c8fa0ac449279a419a3660895dadf7793983eced;hpb=fb93b1923db347f01bdebc7226e5e1eaacacc9f9;p=uffi.git diff --git a/test-examples.cl b/test-examples.cl index c8fa0ac..e62d2a5 100644 --- a/test-examples.cl +++ b/test-examples.cl @@ -1,4 +1,4 @@ -;;;; -*- Mode: ANSI-Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- +;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: test-examples.cl,v 1.4 2002/03/17 17:33:30 kevin Exp $ +;;;; $Id: test-examples.cl,v 1.11 2002/04/02 23:27:05 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -16,25 +16,36 @@ ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* +#-uffi (mk:load-system :uffi) -(pushnew :test-uffi cl:*features*) +#-allegro +(load (make-pathname :name "acl-compat-tester" :type "cl" + :defaults *load-truename*)) -(flet ((load-test (name) - (load (merge-pathnames - (make-pathname :name name - :type "cl" - :directory '(:relative "examples")) - *load-truename*)))) - - (load-test "strtol") - (load-test "gettime") - (load-test "getenv") - (load-test "gethostname") - (load-test "getshells") - (load-test "compress")) -(setq cl:*features* (remove :test-uffi cl:*features*)) +(defun do-tests () + (pushnew :test-uffi cl:*features*) + (util.test:with-tests (:name "UFFI") + (setq util.test:*break-on-test-failures* t) + (flet ((load-test (name) + (load (merge-pathnames + (make-pathname :name name + :type "cl" + :directory '(:relative "examples")) + *load-truename*)))) + + (load-test "c-test-fns") + (load-test "arrays") + (load-test "union") + (load-test "strtol") + (load-test "atoifl") + (load-test "gettime") + (load-test "getenv") + (load-test "gethostname") + (load-test "getshells") + (load-test "compress")) + (setq cl:*features* (remove :test-uffi cl:*features*)))) +(do-tests) -