Commit d63e340a authored by Stephen Morris's avatar Stephen Morris
Browse files

[2980] Merge branch 'trac2980' of ssh://git.bind10.isc.org/var/bind10/git/bind10 into trac2980

parents 19548747 c77a043a
...@@ -15,39 +15,60 @@ ...@@ -15,39 +15,60 @@
#ifndef TEST_LIBRARIES_H #ifndef TEST_LIBRARIES_H
#define TEST_LIBRARIES_H #define TEST_LIBRARIES_H
#include <config.h>
namespace { namespace {
// Take carse of differences in DLL naming between operating systems.
#ifdef OS_BSD
#define DLL_SUFFIX ".dylib"
#else
#define DLL_SUFFIX ".so"
#endif
// Names of the libraries used in these tests. These libraries are built using // Names of the libraries used in these tests. These libraries are built using
// libtool, so we need to look in the hidden ".libs" directory to locate the // libtool, so we need to look in the hidden ".libs" directory to locate the
// .so file. Note that we access the .so file - libtool creates this as a // .so file. Note that we access the .so file - libtool creates this as a
// like to the real shared library. // like to the real shared library.
// Basic library with context_create and three "standard" callouts. // Basic library with context_create and three "standard" callouts.
static const char* BASIC_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libbcl.so"; static const char* BASIC_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libbcl"
DLL_SUFFIX;
// Library with context_create and three "standard" callouts, as well as // Library with context_create and three "standard" callouts, as well as
// load() and unload() functions. // load() and unload() functions.
static const char* FULL_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libfcl.so"; static const char* FULL_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libfcl"
DLL_SUFFIX;
// Library where the version() function returns an incorrect result. // Library where the version() function returns an incorrect result.
static const char* INCORRECT_VERSION_LIBRARY = "@abs_builddir@/.libs/libivl.so"; static const char* INCORRECT_VERSION_LIBRARY = "@abs_builddir@/.libs/libivl"
DLL_SUFFIX;
// Library where some of the callout registration is done with the load() // Library where some of the callout registration is done with the load()
// function. // function.
static const char* LOAD_CALLOUT_LIBRARY = "@abs_builddir@/.libs/liblcl.so"; static const char* LOAD_CALLOUT_LIBRARY = "@abs_builddir@/.libs/liblcl"
DLL_SUFFIX;
// Library where the load() function returns an error. // Library where the load() function returns an error.
static const char* LOAD_ERROR_CALLOUT_LIBRARY = static const char* LOAD_ERROR_CALLOUT_LIBRARY =
"@abs_builddir@/.libs/liblecl.so"; "@abs_builddir@/.libs/liblecl" DLL_SUFFIX;
// Name of a library which is not present. // Name of a library which is not present.
static const char* NOT_PRESENT_LIBRARY = "@abs_builddir@/.libs/libnothere.so"; static const char* NOT_PRESENT_LIBRARY = "@abs_builddir@/.libs/libnothere"
DLL_SUFFIX;
// Library that does not include a version function. // Library that does not include a version function.
static const char* NO_VERSION_LIBRARY = "@abs_builddir@/.libs/libnvl.so"; static const char* NO_VERSION_LIBRARY = "@abs_builddir@/.libs/libnvl"
DLL_SUFFIX;
// Library where there is an unload() function. // Library where there is an unload() function.
static const char* UNLOAD_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libucl.so"; static const char* UNLOAD_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libucl"
DLL_SUFFIX;
} // anonymous namespace } // anonymous namespace
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment