File: run-examples.lisp

package info (click to toggle)
cl-uffi 2.1.2-1.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,028 kB
  • sloc: lisp: 3,854; xml: 2,990; makefile: 238; ansic: 169; sh: 35
file content (34 lines) | stat: -rw-r--r-- 985 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name:          run-examples.cl
;;;; Purpose:       Load and execute all examples for UFFI
;;;; Programmer:    Kevin M. Rosenberg
;;;; Date Started:  Feb 2002
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002-2010 by Kevin M. Rosenberg
;;;;
;;;; *************************************************************************

#-uffi (asdf:oos 'asdf:load-op :uffi)

(pushnew :examples-uffi cl:*features*)

(flet ((load-test (name)
          (load (make-pathname :defaults *load-truename* :name name))))
  (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 :examples-uffi cl:*features*))