[U-Boot] [PATCH 0/4] Improve/fix tests for commands and trace

Simon Glass sjg at chromium.org
Thu Jun 5 20:27:48 CEST 2014


A recent bug reported showed that the built-in CLI was not correctly
handling repeatable commands. A recent series fixes this.

http://patchwork.ozlabs.org/patch/356568/
http://patchwork.ozlabs.org/patch/356569/
http://patchwork.ozlabs.org/patch/356507/

Add a simple test for this. At present we require sandbox's config
to be changed to use the hush or the simple parser. In the fullness of
time when the parser code allows both to be compiled in, we may be able
to adjust the test to do both tests.

In order to make this work, we need to skip Ctrl-C in sandbox, so add a
CONFIG option and environment variable to deal with this.

The trace test is broken due a change done as part of the Kbuild work, so
rename that also.


Simon Glass (4):
  Reactivate the tracing feature
  Add ctrlc_ignore environment variable to ignore Ctrl-C
  test: Remove tabs from trace test
  test: Add a test for command repeat

 README                    |  3 +++
 common/console.c          | 28 ++++++++++++++++++++++------
 config.mk                 |  4 ++++
 include/configs/sandbox.h |  1 +
 include/env_callback.h    |  7 +++++++
 test/cmd_repeat.sh        | 29 +++++++++++++++++++++++++++++
 test/common.sh            | 20 ++++++++++++++++++++
 test/trace/test-trace.sh  | 42 ++++++++++++++----------------------------
 8 files changed, 100 insertions(+), 34 deletions(-)
 create mode 100755 test/cmd_repeat.sh
 create mode 100644 test/common.sh

-- 
2.0.0.526.g5318336



More information about the U-Boot mailing list