automake-patches
[Top][All Lists]
Advanced

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

Patch: New test


From: Tom Tromey
Subject: Patch: New test
Date: 01 Jun 2001 09:34:15 -0600

Lars J. Aas reported this bug.  I'm checking in the test for it now.
This one has to be fixed before the release.  I wonder if there are a
lot of other bugs like this :-(.  Well, 1.6 will probably be a quick
bug-fix release ...

2001-06-01  Tom Tromey  <address@hidden>

        * tests/Makefile.am (XFAIL_TESTS): Added ltdeps.test.
        (TESTS): Likewise.
        * tests/ltdeps.test: New file.  Report from Lars J. Aas.

Tom

Index: tests/Makefile.am
===================================================================
RCS file: /cvs/automake/automake/tests/Makefile.am,v
retrieving revision 1.304
diff -u -r1.304 Makefile.am
--- Makefile.am 2001/05/18 02:19:44     1.304
+++ Makefile.am 2001/06/01 15:20:22
@@ -2,7 +2,7 @@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = subdir5.test
+XFAIL_TESTS = subdir5.test ltdeps.test
 
 TESTS =        \
 acinclude.test \
@@ -175,6 +175,7 @@
 link_f_cxx.test        \
 link_f_only.test \
 lisp.test \
+ltdeps.test \
 ltlibobjs.test \
 make.test \
 makevars.test \
Index: tests/ltdeps.test
===================================================================
RCS file: ltdeps.test
diff -N ltdeps.test
--- /dev/null   Tue May  5 13:32:27 1998
+++ ltdeps.test Fri Jun  1 08:20:22 2001
@@ -0,0 +1,45 @@
+#! /bin/sh
+
+# Test to make sure libtool library dependencies are correct.
+# Report from Lars J. Aas.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_LIBTOOL
+AC_PROG_CXX
+AM_CONDITIONAL(HACKING_COMPACT_BUILD, whatever)
+END
+
+cat > Makefile.am << 'END'
+RegularSources = \
+        SbBSPTree.cpp \
+        SbBox2f.cpp \
+        SbBox2s.cpp
+
+LinkHackSources = \
+        all.cpp
+
+if HACKING_COMPACT_BUILD
+BuildSources = $(LinkHackSources)
+else
+BuildSources = $(RegularSources)
+endif
+
+noinst_LTLIBRARIES = libbase.la
+libbase_la_SOURCES = $(BuildSources)
+
+EXTRA_libbase_la_SOURCES = \
+        $(RegularSources) $(LinkHackSources)
+END
+
+: > ltconfig
+: > ltmain.sh
+: > config.guess
+: > config.sub
+
+$ACLOCAL || exit 1
+$AUTOMAKE || exit 1
+
+grep 'OBJECTS =$' Makefile.in && exit 1
+exit 0



reply via email to

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