source: trunk/source/tests/ansi-tests/environment-functions.lsp @ 8991

Last change on this file since 8991 was 8991, checked in by gz, 12 years ago

Check in the gcl ansi test suite (original, in preparation for making local changes)

File size: 854 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Dec 11 22:15:54 2004
4;;;; Contains: Tests of various string-returning functions from section 25
5
6(in-package :cl-test)
7
8(defmacro def-env-tests (fn-name)
9  (flet ((%name (suffix) (intern (concatenate 'string (symbol-name fn-name) suffix)
10                                 (find-package :cl-test))))
11    `(progn
12       (deftest ,(%name ".1")
13         (let ((x (,fn-name)))
14           (or (not x)
15               (notnot (stringp x))))
16         t)
17       (deftest ,(%name ".ERROR.1")
18         (signals-error (,fn-name nil) program-error)
19         t))))
20
21(def-env-tests lisp-implementation-type)
22(def-env-tests lisp-implementation-version)
23(def-env-tests short-site-name)
24(def-env-tests long-site-name)
25(def-env-tests machine-instance)
26(def-env-tests machine-type)
27(def-env-tests machine-version)
28(def-env-tests software-type)
29(def-env-tests software-version)
Note: See TracBrowser for help on using the repository browser.