File: test-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 (38 lines) | stat: -rw-r--r-- 1,293 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
35
36
37
38
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name:          test-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)

(unless (ignore-errors (find-package :util.test))
  (load (make-pathname :name "acl-compat-tester" :defaults *load-truename*)))

(defun do-tests ()
  (pushnew :test-uffi cl:*features*)
  (util.test:with-tests (:name "UFFI-Tests")
    (setq util.test:*break-on-test-failures* nil)
    (flet ((load-test (name)
                      (load (make-pathname :name name :defaults *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)