libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new keyword `libtool' for testsuite


From: Ralf Wildenhues
Subject: new keyword `libtool' for testsuite
Date: Fri, 3 Feb 2006 20:07:14 +0100
User-agent: Mutt/1.5.9i

This trivial patch adds the Autotest keyword `libtool' to all tests that
exercise the $top_builddir/libtool script.  With the patch and the fixes
in CVS Autoconf's autotest macros, it is possible to do neat things, for
example:
- test a branch-1-5 libtool script by overriding $LIBTOOL suitably
  (I do this currently by manually calling `testsuite' in the way the
  Makefile calls it).
- manually set `need_lib_prefix' to yes and get some test exposure by
    make check-local TESTSUITE_FLAGS='-k libtool'
- do likewise for other flags; e.g., `need_locks' and `compiler_c_o';
  or set `deplibs_check_method="test_compile"'

A subsequent post-Libtool-2.0 post-Autoconf-2.60 patch will actually
create tests that do some of the above by default.

OK to apply this patch?
Should we maybe add documentation somewhere about the exact meaning of
the testsuite keywords?

Cheers,
Ralf

        * tests/convenience.at, tests/deplibs-ident.at: Add new keyword
        `libtool' for tests that exercise the unmodified `libtool'
        script that is generated at build time.
        * tests/duplicate_members.at, tests/fail.at: Likewise.
        * tests/inherited_flags.at, tests/link-order.at: Likewise.
        * tests/stresstest.at, tests/template.at: Likewise.

Index: tests/convenience.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/convenience.at,v
retrieving revision 1.5
diff -u -r1.5 convenience.at
--- tests/convenience.at        3 Dec 2005 11:52:36 -0000       1.5
+++ tests/convenience.at        31 Jan 2006 22:51:45 -0000
@@ -22,6 +22,7 @@
 # - with or without additional objects on the cmdline
 
 AT_SETUP([C convenience archives])
+AT_KEYWORDS([libtool])
 
 cat >main1.c <<EOF
 extern int a1(void);
@@ -61,6 +62,7 @@
 
 AT_SETUP([C++ convenience archives])
 LT_AT_TAG([CXX])
+AT_KEYWORDS([libtool])
 
 cat >main1.cpp <<EOF
 extern int a1(void);
@@ -100,6 +102,7 @@
 
 AT_SETUP([F77 convenience archives])
 LT_AT_TAG([F77])
+AT_KEYWORDS([libtool])
 
 cat >main1.f <<EOF
       program main
@@ -159,6 +162,7 @@
 
 AT_SETUP([FC convenience archives])
 LT_AT_TAG([FC])
+AT_KEYWORDS([libtool])
 
 cat >main1.f <<EOF
       program main
@@ -218,6 +222,7 @@
 
 AT_SETUP([Java convenience archives])
 LT_AT_TAG([GCJ])
+AT_KEYWORDS([libtool])
 
 cat >foo1.java <<EOF
 public class foo1 {
Index: tests/deplibs-ident.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/deplibs-ident.at,v
retrieving revision 1.3
diff -u -r1.3 deplibs-ident.at
--- tests/deplibs-ident.at      20 Nov 2005 08:17:22 -0000      1.3
+++ tests/deplibs-ident.at      31 Jan 2006 22:51:45 -0000
@@ -25,6 +25,7 @@
 ## ----------------------------------------------- ##
 
 AT_SETUP([build tree relpaths])
+AT_KEYWORDS([libtool])
 
 mkdir a a/b c
 echo 'int c() { return 0; }' > c/libcee.c
Index: tests/duplicate_members.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/duplicate_members.at,v
retrieving revision 1.4
diff -u -r1.4 duplicate_members.at
--- tests/duplicate_members.at  4 Dec 2005 14:40:44 -0000       1.4
+++ tests/duplicate_members.at  31 Jan 2006 22:51:45 -0000
@@ -18,6 +18,7 @@
 
 AT_BANNER([Testing libtool functions.])
 AT_SETUP([duplicate members in archive tests])
+AT_KEYWORDS([libtool])
 
 # we don't want to use whole_archive_flag_spec, even if available
 sed -e 's|^whole_archive_flag_spec=.*|whole_archive_flag_spec=|g' < $LIBTOOL > 
libtool
Index: tests/fail.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/fail.at,v
retrieving revision 1.1
diff -u -r1.1 fail.at
--- tests/fail.at       3 Dec 2005 08:33:48 -0000       1.1
+++ tests/fail.at       31 Jan 2006 22:51:45 -0000
@@ -20,6 +20,7 @@
 # TODO: many possible failure cases missing.  (But how to simulate a full 
disk?)
 
 AT_SETUP([Failure tests])
+AT_KEYWORDS([libtool])
 eval `$LIBTOOL --config | $EGREP 
'^(pic_mode|pic_flag|build_old_libs|build_libtool_libs)='`
 LDFLAGS="$LDFLAGS -no-undefined"
 
Index: tests/inherited_flags.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/inherited_flags.at,v
retrieving revision 1.7
diff -u -r1.7 inherited_flags.at
--- tests/inherited_flags.at    14 Nov 2005 22:19:40 -0000      1.7
+++ tests/inherited_flags.at    31 Jan 2006 22:51:45 -0000
@@ -18,6 +18,7 @@
 
 
 AT_SETUP([inherited_linker_flags])
+AT_KEYWORDS([libtool])
 
 AT_DATA([foo.c],
 [
Index: tests/link-order.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/link-order.at,v
retrieving revision 1.8
diff -u -r1.8 link-order.at
--- tests/link-order.at 20 Nov 2005 08:17:22 -0000      1.8
+++ tests/link-order.at 31 Jan 2006 22:51:45 -0000
@@ -19,6 +19,7 @@
 # link-order.test - make sure that library linking order matches
 
 AT_SETUP([Link order test.])
+AT_KEYWORDS([libtool])
 LDFLAGS="$LDFLAGS -no-undefined"
 
 prefix_old=`pwd`/old
Index: tests/stresstest.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/stresstest.at,v
retrieving revision 1.8
diff -u -r1.8 stresstest.at
--- tests/stresstest.at 11 Oct 2005 06:23:29 -0000      1.8
+++ tests/stresstest.at 31 Jan 2006 22:51:45 -0000
@@ -22,6 +22,7 @@
 # Note: This test is experimental, and might be too strict for some systems.
 
 AT_BANNER([Libtool stress test.])
+AT_KEYWORDS([libtool])
 AT_SETUP([Link option thorough search test])
 eval `$LIBTOOL --config | $EGREP '^(CC|objdir|allow_undefined_flag)='`
 
Index: tests/template.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/template.at,v
retrieving revision 1.8
diff -u -r1.8 template.at
--- tests/template.at   12 Sep 2005 16:24:38 -0000      1.8
+++ tests/template.at   31 Jan 2006 22:51:45 -0000
@@ -22,6 +22,7 @@
 
 AT_SETUP([simple template test])
 LT_AT_TAG([CXX])
+AT_KEYWORDS([libtool])
 
 AT_DATA(aclib.h,
 [[int cf(int);
@@ -114,6 +115,7 @@
 
 AT_SETUP([template test with subdirs])
 LT_AT_TAG([CXX])
+AT_KEYWORDS([libtool])
 CPPFLAGS="$CPPFLAGS -I../src/lib -I../src/lib2"
 
 mkdir src obj




reply via email to

[Prev in Thread] Current Thread [Next in Thread]