14408 |
expansion. The contents ought to end with an end of line. |
expansion. The contents ought to end with an end of line. |
14409 |
@end defmac |
@end defmac |
14410 |
|
|
14411 |
@defmac AT_CHECK (@var{commands}, @dvar{status, @samp{0}}, @dvar{stdout, @samp{}}, @dvar{stderr, @samp{}}) |
@defmac AT_CHECK (@var{commands}, @dvar{status, @samp{0}}, @dvar{stdout, @samp{}}, @dvar{stderr, @samp{}}, @ovar{run-if-fail}, @ovar{run-if-pass}) |
14412 |
@atindex CHECK |
@atindex CHECK |
14413 |
Execute a test by performing given shell @var{commands}. These commands |
Execute a test by performing given shell @var{commands}. These commands |
14414 |
should normally exit with @var{status}, while producing expected |
should normally exit with @var{status}, while producing expected |
14415 |
@var{stdout} and @var{stderr} contents. If @var{commands} exit with |
@var{stdout} and @var{stderr} contents. If @var{commands} exit with |
14416 |
status 77, then the whole test group is skipped. |
status 77, then the whole test group is skipped. Otherwise, if this test |
14417 |
|
fails, run shell commands @var{run-if-fail} or, if this test passes, run shell |
14418 |
|
commands @var{run-if-pass}. |
14419 |
|
|
14420 |
The @var{commands} @emph{must not} redirect the standard output, nor the |
The @var{commands} @emph{must not} redirect the standard output, nor the |
14421 |
standard error. |
standard error. |