[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: lt_dlexit.at test needs 'libtool --mode=execute'
From: |
Ralf Wildenhues |
Subject: |
FYI: lt_dlexit.at test needs 'libtool --mode=execute' |
Date: |
Mon, 12 Feb 2007 20:54:26 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
This fixes lt_dlexit.at test on some systems (e.g., Darwin), where a
main program without uninstalled library dependencies doesn't get a
shell wrapper.
While at it, let's also kill the -dlpreopen test. It currently needs
the module to start with `lib', which is a bug but one I do not want
to test here.
Cheers,
Ralf
2007-02-12 Ralf Wildenhues <address@hidden>
* tests/testsuite.at (LT_AT_NOINST_EXEC_CHECK): New macro, like
LT_AT_EXEC_CHECK but uses `$LIBTOOL --mode=execute' and allows
to pass `-dlopen MODULE' arguments.
* tests/lt_dlexit.at: Use it. Also, do not test `-dlpreopen',
that currently needs library names to begin with `lib'.
Index: tests/lt_dlexit.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/lt_dlexit.at,v
retrieving revision 1.3
diff -u -r1.3 lt_dlexit.at
--- tests/lt_dlexit.at 6 Feb 2007 23:27:09 -0000 1.3
+++ tests/lt_dlexit.at 12 Feb 2007 19:52:52 -0000
@@ -129,10 +129,11 @@
AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o modb1.la b1.lo \
-rpath /foo -module -avoid-version liba1.la], [], [ignore], [ignore])
-for dlopen in -dlopen -dlpreopen; do
+# TODO: test -dlpreopen
+for dlopen in -dlopen; do
AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT \
$dlopen modb1.la $LIBLTDL], [], [ignore], [ignore])
- LT_AT_EXEC_CHECK([./main])
+ LT_AT_NOINST_EXEC_CHECK([./main], [-dlopen modb1.la])
done
AT_CLEANUP
Index: tests/testsuite.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/testsuite.at,v
retrieving revision 1.47
diff -u -r1.47 testsuite.at
--- tests/testsuite.at 8 Feb 2007 18:58:16 -0000 1.47
+++ tests/testsuite.at 12 Feb 2007 19:52:52 -0000
@@ -165,6 +165,18 @@
])
+# LT_AT_NOINST_EXEC_CHECK(EXECUTABLE, [NOINST-MODULES],
+# [STATUS = 0], [STDOUT], [STDERR])
+# ---------------------------------------------------------
+m4_define([LT_AT_NOINST_EXEC_CHECK],
+[AT_CHECK([$LIBTOOL --mode=execute $2 $1; lt_status=$?;
+ if test $lt_status -eq 0; then :;
+ elif test "X$host" != "X$build" && \
+ { test -x "$1" || test -x "$1"$EXEEXT; }
+ then (exit 77); else (exit $lt_status); fi],[$3],[$4],[$5])
+])
+
+
# LT_AT_TAG(TAG)
# --------------
m4_define([LT_AT_TAG],
- FYI: lt_dlexit.at test needs 'libtool --mode=execute',
Ralf Wildenhues <=