]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Simplify handling of autotest tracing
authorPaolo Bonzini <bonzini@gnu.org>
Sun, 12 Jul 2009 10:58:36 +0000 (12:58 +0200)
committerPaolo Bonzini <bonzini@gnu.org>
Sun, 12 Jul 2009 18:12:14 +0000 (20:12 +0200)
commit48e64006cefb6a583fd332947493313d63676622
tree81b443667570359744ca9e74bed0f58a306ef9fa
parent967cf4d2820b508a84c0ba1fab49b63fce82d6ee
Simplify handling of autotest tracing

This patch simplifies at_fn_check_prepare_trace by noting that it
need not call at_fn_check_prepare_notrace.  Instead we can make
$at_traceon be ':' or 'set -x' instead of being empty when tracing
is disabled.

A similar approach is used for other variables set by
at_fn_check_prepare_trace and to conditionalize the message
about disabling tracing in at_fn_check_prepare_dynamic.

In addition, I changed $at_traceoff to 'set +x' throughout and
eliminated the variable.

2009-07-12  Paolo Bonzini  <bonzini@gnu.org>

* lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
$at_trace_echo.  Add new REASON argument.
(at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
Use $at_check_filter_trace.
(at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
(at_traceon): Initialize to ':'.
(at_traceoff): Remove, use 'set -x' instead throughout.
(at_check_filter_trace, at_trace_echo): New shell variables.
Initialize them if tracing is requested.
(_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.
lib/autotest/general.m4