* tests/cdemo-exec.test: use $EXEEXT where appropriate

to correct mingw cross-compile issues.
* demo-deplibs.test: Ditto.
* demo-exec.test: Ditto.
* demo-inst.test: Ditto.
* demo-relink.test: Ditto.
* depdemo-exec.test: Ditto.
* depdemo-inst.test: Ditto.
* depdemo-relink.test: Ditto.
* f77demo-exec.test: Ditto.
* fcdemo-exec.test: Ditto.
* mdemo-exec.test: Ditto.
* mdemo-inst.test: Ditto.
* mdemo2-exec.test: Ditto.
* pdemo-exec.test: Ditto.
* pdemo-inst.test: Ditto.
* tagdemo-exec.test: Ditto.
This commit is contained in:
Charles Wilson 2007-07-16 22:53:06 +00:00
parent 8623a050c8
commit 3c72a3a00d
17 changed files with 55 additions and 35 deletions

View File

@ -1,3 +1,23 @@
2007-07-16 Charles Wilson <libtool@cwilson.fastmail.fm>
* tests/cdemo-exec.test: use $EXEEXT where appropriate
to correct mingw cross-compile issues.
* demo-deplibs.test: Ditto.
* demo-exec.test: Ditto.
* demo-inst.test: Ditto.
* demo-relink.test: Ditto.
* depdemo-exec.test: Ditto.
* depdemo-inst.test: Ditto.
* depdemo-relink.test: Ditto.
* f77demo-exec.test: Ditto.
* fcdemo-exec.test: Ditto.
* mdemo-exec.test: Ditto.
* mdemo-inst.test: Ditto.
* mdemo2-exec.test: Ditto.
* pdemo-exec.test: Ditto.
* pdemo-inst.test: Ditto.
* tagdemo-exec.test: Ditto.
2007-07-14 Peter Rosin <peda@lysator.liu.se>
* AUTHORS, THANKS: Peter Ekberg got married, now Peter Rosin.

View File

@ -29,6 +29,6 @@ func_require "cdemo-make" "tests/cdemo/cdemo$EXEEXT"
func_rmprefixdir
func_exec_init "uninstalled"
func_exec "tests/cdemo/cdemo"
func_exec "tests/cdemo/cdemo$EXEEXT"
exit $exec_status

View File

@ -33,6 +33,6 @@ echo "linking a shared library against a static library"
func_make "deplibs-check"
func_exec_init "uninstalled"
func_exec_check "hell0$EXEEXT" "check your deplibs_check_method"
func_exec "./hell0" "" "check your deplibs_check_method"
func_exec "./hell0$EXEEXT" "" "check your deplibs_check_method"
exit $exec_status

View File

@ -29,8 +29,8 @@ func_require "demo-make" "tests/demo/hell$EXEEXT"
func_rmprefixdir
func_exec_init "uninstalled"
func_exec "tests/demo/hell_static" 'Welcome to GNU Hell'
func_exec "tests/demo/hell" 'Welcome to GNU Hell'
func_exec "tests/demo/helldl" '(Welcome to .*GNU Hell|unsupported)'
func_exec "tests/demo/hell_static$EXEEXT" 'Welcome to GNU Hell'
func_exec "tests/demo/hell$EXEEXT" 'Welcome to GNU Hell'
func_exec "tests/demo/helldl$EXEEXT" '(Welcome to .*GNU Hell|unsupported)'
exit $exec_status

View File

@ -31,8 +31,8 @@ func_mkprefixdir
func_cd "tests/demo"
func_make "install"
func_exec_init "installed"
func_exec "$prefix/bin/hell_static" 'Welcome to GNU Hell'
func_exec "$prefix/bin/hell" 'Welcome to GNU Hell'
func_exec "$prefix/bin/helldl" '(Welcome to .*GNU Hell|unsupported)'
func_exec "$prefix/bin/hell_static$EXEEXT" 'Welcome to GNU Hell'
func_exec "$prefix/bin/hell$EXEEXT" 'Welcome to GNU Hell'
func_exec "$prefix/bin/helldl$EXEEXT" '(Welcome to .*GNU Hell|unsupported)'
exit $status

View File

@ -57,13 +57,13 @@ hardcode_action
hardcode_direct
hardcode_into_libs' "./libtool --config" ": fatal"
./hell # so that it links on-demand if needed
./hell$EXEEXT # so that it links on-demand if needed
func_msg "removing libhello.la from demo"
rm -f libhello.la "$objdir"/libhello.*
func_msg "running demo/hell"
if ./hell; then
if ./hell$EXEEXT; then
:
elif test "x,$hardcode_action,$hardcode_direct" = x,relink,yes; then
func_msg "Ok, uninstalled programs fail after uninstalled libraries are removed."

View File

@ -29,7 +29,7 @@ func_require "depdemo-make" "tests/depdemo/depdemo$EXEEXT"
func_rmprefixdir
func_exec_init "uninstalled"
func_exec "tests/depdemo/depdemo_static"
func_exec "tests/depdemo/depdemo"
func_exec "tests/depdemo/depdemo_static$EXEEXT"
func_exec "tests/depdemo/depdemo$EXEEXT"
exit $exec_status

View File

@ -31,7 +31,7 @@ func_mkprefixdir
func_cd "tests/depdemo"
func_make "install"
func_exec_init "installed"
func_exec "$prefix/bin/depdemo_static"
func_exec "$prefix/bin/depdemo"
func_exec "$prefix/bin/depdemo_static$EXEEXT"
func_exec "$prefix/bin/depdemo$EXEEXT"
exit $status

View File

@ -67,18 +67,18 @@ hardcode_action
hardcode_direct
hardcode_into_libs' "./libtool --config" ": fatal"
./depdemo # so that it links on-demand if needed
./depdemo$EXEEXT # so that it links on-demand if needed
func_msg "removing libl3.la from depdemo/l3"
rm -rf l3/libl3.la l3/$objdir
func_msg "running depdemo/depdemo"
if ./depdemo ||
if ./depdemo$EXEEXT ||
# On AIX 4.1, when the installed copy of libl3 is loaded, it brings
# with it the installed copies of libl1 and libl2, with disjoint
# counters var_l1 and var_l2. This is arguably acceptable behavior,
# but it's definitely not enough of a reason for the test to fail.
./depdemo -alt; then
./depdemo$EXEEXT -alt; then
:
elif test "x,$hardcode_action,$hardcode_direct" = x,relink,yes; then
func_msg "Ok, uninstalled programs fail after uninstalled libraries are removed"
@ -96,7 +96,7 @@ func_msg "linking a broken depdemo/l3/libl3.la"
rm -f l3/libl3.la
func_msg "running depdemo/depdemo with broken libl3.la"
if (./depdemo) 2>&1; then
if (./depdemo$EXEEXT) 2>&1; then
func_msg "Exiting: depdemo/depdemo runs even though libl3.la is incomplete"
func_fail "shlibpath_overrides_runpath should be set to no"
elif test "$build" != "$host"; then

View File

@ -29,7 +29,7 @@ func_require "f77demo-make" "tests/f77demo/fprogram$EXEEXT" "tests/f77demo/cprog
func_rmprefixdir
func_exec_init "uninstalled"
func_exec "tests/f77demo/fprogram"
func_exec "tests/f77demo/cprogram"
func_exec "tests/f77demo/fprogram$EXEEXT"
func_exec "tests/f77demo/cprogram$EXEEXT"
exit $exec_status

View File

@ -29,7 +29,7 @@ func_require "fcdemo-make" "tests/fcdemo/fprogram$EXEEXT" "tests/fcdemo/cprogram
func_rmprefixdir
func_exec_init "uninstalled"
func_exec "tests/fcdemo/fprogram"
func_exec "tests/fcdemo/cprogram"
func_exec "tests/fcdemo/fprogram$EXEEXT"
func_exec "tests/fcdemo/cprogram$EXEEXT"
exit $exec_status

View File

@ -29,9 +29,9 @@ func_require "mdemo-make" "tests/mdemo/mdemo$EXEEXT"
func_rmprefixdir
func_exec_init "uninstalled"
func_exec "tests/mdemo/mdemo_static tests/mdemo/foo1.la tests/mdemo/libfoo2.la" \
func_exec "tests/mdemo/mdemo_static$EXEEXT tests/mdemo/foo1.la tests/mdemo/libfoo2.la" \
"try_iterate: .*libfoo2"
func_exec "tests/mdemo/mdemo tests/mdemo/foo1.la tests/mdemo/libfoo2.la" \
func_exec "tests/mdemo/mdemo$EXEEXT tests/mdemo/foo1.la tests/mdemo/libfoo2.la" \
"try_iterate: .*libfoo2"
exit $exec_status

View File

@ -31,7 +31,7 @@ func_mkprefixdir
func_cd "tests/mdemo"
func_make "install"
func_exec_init "installed"
func_exec "$prefix/bin/mdemo_static $prefix/lib/foo1.la $prefix/lib/libfoo2.la"
func_exec "$prefix/bin/mdemo $prefix/lib/foo1.la $prefix/lib/libfoo2.la"
func_exec "$prefix/bin/mdemo_static$EXEEXT $prefix/lib/foo1.la $prefix/lib/libfoo2.la"
func_exec "$prefix/bin/mdemo$EXEEXT $prefix/lib/foo1.la $prefix/lib/libfoo2.la"
exit $status

View File

@ -29,7 +29,7 @@ func_require "mdemo2-make" "tests/mdemo2/mdemo2$EXEEXT"
func_rmprefixdir
func_exec_init "uninstalled"
func_exec "tests/mdemo2/mdemo2_static tests/mdemo/foo1.la tests/mdemo/libfoo2.la"
func_exec "tests/mdemo2/mdemo2 tests/mdemo/foo1.la tests/mdemo/libfoo2.la"
func_exec "tests/mdemo2/mdemo2_static$EXEEXT tests/mdemo/foo1.la tests/mdemo/libfoo2.la"
func_exec "tests/mdemo2/mdemo2$EXEEXT tests/mdemo/foo1.la tests/mdemo/libfoo2.la"
exit $exec_status

View File

@ -29,8 +29,8 @@ func_require "pdemo-make" "tests/pdemo/hell$EXEEXT"
func_rmprefixdir
func_exec_init "uninstalled"
func_exec "tests/pdemo/hell_static" 'Welcome to GNU Hell'
func_exec "tests/pdemo/hell" 'Welcome to GNU Hell'
func_exec "tests/pdemo/helldl" '(Welcome to .*GNU Hell|unsupported)'
func_exec "tests/pdemo/hell_static$EXEEXT" 'Welcome to GNU Hell'
func_exec "tests/pdemo/hell$EXEEXT" 'Welcome to GNU Hell'
func_exec "tests/pdemo/helldl$EXEEXT" '(Welcome to .*GNU Hell|unsupported)'
exit $exec_status

View File

@ -31,9 +31,9 @@ func_mkprefixdir
func_cd "tests/pdemo"
func_make "install"
func_exec_init "installed"
func_exec "$prefix/bin/hell_static" 'Welcome to GNU Hell'
func_exec "$prefix/bin/hell" 'Welcome to GNU Hell'
func_exec "$prefix/bin/helldl" '(Welcome to .*GNU Hell|unsupported)'
func_exec "$prefix/bin/hell_static$EXEEXT" 'Welcome to GNU Hell'
func_exec "$prefix/bin/hell$EXEEXT" 'Welcome to GNU Hell'
func_exec "$prefix/bin/helldl$EXEEXT" '(Welcome to .*GNU Hell|unsupported)'
exit $status

View File

@ -29,6 +29,6 @@ func_require "tagdemo-make" "tests/tagdemo/tagdemo$EXEEXT"
func_rmprefixdir
func_exec_init "uninstalled"
func_exec "tests/tagdemo/tagdemo"
func_exec "tests/tagdemo/tagdemo$EXEEXT"
exit $exec_status