projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r11087: add cygwin support
[uffi.git]
/
tests
/
foreign-loader.lisp
diff --git
a/tests/foreign-loader.lisp
b/tests/foreign-loader.lisp
index c0548c1218b98bab89c8df00c61b8d72821aea90..208307895a37363c28e6ddaccf439e10b5054c95 100644
(file)
--- a/
tests/foreign-loader.lisp
+++ b/
tests/foreign-loader.lisp
@@
-9,7
+9,7
@@
;;;;
;;;; $Id$
;;;;
;;;;
;;;; $Id$
;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002
-2005
by Kevin M. Rosenberg
;;;;
;;;; *************************************************************************
;;;;
;;;; *************************************************************************
@@
-18,6
+18,8
@@
(in-package uffi-tests)
(in-package uffi-tests)
+#+clisp (uffi:load-foreign-library "/usr/lib/libz.so" :module "z")
+#-clisp
(unless (uffi:load-foreign-library
(uffi:find-foreign-library
#-(or macosx darwin)
(unless (uffi:load-foreign-library
(uffi:find-foreign-library
#-(or macosx darwin)
@@
-25,15
+27,17
@@
#+(or macosx darwin)
"z"
(list (pathname-directory *load-pathname*)
#+(or macosx darwin)
"z"
(list (pathname-directory *load-pathname*)
- "/usr/local/lib/" #+
64bit "/usr/lib64/"
- "/zlib/"))
- :module "zlib"
+ "/usr/local/lib/" #+
(or 64bit x86-64) "/usr/lib64/"
+ "/
usr/lib/" "/
zlib/"))
+ :module "zlib"
:supporting-libraries '("c"))
(warn "Unable to load zlib"))
:supporting-libraries '("c"))
(warn "Unable to load zlib"))
-
-(unless (uffi:load-foreign-library
+
+#+clisp (uffi:load-foreign-library "/home/kevin/debian/src/uffi/tests/uffi-c-test.so" :module "uffi_tests")
+#-clisp
+(unless (uffi:load-foreign-library
(uffi:find-foreign-library
(uffi:find-foreign-library
- "uffi-c-test"
+ '(#+(or 64bit x86-64) "uffi-c-test64" "uffi-c-test")
(list (pathname-directory *load-truename*)
"/usr/lib/uffi/"
"/home/kevin/debian/src/uffi/tests/"))
(list (pathname-directory *load-truename*)
"/usr/lib/uffi/"
"/home/kevin/debian/src/uffi/tests/"))