13690 |
hierarchy: the test suite ought to be shipped! |
hierarchy: the test suite ought to be shipped! |
13691 |
|
|
13692 |
@item |
@item |
13693 |
@c FIXME: This macro should become part of Autoconf. AC_AUTOTEST_PATH? |
Invoke @code{AC_CONFIG_TESTDIR}. |
13694 |
Use the @code{AT_CONFIG} macro from within file @file{configure.ac}. |
|
13695 |
This macro accepts one argument, which is the directory, relative to the |
@defmac AC_CONFIG_TESTDIR (@var{directory}, @dvar{test-path, @var{directory}}) |
13696 |
test directory, where the executables are prepared. |
@acindex CONFIG_TESTDIR |
13697 |
|
An Autotest test suite is to be configured in @var{directory}. This |
13698 |
|
macro requires the instanciation of @file{@var{directory}/atconfig} from |
13699 |
|
@file{@var{directory}/atconfig.in}, and sets the default |
13700 |
|
@code{AUTOTEST_PATH} to @var{test-path} (@pxref{testsuite Invocation}). |
13701 |
|
@end defmac |
13702 |
|
|
13703 |
@item |
@item |
13704 |
Still within @file{configure.ac}, ensure that some |
Still within @file{configure.ac}, as appropriate, ensure that some |
13705 |
@code{AC_CONFIG_FILES} command includes substitution for |
@code{AC_CONFIG_FILES} command includes substitution for |
13706 |
@file{tests/atconfig} and also, as appropriate, @file{tests/atlocal}. |
@file{tests/atlocal}. |
13707 |
|
|
13708 |
@item |
@item |
13709 |
The @file{tests/Makefile.in} should be modified so the validation in |
The @file{tests/Makefile.in} should be modified so the validation in |
13710 |
your package is triggered by @samp{make check}. An example is provided |
your package is triggered by @samp{make check}. An example is provided |
13711 |
below. |
below. |
|
|
|
13712 |
@end itemize |
@end itemize |
13713 |
|
|
13714 |
With Automake, here is a minimal example about how to link @samp{make |
With Automake, here is a minimal example about how to link @samp{make |