From: Tom Tromey Date: Fri, 4 Aug 2000 17:32:33 +0000 (+0000) Subject: Idea from Nicolas Thiery: X-Git-Tag: Release-1-4b~71 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b9ef4ceb62910e3c10c9e3da238f4c6285a2530c;p=automake.git Idea from Nicolas Thiery: * automake.texi (Tests): Document DEJATOOL as a list. * dejagnu.am (RUNTESTDEFAULTFLAGS): Use $$tool, not $(DEJATOOL). (check-DEJAGNU): Run runtest in a loop. --- diff --git a/ChangeLog b/ChangeLog index f07afecf..03e5b629 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-08-04 Tom Tromey + + Idea from Nicolas Thiery: + * automake.texi (Tests): Document DEJATOOL as a list. + * dejagnu.am (RUNTESTDEFAULTFLAGS): Use $$tool, not $(DEJATOOL). + (check-DEJAGNU): Run runtest in a loop. + 2000-08-02 Akim Demaille * m4: Quote properly the name of the macros being defined. diff --git a/THANKS b/THANKS index 25010dd8..c6c6d018 100644 --- a/THANKS +++ b/THANKS @@ -85,6 +85,7 @@ Miles Bader miles@ccs.mt.nec.co.jp Miodrag Vallat miodrag@ifrance.com Motoyuki Kasahara m-kasahr@sra.co.jp Motoyuki Kasahara m-kasahr@sra.co.jp +Nicolas Thiery nthiery@Icare.mines.edu NISHIDA Keisuke knishida@nn.iij4u.or.jp Nelson H. F. Beebe beebe@math.utah.edu Noah Friedman friedman@gnu.ai.mit.edu diff --git a/automake.texi b/automake.texi index 01fcda43..27e147da 100644 --- a/automake.texi +++ b/automake.texi @@ -3026,9 +3026,10 @@ set @code{TESTS_ENVIRONMENT} to an invocation of the shell (e.g. If @uref{ftp://prep.ai.mit.edu/pub/gnu/dejagnu-1.3.tar.gz, @samp{dejagnu}} appears in @code{AUTOMAKE_OPTIONS}, then a -@code{dejagnu}-based test suite is assumed. The value of the variable -@code{DEJATOOL} is passed as the @code{--tool} argument to -@code{runtest}; it defaults to the name of the package. +@code{dejagnu}-based test suite is assumed. The variable +@code{DEJATOOL} is a list of names which are passed, one at a time, as +the @code{--tool} argument to @code{runtest} invocations; it defaults to +the name of the package. The variable @code{RUNTESTDEFAULTFLAGS} holds the @code{--tool} and @code{--srcdir} flags that are passed to dejagnu by default; this can be diff --git a/dejagnu.am b/dejagnu.am index f199ebeb..fdfc113f 100644 --- a/dejagnu.am +++ b/dejagnu.am @@ -1,5 +1,5 @@ ## automake - create Makefile.in from Makefile.am -## Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. +## Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc. ## 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 @@ -23,7 +23,7 @@ RUNTESTFLAGS = DEJATOOL = $(PACKAGE) ## Default flags to pass to dejagnu. The user can override this. -RUNTESTDEFAULTFLAGS = --tool $(DEJATOOL) --srcdir $$srcdir +RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir check-DEJAGNU: site.exp ## Life is easiest with an absolute srcdir, so do that. @@ -39,6 +39,8 @@ CYGNUS fi; \ ## If runtest can't be found, print a warning but don't die. It is ## pointless to cause a failure if the tests cannot be run at all. if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \ - $$runtest $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \ + l='$(DEJATOOL)'; for tool in $$l; do \ + $$runtest $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \ + done; \ else echo "WARNING: could not find \`runtest'" 1>&2; :;\ fi diff --git a/lib/am/dejagnu.am b/lib/am/dejagnu.am index f199ebeb..fdfc113f 100644 --- a/lib/am/dejagnu.am +++ b/lib/am/dejagnu.am @@ -1,5 +1,5 @@ ## automake - create Makefile.in from Makefile.am -## Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. +## Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc. ## 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 @@ -23,7 +23,7 @@ RUNTESTFLAGS = DEJATOOL = $(PACKAGE) ## Default flags to pass to dejagnu. The user can override this. -RUNTESTDEFAULTFLAGS = --tool $(DEJATOOL) --srcdir $$srcdir +RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir check-DEJAGNU: site.exp ## Life is easiest with an absolute srcdir, so do that. @@ -39,6 +39,8 @@ CYGNUS fi; \ ## If runtest can't be found, print a warning but don't die. It is ## pointless to cause a failure if the tests cannot be run at all. if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \ - $$runtest $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \ + l='$(DEJATOOL)'; for tool in $$l; do \ + $$runtest $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \ + done; \ else echo "WARNING: could not find \`runtest'" 1>&2; :;\ fi