at_data_files earlier.
(--clean, -c): New option.
* tests/Makefile.am: Use this option.
+2001-08-27 Akim Demaille <akim@epita.fr>
+
+ * lib/autotest/general.m4 (AT_INIT): Output the definition of
+ at_data_files earlier.
+ (--clean, -c): New option.
+ * tests/Makefile.am: Use this option.
+
+
2001-08-27 Akim Demaille <akim@epita.fr>
* lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
case $[1] in
--help | -h) at_help=: ;;
--version) echo "$as_me ($at_package) $at_version"; exit 0 ;;
+ --clean | -c )
+ rm -rf $at_data_files debug-*.sh $as_me.log
+ exit 0;;
-d) at_debug=:;;
-e) at_stop_on_error=:;;
Options:
-h Display this help message and the description of TESTS
+ -c Remove all the files this test suite might create and exit
-e Abort the full suite and inhibit normal clean up if a test fails
-v Force more detailed output, default for debugging scripts
-d Inhibit clean up and debug script creation, default for debugging scripts
m4_divert_pop([TAIL])dnl
m4_wrap([m4_divert_text([DEFAULT],
[# List of the tests.
-at_tests_all="AT_TESTS_ALL "])])dnl
-m4_wrap([m4_divert_text([SETUP],
- [# List of the output files.
+at_tests_all="AT_TESTS_ALL "
+# List of the output files.
at_data_files="AT_data_files "])])dnl
])# AT_INIT
$(SUITE_GENERATED): mktests.sh $(MACRO_FILES)
cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
-CLEANFILES = \
- debug-*.sh state-* at-* stderr stdout \
- script.s4g script.as script \
- configure configure.in configure.ac config.status config.cache \
- config.log config.h.in config.hin config.h \
- config.guess config.sub install-sh \
- expr \
- libtool ltconfig ltmain.sh
-
-DISTCLEANFILES = atconfig atlocal testsuite testsuite.log
+DISTCLEANFILES = atconfig atlocal testsuite
## ------------------ ##
maintainer-check: maintainer-check-posix maintainer-check-c++
# The hairy heredoc is more robust than using echo.
+CLEANFILES = expr
expr:
echo '#! $(SHELL)' >expr
echo 'result=`@EXPR@ "$$@"`' >>expr
CC=g++ make check
clean-local:
- -rm -rf autom4te.cache builddir inner
+ ./testsuite --clean
+ -rm -rf autom4te.cache
$(top_srcdir)/lib/autoconf/programs.m4
-CLEANFILES = \
- debug-*.sh state-* at-* stderr stdout \
- script.s4g script.as script \
- configure configure.in configure.ac config.status config.cache \
- config.log config.h.in config.hin config.h \
- config.guess config.sub install-sh \
- expr \
- libtool ltconfig ltmain.sh
+DISTCLEANFILES = atconfig atlocal testsuite
-
-DISTCLEANFILES = atconfig atlocal testsuite testsuite.log
+# The hairy heredoc is more robust than using echo.
+CLEANFILES = expr
subdir = tests
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_CLEAN_FILES =
cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
maintainer-check: maintainer-check-posix maintainer-check-c++
-
-# The hairy heredoc is more robust than using echo.
expr:
echo '#! $(SHELL)' >expr
echo 'result=`@EXPR@ "$$@"`' >>expr
CC=g++ make check
clean-local:
- -rm -rf autom4te.cache builddir inner
+ ./testsuite --clean
+ -rm -rf autom4te.cache
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: