public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/14] test/py: Convert vboot tests to use the test/py framework
@ 2016-07-03 15:40 Simon Glass
  2016-07-03 15:40 ` [U-Boot] [PATCH 01/14] test: Add a README Simon Glass
                   ` (13 more replies)
  0 siblings, 14 replies; 52+ messages in thread
From: Simon Glass @ 2016-07-03 15:40 UTC (permalink / raw)
  To: u-boot

There are a number of tests which still exist as shell scripts in U-Boot.
This series converts the vboot test over, adding some functionality to the
test environment as needed.

A few minor changes are made to the vboot test as part of this:
- fit_check_sign is used to check that an invalid signature is detected.
  Previously only the valid case was checked
- Sandbox is adjusted to return normally from a bootm command, instead of
  exiting. This makes the test easier to write and seems more consistent.

One observation about the test/py code. I feel it is confusing that the
classes for running U-Boot commands and shell commands are named in a
similar way. I would suggest renaming u_boot_utils to test_utils, or
similar.


Simon Glass (14):
  test: Add a README
  test: Add a simple script to run tests on sandbox
  sandbox: Don't exit when bootm completes
  test/py: Allow tests to control the sandbox device-tree file
  test/py: Allow RunAndLog() to return the output
  test/py: Provide output from exceptions with RunAndLog()
  test/py: Return output from run_and_log()
  test/py: Add an option to execute a string containing a command
  test/py: Provide a way to check that a command fails
  test/py: Add a helper to run a list of U-Boot commands
  tools: Add an error code when fit_handle_file() fails
  tools: Correct error handling in fit_image_process_hash()
  test/py: Fix up after the rename of CONFIG_SYS_HUSH_PARSER
  test: Convert the vboot test to test/py

 arch/sandbox/lib/bootm.c                          |   2 +-
 common/bootm_os.c                                 |   1 +
 test/README                                       |  92 +++++++++++
 test/py/conftest.py                               |   1 +
 test/py/multiplexed_log.py                        |  10 +-
 test/py/tests/test_hush_if_test.py                |   8 +-
 test/py/tests/test_vboot.py                       | 185 ++++++++++++++++++++++
 test/{ => py/tests}/vboot/sandbox-kernel.dts      |   0
 test/{ => py/tests}/vboot/sandbox-u-boot.dts      |   0
 test/{ => py/tests}/vboot/sign-configs-sha1.its   |   0
 test/{ => py/tests}/vboot/sign-configs-sha256.its |   0
 test/{ => py/tests}/vboot/sign-images-sha1.its    |   0
 test/{ => py/tests}/vboot/sign-images-sha256.its  |   0
 test/py/u_boot_console_base.py                    |  16 ++
 test/py/u_boot_console_sandbox.py                 |   2 +-
 test/py/u_boot_utils.py                           |  39 ++++-
 test/run                                          |   4 +
 test/vboot/.gitignore                             |   3 -
 test/vboot/vboot_test.sh                          | 151 ------------------
 tools/fit_image.c                                 |   4 +-
 tools/image-host.c                                |  14 +-
 21 files changed, 361 insertions(+), 171 deletions(-)
 create mode 100644 test/README
 create mode 100644 test/py/tests/test_vboot.py
 rename test/{ => py/tests}/vboot/sandbox-kernel.dts (100%)
 rename test/{ => py/tests}/vboot/sandbox-u-boot.dts (100%)
 rename test/{ => py/tests}/vboot/sign-configs-sha1.its (100%)
 rename test/{ => py/tests}/vboot/sign-configs-sha256.its (100%)
 rename test/{ => py/tests}/vboot/sign-images-sha1.its (100%)
 rename test/{ => py/tests}/vboot/sign-images-sha256.its (100%)
 create mode 100755 test/run
 delete mode 100644 test/vboot/.gitignore
 delete mode 100755 test/vboot/vboot_test.sh

-- 
2.8.0.rc3.226.g39d4020

^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~2016-07-16 13:50 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-03 15:40 [U-Boot] [PATCH 00/14] test/py: Convert vboot tests to use the test/py framework Simon Glass
2016-07-03 15:40 ` [U-Boot] [PATCH 01/14] test: Add a README Simon Glass
2016-07-03 20:17   ` Teddy Reed
2016-07-03 21:16     ` Simon Glass
2016-07-16 13:49   ` [U-Boot] [U-Boot,01/14] " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 02/14] test: Add a simple script to run tests on sandbox Simon Glass
2016-07-03 20:41   ` Teddy Reed
2016-07-16 13:49   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 03/14] sandbox: Don't exit when bootm completes Simon Glass
2016-07-03 20:31   ` Teddy Reed
2016-07-16 13:49   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 04/14] test/py: Allow tests to control the sandbox device-tree file Simon Glass
2016-07-03 20:18   ` Teddy Reed
2016-07-16 13:49   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 05/14] test/py: Allow RunAndLog() to return the output Simon Glass
2016-07-03 20:43   ` Teddy Reed
2016-07-16 13:49   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 06/14] test/py: Provide output from exceptions with RunAndLog() Simon Glass
2016-07-03 20:49   ` Teddy Reed
2016-07-16 13:49   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 07/14] test/py: Return output from run_and_log() Simon Glass
2016-07-03 21:08   ` Teddy Reed
2016-07-16 13:49   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 08/14] test/py: Add an option to execute a string containing a command Simon Glass
2016-07-03 20:25   ` Teddy Reed
2016-07-07 17:02   ` Stephen Warren
2016-07-07 17:07   ` Stephen Warren
2016-07-16 13:50   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 09/14] test/py: Provide a way to check that a command fails Simon Glass
2016-07-03 21:06   ` Teddy Reed
2016-07-07 17:03   ` Stephen Warren
2016-07-16 13:50   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 10/14] test/py: Add a helper to run a list of U-Boot commands Simon Glass
2016-07-03 21:12   ` Teddy Reed
2016-07-16 13:50   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-16 13:50   ` Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 11/14] tools: Add an error code when fit_handle_file() fails Simon Glass
2016-07-03 20:09   ` Teddy Reed
2016-07-16 13:50   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 12/14] tools: Correct error handling in fit_image_process_hash() Simon Glass
2016-07-03 21:16   ` Teddy Reed
2016-07-16 13:50   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 13/14] test/py: Fix up after the rename of CONFIG_SYS_HUSH_PARSER Simon Glass
2016-07-03 21:13   ` Teddy Reed
2016-07-07 17:12   ` Stephen Warren
2016-07-16 13:50   ` [U-Boot] [U-Boot, " Tom Rini
2016-07-03 15:40 ` [U-Boot] [PATCH 14/14] test: Convert the vboot test to test/py Simon Glass
2016-07-03 21:38   ` Teddy Reed
2016-07-03 23:19     ` Simon Glass
2016-07-07 18:01     ` Stephen Warren
2016-07-07 18:00   ` Stephen Warren
2016-07-16 13:50   ` [U-Boot] [U-Boot, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox