libtool/tests
Gary V. Vaughan a894e3baee Add a test to simulate a failure visible on systems which
need a library prefix like 'lib', such as BeOS.  Fix a number
of bugs exposed by this test in order for it to pass.
Currently the prefix is hardcoded as 'lib', as I am not aware
of systems that require a different prefix:

* libltdl/loaders/preopen.c (lt_dlpreload_open):  Move error
condition out of test loop to be sure that each originator is
tried, instead of erroring out if the first doesn't match.
Support passing NULL as the originator to load all preloaded
modules originating in the program itself.
* libltdl/lt_dlloader.c (lt_dlloader_dump): New debug function.
* libltdl/libltdl/lt_dlloader.h (lt_dlloader_dump): Declare it
when LT_DEBUG_LOADERS is defined at compile time.
* libltdl/ltdl.c (lt_dlinit): Dump loader list after successful
initialisation.
(tryall_dlopen): Add a new VTABLE parameter to force use of a
specific loader in preference to trying every loader in turn.
Adjust all callers.
(try_dlopen): Always see whether a module was preloaded for
module names with no directory component before searching the
filesystem for a match.
* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Declare
a new global_symbol_to_c_name_address_lib_prefix variable.
(global_symbol_to_c_name_address_lib_prefix): The sed
expressions to use when a lib prefix is enforced need to be
slightly different to work with preloaded modules.
* libltdl/config/ltmain.m4sh (func_generate_dlsyms): In order
to name preloaded symbols correctly for the lookup algorithm
to work when the loaded module file must be prefixed with lib.
Use global_symbol_to_c_name_address_lib_prefix when
need_lib_prefix is other than no.
* tests/need_lib_prefix.at: New test to check for breakage on
hosts where need_lib_prefix is unknown.
* Makefile.am (TESTSUITE_AT): Add new test.
* tests/TODO: Note missing tests that would have caught some
of the latent bugs fixed by this patch.
* HACKING: Document libltdl keyword.
* NEWS: Updated.
2007-06-24 20:46:47 +00:00
..
cdemo * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
depdemo * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
f77demo * tests/f77demo/configure.ac [--with-dist]: New option. Skip most 2007-06-21 19:02:36 +00:00
fcdemo * tests/f77demo/configure.ac [--with-dist]: New option. Skip most 2007-06-21 19:02:36 +00:00
mdemo * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo2 * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
pdemo * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
tagdemo * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
.cvsignore * .cvsignore, doc/.cvsignore, libltdl/.cvsignore, 2006-06-13 18:36:56 +00:00
am-subdir.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
archive-in-archive.at * libltdl/m4/libtool.m4 (old_archive_cmds): Remove 2007-06-04 03:01:11 +00:00
cdemo-conf.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
cdemo-exec.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
cdemo-make.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
cdemo-shared.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
cdemo-static.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
cdemo-undef.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
cmdline_wrap.at * tests/cmdline_wrap.at: Avoid `AT_CAPTURE_FILE' if it not 2007-04-24 20:50:07 +00:00
convenience.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
ctor.at * tests/ctor.at: New file. 2007-04-26 22:34:05 +00:00
defs.m4sh * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-conf.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-deplibs.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-exec.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-hardcode.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-inst.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-make.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-nofast.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-noinst-link.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-nopic.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-pic.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-relink.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-shared.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-static.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
demo-unst.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
depdemo-conf.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
depdemo-exec.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
depdemo-inst.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
depdemo-make.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
depdemo-nofast.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
depdemo-relink.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
depdemo-shared.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
depdemo-static.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
depdemo-unst.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
deplibs-ident.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
destdir.at * libltdl/config/ltmain.m4sh: Add new magic variable 2007-06-19 05:43:16 +00:00
duplicate_conv.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
duplicate_deps.at * tests/duplicate_deps.at: Make the XFAIL unconditional, but 2007-05-10 17:30:29 +00:00
duplicate_members.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
early-libtool.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
export.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
f77demo-conf.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
f77demo-exec.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
f77demo-make.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
f77demo-shared.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
f77demo-static.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
fail.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
fcdemo-conf.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
fcdemo-exec.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
fcdemo-make.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
fcdemo-shared.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
fcdemo-static.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
indirect_deps.at * tests/indirect_deps.at: New file, with tests to ensure 2007-04-24 20:46:17 +00:00
inherited_flags.at * libltdl/config/ltmain.m4sh (func_mode_link): When adding 2007-05-03 18:07:28 +00:00
libtoolize.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
link-2.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
link-order2.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
link-order.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
link.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
lt_dladvise.at * tests/lt_dladvise.at: Use the lib prefix throughout for 2007-05-22 12:07:06 +00:00
lt_dlexit.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo2-conf.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo2-exec.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo2-make.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo-conf.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo-dryrun.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo-exec.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo-inst.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo-make.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo-shared.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo-static.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
mdemo-unst.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
need_lib_prefix.at Add a test to simulate a failure visible on systems which 2007-06-24 20:46:47 +00:00
nomode.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
nonrecursive.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
objectlist.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
old-m4-iface.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
pdemo-conf.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
pdemo-exec.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
pdemo-inst.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
pdemo-make.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
quote.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
recursive.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
search-path.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
sh.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
shlibpath.at * tests/cmdline_wrap.at: Avoid `AT_CAPTURE_FILE' if it not 2007-04-24 20:50:07 +00:00
standalone.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
static.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
stresstest.at * doc/libtool.texi (Link mode) <-no-install>: Mention that this 2007-04-03 19:09:39 +00:00
subproject.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
suffix.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
tagdemo-conf.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
tagdemo-exec.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
tagdemo-make.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
tagdemo-shared.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
tagdemo-static.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
tagdemo-undef.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
tagtrace.test * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
template.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
testsuite.at * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
TODO Add a test to simulate a failure visible on systems which 2007-06-24 20:46:47 +00:00