r2784: *** empty log message ***
[uffi.git] / tests / test-examples.cl
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          test-examples.cl
6 ;;;; Purpose:       Load and execute all examples for UFFI
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Feb 2002
9 ;;;;
10 ;;;; $Id: test-examples.cl,v 1.2 2002/09/20 04:51:14 kevin Exp $
11 ;;;;
12 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
13 ;;;;
14 ;;;; UFFI users are granted the rights to distribute and use this software
15 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
16 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ;;;; *************************************************************************
18
19 #-uffi (asdf:oos 'asdf:load-op :uffi)
20
21 (unless (ignore-errors (find-package :util.test))
22   (load (make-pathname :name "acl-compat-tester" :type "cl"
23                        :defaults *load-truename*)))
24
25 (defun do-tests ()
26   (pushnew :test-uffi cl:*features*)
27   (util.test:with-tests (:name "UFFI")
28     (setq util.test:*break-on-test-failures* t)
29     (flet ((load-test (name)
30              (load (merge-pathnames
31                     (make-pathname :name name 
32                                    :type "cl"
33                     *load-truename*)))))
34       (load-test "c-test-fns")
35       (load-test "arrays")
36       (load-test "union")
37       (load-test "strtol")
38       (load-test "atoifl")
39       (load-test "gettime")
40       (load-test "getenv")
41       (load-test "gethostname")
42       (load-test "getshells")
43       (load-test "compress"))
44     (setq cl:*features* (remove :test-uffi cl:*features*))))
45
46 (do-tests)
47