1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
5 ;;;; Name: test-examples.cl
6 ;;;; Purpose: Load and execute all examples for UFFI
7 ;;;; Programmer: Kevin M. Rosenberg
8 ;;;; Date Started: Feb 2002
10 ;;;; This file, part of UFFI, is Copyright (c) 2002-2010 by Kevin M. Rosenberg
12 ;;;; *************************************************************************
14 #-uffi (asdf:oos 'asdf:load-op :uffi)
16 (unless (ignore-errors (find-package :util.test))
17 (load (make-pathname :name "acl-compat-tester" :defaults *load-truename*)))
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")
32 (load-test "gethostname")
33 (load-test "getshells")
34 (load-test "compress"))
35 (setq cl:*features* (remove :test-uffi cl:*features*))))