libtool/tests
Peter Rosin c20dbb8781 For MSVC, embed the manifest as a resource in the executable.
Fixes a lot of testsuite failures with MSVC 2003 (v8.0) and
above (and perhaps also MSVC .Net) related to running programs
that have been moved (e.g. installed) without their manifests
also having been moved.

* libltdl/m4/libtool.m4 (_LT_PATH_MANIFEST_TOOL): New macro
that locates the Manifest Tool (mt) and verifies that it is
indeed the manifest tool. The result is stored in the new
variable MANIFEST_TOOL.
(_LT_LINKER_SHLIBS) <postlink_cmds>: New tag variable.
[ cygwin, mingw, cegcc ] <cl*>: Embed the manifest file as a
resource. Make sure the embedding work regardless of if the
@OUTPUT@ file name includes a trailing $EXEEXT.
(_LT_LANG_CXX_CONFIG): Likewise.
(_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG): Require the above
_LT_PATH_MANIFEST_TOOL.
* libltdl/config/ltmain.m4sh (func_mode_link): After linking
a program, replace @OUTPUT@ in $postlink_cmds and then execute
the commands.
* doc/libtool.texi (libtool script contents): Document
new postlink_cmds variable.
(LT_INIT): Add that the MANIFEST_TOOL environment variable can
be used to override the manifest tool to use.
* tests/exeext.at: New. Make sure linking with both -o prog
and -o prog$EXEEXT works.
* Makefile.am (TESTSUITE_AT): Update.
(TESTS_ENVIRONMENT): Propagate $(MANIFEST_TOOL) to the
testsuite.
* NEWS: Add note of the new MANIFEST_TOOL environment variable.
2010-07-01 09:04:35 +02:00
..
cdemo Add .gitignore files. 2008-04-16 21:31:03 +02:00
demo Fix incompatible struct declarations. 2010-04-09 21:37:09 +02:00
depdemo Add .gitignore files. 2008-04-16 21:31:03 +02:00
f77demo Add .gitignore files. 2008-04-16 21:31:03 +02:00
fcdemo Add .gitignore files. 2008-04-16 21:31:03 +02:00
mdemo Add .gitignore files. 2008-04-16 21:31:03 +02:00
mdemo2 Add .gitignore files. 2008-04-16 21:31:03 +02:00
pdemo Fix incompatible struct declarations. 2010-04-09 21:37:09 +02:00
tagdemo Add .gitignore files. 2008-04-16 21:31:03 +02:00
.cvsignore
.gitignore Add .gitignore files. 2008-04-16 21:31:03 +02:00
am-subdir.at Drop usage of obsolete macros AC_EXEEXT and AC_OBJEXT. 2008-03-08 12:14:15 +00:00
archive-in-archive.at * tests/archive-in-archive.at 2008-02-08 06:55:07 +00:00
bindir.at Skip bindir install test if we're not building shared. 2010-06-11 14:39:31 -05:00
cdemo-conf.test
cdemo-exec.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
cdemo-make.test
cdemo-shared.test
cdemo-static.test
cdemo-undef.test Fix checks for unsupported allow_undefined_flag. 2008-10-28 20:47:44 +01:00
cmdline_wrap.at Document INNER_TESTSUITEFLAGS, drop leading space. 2009-03-03 19:53:46 +01:00
configure-iface.at testsuite: avoid failures due to old Automake. 2009-06-07 12:01:56 +02:00
convenience.at Factorize testing gcj installation in the testsuite. 2010-06-09 19:41:13 +02:00
ctor.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
cwrapper.at Enable runtime cwrapper debugging; add tests 2010-02-21 00:32:17 -05:00
darwin.at Fix redirect in test case. 2009-09-07 15:17:03 -05:00
defs.m4sh Fix srcdir computation for manual runs of old tests. 2010-06-19 17:06:33 +02:00
demo-conf.test
demo-deplibs.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
demo-exec.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
demo-hardcode.test
demo-inst.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
demo-make.test
demo-nofast.test
demo-noinst-link.test
demo-nopic.test Skip demo-nopic tests if SELinux policy will cause failure. 2010-06-09 11:45:51 -05:00
demo-pic.test
demo-relink.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
demo-shared.test
demo-static.test
demo-unst.test
depdemo-conf.test
depdemo-exec.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
depdemo-inst.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
depdemo-make.test
depdemo-nofast.test
depdemo-relink.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
depdemo-shared.test
depdemo-static.test
depdemo-unst.test
deplib-in-subdir.at Testsuite exposure for relative output file names and deplibs. 2010-01-11 21:49:38 +01:00
deplibs-ident.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
deplibs-mingw.at Fix deplibs check fallback for 64-bit Windows and Windows CE. 2010-02-28 05:46:16 +01:00
destdir.at Fix destdir tests in cross compile mode. 2008-11-11 22:25:45 +01:00
dlloader-api.at Skip some tests in --disable-ltdl-install mode. 2010-05-21 04:21:38 +07:00
duplicate_conv.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
duplicate_deps.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
duplicate_members.at Use AT_CHECK more liberally in duplicate members test. 2009-01-31 11:27:11 +01:00
early-libtool.at LT_OUTPUT should always create the libtool script. 2009-03-20 16:42:55 +01:00
exceptions.at [cygwin] Refactor C++ exception handling for Win32 correctness 2010-06-24 18:39:37 -04:00
execute-mode.at Fix execute mode test for OSF/1 5.1. 2010-06-19 10:27:20 +02:00
exeext.at For MSVC, embed the manifest as a resource in the executable. 2010-07-01 09:04:35 +02:00
export.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
f77demo-conf.test
f77demo-exec.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
f77demo-make.test
f77demo-shared.test
f77demo-static.test
fail.at Fix failure test in the presence of --with-pic or -prefer-pic. 2009-09-06 12:42:34 +02:00
fcdemo-conf.test
fcdemo-exec.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
fcdemo-make.test
fcdemo-shared.test
fcdemo-static.test
flags.at Fix flags test failure when ld is used as linker. 2010-06-20 19:11:37 +02:00
getopt-m4sh.at Skip `enhanced shell option appending' test when not available. 2010-07-01 10:44:12 +07:00
help.at Document --mode short-hands better, and test them. 2009-01-29 19:55:19 +01:00
indirect_deps.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
infer-tag.at Factorize testing gcj installation in the testsuite. 2010-06-09 19:41:13 +02:00
inherited_flags.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
install.at Do not pass $INSTALL via TESTS_ENVIRONMENT. 2009-02-16 21:59:34 +01:00
lalib-syntax.at Skip some tests in --disable-ltdl-install mode. 2010-05-21 04:21:38 +07:00
libtoolize.at Fix libtoolize test failure with aclocal < 1.10.1 2008-05-05 01:07:14 -04:00
link-2.test
link-order2.at Testsuite keyword 'interactive' and check-* rules. 2009-09-06 19:38:06 +02:00
link-order.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
link.test
loadlibrary.at Skip some tests in --disable-ltdl-install mode. 2010-05-21 04:21:38 +07:00
localization.at Avoid spurious localization testsuite failure on HP-UX/ia64. 2009-06-14 11:35:59 +02:00
lt_dladvise.at Avoid failure for --disable-shared. 2010-06-13 22:30:53 -05:00
lt_dlexit.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
lt_dlopen_a.at Only use preopen loader to load preopened archives 2009-11-15 20:49:55 -06:00
lt_dlopen.at New test for bogus lt_dlopen error message. 2009-01-31 16:07:50 +01:00
lt_dlopenext.at Skip some tests in --disable-ltdl-install mode. 2010-05-21 04:21:38 +07:00
ltdl-api.at Remove unnecessary global argz functions. 2008-08-26 12:41:25 -05:00
ltdl-libdir.at Improve libdir usage from within ltdl on MinGW. 2010-06-12 10:09:26 +02:00
mdemo2-conf.test
mdemo2-exec.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
mdemo2-make.test
mdemo-conf.test
mdemo-dryrun.test Fix flakey mdemo-dryrun test on MSYS (again!) 2009-01-14 09:04:40 +01:00
mdemo-exec.test * tests/mdemo-exec.test: Also try absolute library names. 2007-07-24 05:10:03 +00:00
mdemo-inst.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
mdemo-make.test
mdemo-shared.test
mdemo-static.test
mdemo-unst.test
need_lib_prefix.at Fix expout and experr line ending issues. 2008-11-23 22:58:06 +01:00
no-executables.at Add cache variables to link tests. 2008-12-17 20:42:45 +01:00
nocase.at On Windows, find potential libs regardless of file name case. 2010-06-15 22:52:33 +02:00
nomode.test * libltdl/config/ltmain.m4sh (func_win32_libid, 2008-04-10 17:43:39 +00:00
nonrecursive.at testsuite: avoid failures due to old Automake. 2009-06-07 12:01:56 +02:00
objectlist.test
old-m4-iface.at testsuite: add missing @LIBS@ in a link command line. 2009-06-07 11:58:59 +02:00
pdemo-conf.test
pdemo-exec.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
pdemo-inst.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
pdemo-make.test
pic_flag.at Use config.cache variable for PIC flag, to allow override. 2010-06-19 06:47:42 +02:00
quote.test Revenge of the $ECHO. Kill most uses of Xsed. 2008-11-23 14:42:06 +01:00
recursive.at Fix several test failures on Cygwin and MinGW. 2008-03-08 18:02:39 +00:00
resident.at Pass resident test with --disable-shared too. 2010-06-14 11:04:17 -05:00
runpath-in-lalib.at Another missing $EXEEXT in the new testsuite. 2008-11-24 07:36:29 +01:00
search-path.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
sh.test * libltdl/m4/libtool.m4 (_LT_PROG_XSI_SHELLFNS): Move non-XSI 2008-04-10 21:18:02 +00:00
shlibpath.at Another LT_AT_EXEC_CHECK fixup. 2009-01-19 21:54:52 +01:00
slist.at Test and fix slist.c. 2009-12-02 23:13:05 +01:00
standalone.at Avoid newlines in some AT_CHECK commands. 2008-11-23 15:17:34 +01:00
static.at Testsuite keyword 'interactive' and check-* rules. 2009-09-06 19:38:06 +02:00
stresstest.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
subproject.at Avoid newlines in some AT_CHECK commands. 2008-11-23 15:17:34 +01:00
suffix.test * libltdl/m4/libtool.m4 (_LT_PROG_XSI_SHELLFNS) <func_xform>: 2008-04-10 21:01:54 +00:00
tagdemo-conf.test
tagdemo-exec.test * tests/cdemo-exec.test: use $EXEEXT where appropriate 2007-07-16 22:53:06 +00:00
tagdemo-make.test
tagdemo-shared.test
tagdemo-static.test
tagdemo-undef.test Fix checks for unsupported allow_undefined_flag. 2008-10-28 20:47:44 +01:00
tagtrace.test
template.at Add $EXEEXT to all linked programs in the new testsuite. 2008-11-23 22:42:59 +01:00
testsuite.at Enable colored Autotest testsuite output if available. 2010-06-14 20:39:43 +02:00
TODO
versioning.at Make versioning test stricter for w32, enable shared libs. 2010-06-07 22:39:23 +02:00