* tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.

* lib/autom4te.cfg (args): Add local.at? for Autotest args.
* tests/atspecific.m4: Rename as...
* tests/local.at: This.
* tests/suite.at: Move the globals into...
* tests/local.at: here.
* tests/Makefile.am: Adjust.
* doc/autoconf.texi (testsuite Scripts): Adjust.
This commit is contained in:
Akim Demaille 2003-06-23 11:11:41 +00:00
parent 9c4ac634f9
commit 2fbbb4bafe
24 changed files with 69 additions and 50 deletions

View File

@ -1,3 +1,14 @@
2003-06-23 Akim Demaille <akim@epita.fr>
* tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
* lib/autom4te.cfg (args): Add local.at? for Autotest args.
* tests/atspecific.m4: Rename as...
* tests/local.at: This.
* tests/suite.at: Move the globals into...
* tests/local.at: here.
* tests/Makefile.am: Adjust.
* doc/autoconf.texi (testsuite Scripts): Adjust.
2003-06-21 Kevin Ryde <user42@zip.com.au>
* lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an

3
NEWS
View File

@ -1,5 +1,8 @@
* Major changes in Autoconf 2.57b -*- outline -*-
** Autotest and local.at
The optional file local.at is always included in Autotest test suites.
* Major changes in Autoconf 2.57a
Released 2003-06-20 by Akim Demaille.

View File

@ -14177,6 +14177,14 @@ health checking, before listing include statements for all other test
files. The special file @file{package.m4}, containing the
identification of the package, is automatically included if found.
A convenient alternative consists in moving all the global issues
(local Autotest macros, elementary health checking, and @code{AT_INIT}
invocation) into the file @code{local.at}, and making
@file{testsuite.at} be a simple list of @code{m4_include} of sub test
suites. In such case, generating the whole test suite or pieces of it
is only a matter of choosing the @command{autom4te} command line
arguments.
The validation scripts that Autotest produces are by convention called
@command{testsuite}. When run, @command{testsuite} executes each test
group in turn, producing only one summary line per test to say if that
@ -14216,13 +14224,13 @@ Here is a diagram showing the relationship between files.
Files used in preparing a software package for distribution:
@example
subfile-1.at ->.
... \
subfile-i.at ---->-- testsuite.at -->.
... / \
subfile-n.at ->' >-- autom4te* -->testsuite
/
[package.m4] ->'
[package.m4] -->.
\
subfile-1.at ->. [local.at] ---->+
... \ \
subfile-i.at ---->-- testsuite.at -->-- autom4te* -->testsuite
... /
subfile-n.at ->'
@end example
@noindent

View File

@ -1,7 +1,7 @@
## Process this file with automake to create Makefile.in. -*-Makefile-*-
## Makefile for Autoconf testsuite.
## Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
## Copyright (C) 2000, 2001, 2002, 2003 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
@ -20,7 +20,7 @@
# We don't actually distribute the testsuite, since one only
# needs m4 to build it, m4 being required anyway to install Autoconf.
EXTRA_DIST = $(TESTSUITE_AT) atspecific.m4 mktests.sh \
EXTRA_DIST = $(TESTSUITE_AT) local.at mktests.sh \
atlocal.in package.m4 wrapper.as
# Running the uninstalled scripts.
@ -84,7 +84,7 @@ TESTSUITE = ./testsuite
# we are allowed to use it (since we ship it).
AUTOTEST = ./autom4te --language=autotest
$(TESTSUITE): $(srcdir)/package.m4 \
atspecific.m4 \
local.at \
$(TESTSUITE_AT) \
$(autotest_m4f_dependencies)
$(AUTOTEST) -I $(srcdir) suite.at -o $@.tmp

View File

@ -105,7 +105,7 @@ target_alias = @target_alias@
# We don't actually distribute the testsuite, since one only
# needs m4 to build it, m4 being required anyway to install Autoconf.
EXTRA_DIST = $(TESTSUITE_AT) atspecific.m4 mktests.sh \
EXTRA_DIST = $(TESTSUITE_AT) local.at mktests.sh \
atlocal.in package.m4 wrapper.as
@ -441,7 +441,7 @@ $(srcdir)/package.m4: $(top_srcdir)/configure.ac
$(srcdir)/wrapper.in: $(srcdir)/wrapper.as
./autom4te --language=M4sh $(srcdir)/wrapper.as -o $@
$(TESTSUITE): $(srcdir)/package.m4 \
atspecific.m4 \
local.at \
$(TESTSUITE_AT) \
$(autotest_m4f_dependencies)
$(AUTOTEST) -I $(srcdir) suite.at -o $@.tmp

View File

@ -1,5 +1,5 @@
# Generated by mktests.sh, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/c macros.])

View File

@ -1,5 +1,5 @@
# Generated by mktests.sh, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/fortran macros.])

View File

@ -1,5 +1,5 @@
# Generated by mktests.sh, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/functions macros.])

View File

@ -1,5 +1,5 @@
# Generated by mktests.sh, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/general macros.])

View File

@ -1,5 +1,5 @@
# Generated by mktests.sh, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/headers macros.])

View File

@ -1,5 +1,5 @@
# Generated by mktests.sh, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/lang macros.])

View File

@ -1,5 +1,5 @@
# Generated by mktests.sh, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/libs macros.])

View File

@ -1,5 +1,5 @@
# Generated by mktests.sh, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/programs macros.])

View File

@ -1,5 +1,5 @@
# Generated by mktests.sh, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/specific macros.])

View File

@ -1,5 +1,5 @@
# Generated by mktests.sh, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/status macros.])

View File

@ -1,5 +1,5 @@
# Generated by mktests.sh, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/types macros.])

View File

@ -2,7 +2,7 @@
AT_BANNER([Autoconf base layer.])
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 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

View File

@ -2,7 +2,7 @@
AT_BANNER([Low level compiling/preprocessing macros.])
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 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

View File

@ -2,7 +2,7 @@
AT_BANNER([Fortran low level compiling/preprocessing macros.])
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 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

View File

@ -17,6 +17,14 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# We need a very up to date version of Autotest.
m4_version_prereq([2.53])
# Used in many tests.
m4_pattern_allow([^AS_EXIT$])
m4_pattern_allow([^m4_(define|shift)$])
AT_TESTED([autom4te autoconf autoheader autoupdate autoreconf ifnames])
## ------------------ ##
## Testing autom4te. ##
@ -352,3 +360,12 @@ AT_CHECK_ENV
AT_CLEANUP()dnl
])# AT_CHECK_UPDATE
## ----------------------- ##
## Launch the test suite. ##
## ----------------------- ##
AT_INIT

View File

@ -2,7 +2,7 @@
AT_BANNER([M4sh.])
# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2002, 2003 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
@ -19,9 +19,6 @@ AT_BANNER([M4sh.])
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# Used in many tests.
m4_pattern_allow([^AS_EXIT$])
## ---------------- ##
## LINENO support. ##
## ---------------- ##

View File

@ -219,7 +219,7 @@ do
{
sed 's/^ *//' <<MK_EOF
# Generated by $as_me, do not edit by hand. -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
AT_BANNER([Testing autoconf/$base macros.])

View File

@ -1,6 +1,6 @@
# Validation suite for Autoconf -*- Autotest -*-
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 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
@ -17,21 +17,6 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# We need a very up to date version of Autotest.
m4_version_prereq([2.53])
# Macros specialized for Autoconf testing.
m4_include([atspecific.m4])
AT_TESTED([autom4te autoconf autoheader autoupdate autoreconf ifnames])
# Still many parts of `autoconf' are not exercised by the test suite. A few
# FIXME's, below, are used to list tests that we would need. Do you feel
# like contributing new tests? If you do, you may tell your intent to
# `autoconf@gnu.org', so no two people work at the same thing.
AT_INIT
# Run the tests from the lowest level to the highest level, and from
# the most selective to the easiest.

View File

@ -2,7 +2,7 @@
AT_BANNER([Executables (autoheader, autoupdate...).])
# Copyright 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2003 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
@ -154,8 +154,6 @@ AT_CLEANUP
# -----------------------------
AT_SETUP([autoconf --trace: user macros])
m4_pattern_allow([^m4_(define|shift)$])
AT_DATA([configure.ac],
[[m4_define([active], [ACTIVE])
m4_define([TRACE1], [TRACE2(m4_shift($@))])