Remove old CVS $Id$ keyword
[uffi.git] / examples / test-examples.lisp
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 ;;;; This file, part of UFFI, is Copyright (c) 2002-2010 by Kevin M. Rosenberg
11 ;;;;
12 ;;;; *************************************************************************
13
14 #-uffi (asdf:oos 'asdf:load-op :uffi)
15
16 (unless (ignore-errors (find-package :util.test))
17   (load (make-pathname :name "acl-compat-tester" :defaults *load-truename*)))
18
19 (defun do-tests ()
20   (pushnew :test-uffi cl:*features*)
21   (util.test:with-tests (:name "UFFI-Tests")
22     (setq util.test:*break-on-test-failures* nil)
23     (flet ((load-test (name)
24                       (load (make-pathname :name name :defaults *load-truename*))))
25       (load-test "c-test-fns")
26       (load-test "arrays")
27       (load-test "union")
28       (load-test "strtol")
29       (load-test "atoifl")
30       (load-test "gettime")
31       (load-test "getenv")
32       (load-test "gethostname")
33       (load-test "getshells")
34       (load-test "compress"))
35     (setq cl:*features* (remove :test-uffi cl:*features*))))
36
37 (do-tests)
38