autoconf/tests
2000-10-27 14:43:44 +00:00
..
.cvsignore More files to ignore. 2000-10-21 02:22:51 +00:00
aclocal.m4 * tests/aclocal.m4 (AC_ENV_SAVE): Rename to ... 2000-10-25 11:47:20 +00:00
atconfig.in The test suite needs GNU m4. 2000-05-25 16:37:12 +00:00
atgeneral.m4 * tests/atgeneral.m4 (AT_INIT): Avoid foo="bar", foo=bar is 2000-10-18 12:42:20 +00:00
atspecific.m4 * tests/aclocal.m4 (AC_ENV_SAVE): Rename to ... 2000-10-25 11:47:20 +00:00
base.at Use AC_MSG_ERROR in the test suite, not just `exit'. 2000-10-27 14:15:28 +00:00
m4sh.at Use AC_MSG_ERROR in the test suite, not just `exit'. 2000-10-27 14:15:28 +00:00
m4sugar.at * shell.m4: Rename as... 2000-10-26 09:52:34 +00:00
Makefile.am Use AC_MSG_ERROR in the test suite, not just `exit'. 2000-10-27 14:15:28 +00:00
Makefile.in Use AC_MSG_ERROR in the test suite, not just `exit'. 2000-10-27 14:15:28 +00:00
mktests.sh * shell.m4: Rename as... 2000-10-26 09:52:34 +00:00
README Use AC_MSG_ERROR in the test suite, not just `exit'. 2000-10-27 14:15:28 +00:00
semantics.at Use AC_MSG_ERROR in the test suite, not just `exit'. 2000-10-27 14:15:28 +00:00
suite.at * tests/suite.at: Move "-*- Autoconf -*-" to the second line. 2000-10-27 14:43:44 +00:00
syntax.at * shell.m4: Rename as... 2000-10-26 09:52:34 +00:00
tools.at * shell.m4: Rename as... 2000-10-26 09:52:34 +00:00
torture.at * shell.m4: Rename as... 2000-10-26 09:52:34 +00:00
update.at * shell.m4: Rename as... 2000-10-26 09:52:34 +00:00

							-*- outline -*-

This directory holds the M4sugar, M4sh and Autoconf test suites.

Here are a few rules on how to write tests.

* Autoconf

** Use of `exit'
Don't directly `exit 1' or `exit 77', rather use `AC_MSG_ERROR'.
First of all because when we have to read the test suite logs we are
happy to know why `configure' exited thanks to the error
message. Secondly, because `configure' traps the `exit' and pretty
many shells fail to set $? to 77 when trapping `exit 77'.  This
results in the test suite not being able to check the exit status.

** AC_MSG_ERROR
Of course, since macro names are forbidden in `configure', if you
really want to mention the macro name, you'll have to do without
including `A?_' in the output.