X-Git-Url: http://git.kpe.io/?p=uffi.git;a=blobdiff_plain;f=tests%2Fforeign-loader.lisp;h=017fbedee1ac3d081dcfbba83f2d5f61736df384;hp=68fe923886a689929eb900d5c75c55d88a512a68;hb=b86fdf882156aa45dc6e8e93a158dedf506f4233;hpb=b2a3a6e6f3e5adf857ba4e2c80b8e4f8a3124a33 diff --git a/tests/foreign-loader.lisp b/tests/foreign-loader.lisp index 68fe923..017fbed 100644 --- a/tests/foreign-loader.lisp +++ b/tests/foreign-loader.lisp @@ -7,9 +7,7 @@ ;;;; Author: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: foreign-loader.lisp,v 1.7 2003/08/27 19:58:25 kevin Exp $ -;;;; -;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg +;;;; This file, part of UFFI, is Copyright (c) 2002-2010 by Kevin M. Rosenberg ;;;; ;;;; ************************************************************************* @@ -18,24 +16,30 @@ (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) - "libz" - #+(or macosx darwin) - "z" - (list (pathname-directory *load-pathname*) - "/usr/local/lib/" "/usr/lib/" "/zlib/")) - :module "zlib" - :supporting-libraries '("c")) + (uffi:find-foreign-library + #-(or macosx darwin) + "libz" + #+(or macosx darwin) + "z" + (list (pathname-directory *load-pathname*) + "/usr/local/lib/" #+(or 64bit x86-64) "/usr/lib64/" + "/usr/lib/" "/zlib/")) + :module "zlib" + :supporting-libraries '("c")) (warn "Unable to load zlib")) - -(unless (uffi:load-foreign-library - (uffi:find-foreign-library - "uffi-c-test-lib" - (list (pathname-directory *load-truename*) - "/usr/lib/uffi/")) - :supporting-libraries '("c") - :module "uffi_tests") - (warn "Unable to load uffi-c-test-lib 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 + '(#+(or 64bit x86-64) "uffi-c-test64" "uffi-c-test") + (list (pathname-directory *load-truename*) + "/usr/lib/uffi/" + "/home/kevin/debian/src/uffi/tests/")) + :supporting-libraries '("c") + :module "uffi_tests") + (warn "Unable to load uffi-c-test library"))