2004-11-24 22:55:55 +08:00
|
|
|
## Makefile.am -- Process this file with automake to produce Makefile.in
|
Since defs can change (path to grep for example) when it is made
for a different host, it can't be shipped. That also means that
defs will always be generated in the build tree, so each test case
can have the srcdir discovery factored away into tests/defs.in:
* Makefile.am (EXTRA_DIST): s/defs/defs.in/g
* tests/Makefile.am (defs): New rule to remake defs from the
parent directory's Makefile.
* tests/cdemo-conf.test, tests/cdemo-exec.test,
tests/cdemo-make.test, tests/cdemo-shared.test,
tests/cdemo-static.test, tests/demo-conf.test,
tests/demo-deplibs.test, tests/demo-exec.test,
tests/demo-hardcode.test, tests/demo-inst.test,
tests/demo-make.test, tests/demo-nofast.test,
tests/demo-noinst-link.test, tests/demo-nopic.test,
tests/demo-pic.test, tests/demo-relink.test,
tests/demo-shared.test, tests/demo-static.test,
tests/demo-unst.test, tests/depdemo-conf.test,
tests/depdemo-exec.test, tests/depdemo-inst.test,
tests/depdemo-make.test, tests/depdemo-nofast.test,
tests/depdemo-relink.test, tests/depdemo-shared.test,
tests/depdemo-static.test, tests/depdemo-unst.test,
tests/f77demo-conf.test, tests/f77demo-exec.test,
tests/f77demo-make.test, tests/f77demo-shared.test,
tests/f77demo-static.test, tests/link-2.test, tests/link.test,
tests/mdemo-conf.test, tests/mdemo-dryrun.test,
tests/mdemo-exec.test, tests/mdemo-inst.test,
tests/mdemo-make.test, tests/mdemo-shared.test,
tests/mdemo-static.test, tests/mdemo-unst.test,
tests/mdemo2-conf.test, tests/mdemo2-exec.test,
tests/mdemo2-make.test, tests/nomode.test, tests/pdemo-conf.test,
tests/pdemo-exec.test, tests/pdemo-inst.test,
tests/pdemo-make.test, tests/quote.test, tests/sh.test,
tests/suffix.test, tests/tagdemo-conf.test,
tests/tagdemo-exec.test, tests/tagdemo-make.test,
tests/tagdemo-shared.test, tests/tagdemo-static.test,
tests/tagtrace.test: Removed srcdir discovery boilerplate...
* tests/defs.in: ...and put it here.
2004-09-23 21:07:15 +08:00
|
|
|
##
|
|
|
|
## Copyright (C) 2003, 2004 Free Software Foundation
|
|
|
|
##
|
|
|
|
## This program is free software; you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License as published by
|
|
|
|
## the Free Software Foundation; either version 2 of the License, or
|
|
|
|
## (at your option) any later version.
|
|
|
|
##
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
##
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program; see the file COPYING. If not, write to
|
|
|
|
## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
## Boston, MA 02111-1307, USA.
|
|
|
|
|
2004-11-24 22:55:55 +08:00
|
|
|
## ------------ ##
|
|
|
|
## Test suite. ##
|
|
|
|
## ------------ ##
|
|
|
|
|
|
|
|
TESTSUITE = testsuite
|
|
|
|
TESTSUITE_AT = testsuite.at \
|
2004-12-20 23:03:39 +08:00
|
|
|
am-subdir.at \
|
2005-01-10 23:44:13 +08:00
|
|
|
functests.at \
|
|
|
|
inherited_flags.at
|
2004-11-24 22:55:55 +08:00
|
|
|
|
|
|
|
EXTRA_DIST = $(TESTSUITE) $(TESTSUITE_AT) package.m4
|
|
|
|
|
|
|
|
# Be sure to reexport important environment variables:
|
|
|
|
TESTS_ENVIRONMENT = MAKE="$(MAKE)" CC="$(CC)" CFLAGS="$(CFLAGS)" \
|
2005-01-27 01:52:59 +08:00
|
|
|
CPP="$(CPP)" CPPFLAGS="$(CPPFLAGS)" LD="$(LD)" LDFLAGS="$(LDFLAGS)" \
|
2004-11-24 22:55:55 +08:00
|
|
|
LIBS="$(LIBS)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
|
2005-01-27 01:52:59 +08:00
|
|
|
OBJEXT="$(OBJEXT)" EXEEXT="$(EXEEXT)" CONFIG_SHELL="$(SHELL)" \
|
|
|
|
CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" CXXCPP="$(CXXCPP)" \
|
|
|
|
F77="$(F77)" FFLAGS="$(FFLAGS)"
|
2004-11-24 22:55:55 +08:00
|
|
|
|
|
|
|
# ../Makefile knows how to rebuild this file:
|
|
|
|
$(srcdir)/package.m4:
|
|
|
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) update-package-m4
|
|
|
|
|
|
|
|
$(srcdir)/$(TESTSUITE): $(srcdir)/package.m4 $(TESTSUITE_AT)
|
|
|
|
cd $(srcdir); \
|
|
|
|
$(AUTOTEST) testsuite.at -o $(TESTSUITE)
|
|
|
|
|
|
|
|
atconfig: $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir); \
|
|
|
|
./config.status tests/atconfig
|
|
|
|
|
|
|
|
# Hook the test suite into the check rule
|
|
|
|
check-local: atconfig $(srcdir)/$(TESTSUITE)
|
|
|
|
$(TESTS_ENVIRONMENT) $(SHELL) $(srcdir)/$(TESTSUITE) $(TESTSUITE_FLAGS)
|
|
|
|
|
|
|
|
# Run the test suite on the *installed* tree.
|
|
|
|
installcheck-local:
|
|
|
|
$(TESTS_ENVIRONMENT) $(SHELL) $(srcdir)/$(TESTSUITE) $(TESTSUITE_FLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
|
|
|
|
|
|
|
|
# We need to remove any file droppings left behind by testsuite
|
|
|
|
clean-local: clean-local-legacy
|
|
|
|
$(SHELL) $(srcdir)/$(TESTSUITE) --clean
|
|
|
|
|
2005-02-01 23:09:46 +08:00
|
|
|
DISTCLEANFILES = atconfig
|
2004-11-24 22:55:55 +08:00
|
|
|
|
|
|
|
## ------------- ##
|
|
|
|
## Legacy tests. ##
|
|
|
|
## ------------- ##
|
|
|
|
|
|
|
|
# !WARNING! Don't add any new tests here, we are migrating to an
|
|
|
|
# Autotest driven framework, please add new test cases
|
|
|
|
# using the new framework above. When the migration is
|
|
|
|
# complete this section should be removed.
|
1997-04-02 02:29:23 +08:00
|
|
|
|
2001-06-06 22:53:29 +08:00
|
|
|
CXX_TESTS = \
|
|
|
|
tagdemo-static.test tagdemo-make.test tagdemo-exec.test \
|
|
|
|
tagdemo-conf.test tagdemo-make.test tagdemo-exec.test \
|
2004-10-13 15:15:02 +08:00
|
|
|
tagdemo-shared.test tagdemo-make.test tagdemo-exec.test \
|
|
|
|
tagdemo-undef.test tagdemo-make.test tagdemo-exec.test
|
2001-06-06 22:53:29 +08:00
|
|
|
|
2002-08-01 04:15:28 +08:00
|
|
|
F77_TESTS = \
|
|
|
|
f77demo-static.test f77demo-make.test f77demo-exec.test \
|
|
|
|
f77demo-conf.test f77demo-make.test f77demo-exec.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
f77demo-shared.test f77demo-make.test f77demo-exec.test
|
2002-08-01 04:15:28 +08:00
|
|
|
|
2001-06-06 22:53:29 +08:00
|
|
|
COMMON_TESTS = \
|
2004-11-10 18:14:12 +08:00
|
|
|
link.test link-2.test nomode.test objectlist.test \
|
2004-05-18 01:42:44 +08:00
|
|
|
quote.test sh.test suffix.test tagtrace.test \
|
2001-06-06 22:53:29 +08:00
|
|
|
cdemo-static.test cdemo-make.test cdemo-exec.test \
|
1999-03-17 00:54:48 +08:00
|
|
|
demo-static.test demo-make.test demo-exec.test \
|
1999-03-08 07:28:05 +08:00
|
|
|
demo-inst.test demo-unst.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
depdemo-static.test depdemo-make.test depdemo-exec.test \
|
|
|
|
depdemo-inst.test depdemo-unst.test \
|
1999-01-21 11:50:07 +08:00
|
|
|
mdemo-static.test mdemo-make.test mdemo-exec.test \
|
|
|
|
mdemo-inst.test mdemo-unst.test \
|
1999-03-17 00:54:48 +08:00
|
|
|
cdemo-conf.test cdemo-make.test cdemo-exec.test \
|
1999-01-21 11:50:07 +08:00
|
|
|
demo-conf.test demo-make.test demo-exec.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
demo-inst.test demo-unst.test demo-deplibs.test \
|
|
|
|
depdemo-conf.test depdemo-make.test depdemo-exec.test \
|
|
|
|
depdemo-inst.test depdemo-unst.test \
|
1998-11-18 15:29:36 +08:00
|
|
|
mdemo-conf.test mdemo-make.test mdemo-exec.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
mdemo-inst.test mdemo-unst.test mdemo-dryrun.test \
|
|
|
|
mdemo2-conf.test mdemo2-make.test mdemo2-exec.test \
|
|
|
|
pdemo-conf.test pdemo-make.test pdemo-exec.test \
|
2003-10-15 19:01:12 +08:00
|
|
|
pdemo-inst.test \
|
1999-03-11 02:28:49 +08:00
|
|
|
demo-nofast.test demo-make.test demo-exec.test \
|
|
|
|
demo-inst.test demo-unst.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
depdemo-nofast.test depdemo-make.test depdemo-exec.test \
|
|
|
|
depdemo-inst.test depdemo-unst.test \
|
1999-07-17 17:00:53 +08:00
|
|
|
demo-pic.test demo-make.test demo-exec.test \
|
|
|
|
demo-nopic.test demo-make.test demo-exec.test \
|
1999-03-17 00:54:48 +08:00
|
|
|
cdemo-shared.test cdemo-make.test cdemo-exec.test \
|
1999-03-11 02:28:49 +08:00
|
|
|
demo-shared.test demo-make.test demo-exec.test demo-inst.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
demo-hardcode.test demo-relink.test demo-noinst-link.test \
|
|
|
|
demo-unst.test \
|
|
|
|
depdemo-shared.test depdemo-make.test depdemo-exec.test \
|
|
|
|
depdemo-inst.test depdemo-relink.test depdemo-unst.test \
|
1999-01-21 11:50:07 +08:00
|
|
|
mdemo-shared.test mdemo-make.test mdemo-exec.test \
|
2004-10-14 00:01:01 +08:00
|
|
|
mdemo-inst.test mdemo-unst.test \
|
|
|
|
cdemo-undef.test cdemo-make.test cdemo-exec.test
|
2001-06-06 22:53:29 +08:00
|
|
|
|
|
|
|
if HAVE_CXX
|
2002-08-01 04:15:28 +08:00
|
|
|
if HAVE_F77
|
|
|
|
TESTS = $(COMMON_TESTS) $(CXX_TESTS) $(F77_TESTS)
|
|
|
|
else
|
2001-06-06 22:53:29 +08:00
|
|
|
TESTS = $(COMMON_TESTS) $(CXX_TESTS)
|
2002-08-01 04:15:28 +08:00
|
|
|
endif
|
|
|
|
else
|
|
|
|
if HAVE_F77
|
|
|
|
TESTS = $(COMMON_TESTS) $(F77_TESTS)
|
2001-06-06 22:53:29 +08:00
|
|
|
else
|
|
|
|
TESTS = $(COMMON_TESTS)
|
|
|
|
endif
|
2002-08-01 04:15:28 +08:00
|
|
|
endif
|
1997-04-02 02:29:23 +08:00
|
|
|
|
* merged my inter-library dependencies code from the ILD branch:
* NEWS: inter-library dependencies are now supported
* configure.in: add the depdemo subdirectory
* depdemo/*: new demo to demonstrate inter-library dependencies
* tests/depdemo*: new tests for depdemo
* ltconfig.in: added hardcode_into_libs (whether library paths
should be hardcoded into the libraries),
it currently defaults to 'no'
* ltmain.in: new internal 'relink' mode to relink libraries
on platforms with hardcode_into_libs=yes, save command line
arguments in libtool_args, accept relative -L directories,
ignore -lm on BeOS and Cygwin, always ignore -lc,
handle -l, -L and .la arguments later, always make the library
installation directory (-rpath) absolute, in relink mode don't
delete the not-relinked library and exit immediately after relinking,
try to find already-installed libtool libraries that were specified
using -l, support hardcoding of library paths into libraries too,
export shlibpath before linking libraries, and a lot of other
big changes that I don't want to describe here... please read
the source.
* merged Gary's Win32 code from the ILD branch:
* NEWS: Win32 DLLs are now supported
* TODO: removed .a library namespace clash for win32. It is
now resolved.
* ltconfig.in (cygwin, library_names_spec): removed $libname.a.
Creating a dll with libtool no longer creates an import library.
* ltconfig.in (extract_expsyms_cmds): Create $objdir if it does
not exist -- i.e. we need to generate import an import library
in a directory which has no libs of its own.
* doc/libtool.texi (old_archive_from_expsyms_cmds,
extract_expsyms_cmds): documented these new variables.
* ltconfig.in (extract_expsyms_cmds): New variable. Commands to
extract the exported symbol list from a dll.
(old_archive_from_expsyms_cmds): New variable. Commands to build
an old archive from the extracted expsyms list.
* ltmain.in: run the cmds in extract_expsyms_cmds and
old_archive_from_expsyms_cmds as necessary.
* ltconfig.in (cygwin, old_archive_from_new_cmds): no longer
required.
* ltconfig.in (cygwin, shlibpath_overrides_runpath): I'm not even
sure whether win32 honours the runpath at all when searching for
a dll to load! Anyway, when set to yes this prevents a gratuitous
warning.
* ltmain.in (deplib): The cygwin environment doesn't actually have
-lm, and although the linker fakes having one, specifiying it to
libtool will break ILD, so we ignore it when generating
dependencies.
1999-03-19 05:57:08 +08:00
|
|
|
demo-conf.test: $(top_builddir)/libtool
|
1999-01-06 02:15:22 +08:00
|
|
|
|
|
|
|
$(top_builddir)/libtool:
|
|
|
|
cd $(top_builddir) && $(MAKE) all
|
|
|
|
|
2004-11-24 22:55:55 +08:00
|
|
|
EXTRA_DIST += defs.in defs.m4sh $(COMMON_TESTS) $(CXX_TESTS) $(F77_TESTS)
|
2003-11-17 23:49:06 +08:00
|
|
|
DIST_SUBDIRS = $(CONF_SUBDIRS)
|
|
|
|
|
|
|
|
# FIXME: Automake-1.7b (at least) only honours DIST_SUBDIRS if SUBDIRS is
|
|
|
|
# also set. Remove this line when that bug is fixed.
|
|
|
|
SUBDIRS = .
|
1997-04-02 03:02:08 +08:00
|
|
|
|
|
|
|
# We need to remove any files that the above tests created.
|
2004-11-24 22:55:55 +08:00
|
|
|
clean-local-legacy:
|
2003-10-15 05:46:13 +08:00
|
|
|
-for dir in cdemo demo depdemo f77demo mdemo mdemo2 pdemo tagdemo; \
|
|
|
|
do \
|
|
|
|
test -f $$dir/Makefile && ( cd $$dir && $(MAKE) distclean; ); \
|
|
|
|
done
|
1997-10-15 02:33:24 +08:00
|
|
|
rm -rf _inst
|
2003-10-15 05:46:13 +08:00
|
|
|
|
Since defs can change (path to grep for example) when it is made
for a different host, it can't be shipped. That also means that
defs will always be generated in the build tree, so each test case
can have the srcdir discovery factored away into tests/defs.in:
* Makefile.am (EXTRA_DIST): s/defs/defs.in/g
* tests/Makefile.am (defs): New rule to remake defs from the
parent directory's Makefile.
* tests/cdemo-conf.test, tests/cdemo-exec.test,
tests/cdemo-make.test, tests/cdemo-shared.test,
tests/cdemo-static.test, tests/demo-conf.test,
tests/demo-deplibs.test, tests/demo-exec.test,
tests/demo-hardcode.test, tests/demo-inst.test,
tests/demo-make.test, tests/demo-nofast.test,
tests/demo-noinst-link.test, tests/demo-nopic.test,
tests/demo-pic.test, tests/demo-relink.test,
tests/demo-shared.test, tests/demo-static.test,
tests/demo-unst.test, tests/depdemo-conf.test,
tests/depdemo-exec.test, tests/depdemo-inst.test,
tests/depdemo-make.test, tests/depdemo-nofast.test,
tests/depdemo-relink.test, tests/depdemo-shared.test,
tests/depdemo-static.test, tests/depdemo-unst.test,
tests/f77demo-conf.test, tests/f77demo-exec.test,
tests/f77demo-make.test, tests/f77demo-shared.test,
tests/f77demo-static.test, tests/link-2.test, tests/link.test,
tests/mdemo-conf.test, tests/mdemo-dryrun.test,
tests/mdemo-exec.test, tests/mdemo-inst.test,
tests/mdemo-make.test, tests/mdemo-shared.test,
tests/mdemo-static.test, tests/mdemo-unst.test,
tests/mdemo2-conf.test, tests/mdemo2-exec.test,
tests/mdemo2-make.test, tests/nomode.test, tests/pdemo-conf.test,
tests/pdemo-exec.test, tests/pdemo-inst.test,
tests/pdemo-make.test, tests/quote.test, tests/sh.test,
tests/suffix.test, tests/tagdemo-conf.test,
tests/tagdemo-exec.test, tests/tagdemo-make.test,
tests/tagdemo-shared.test, tests/tagdemo-static.test,
tests/tagtrace.test: Removed srcdir discovery boilerplate...
* tests/defs.in: ...and put it here.
2004-09-23 21:07:15 +08:00
|
|
|
$(TESTS): defs
|
2004-11-24 22:55:55 +08:00
|
|
|
defs: defs.in $(top_srcdir)/Makefile.am
|
|
|
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) tests/defs
|
2005-02-01 23:09:46 +08:00
|
|
|
DISTCLEANFILES += defs
|