
From: Simon Glass <sjg@chromium.org> There are quite a few test images created by the test system. Most are needed for bootstd tests. At present these are created by a test, called test_ut_dm_init_bootstd() which runs before the test_ut() tests. This means that it is possible to create the images once, then iterate on a test without the images being recreated each time. While this is not a terrible approach, it does have some drawbacks: - If an image is missing or corrupted for some reason, the test fails - The relationship between the images and the tests is not obvious - Images are often created even if the tests to be run do not need them Overall, it seems worthwhile to explore moving to using a fixture for the images. Another problem is that 'make qcheck' and 'make pcheck' are not tested in CI, so can break over time. The latter is a good way of seeing whether each test is independent, e.g. not reliant on files created by another test. Overall this area of U-Boot could use some attention. This series makes a very small start on this: - Update test_fdt_add_pubkey() to work without test_vboot_base() - Fix 'make qcheck' so that it passes - Minor fixes to a few tests - Pass separate fixtures to the image-setup functions instead of the overall ubman fixture Simon Glass (19): test: Disable LTO with make qcheck test: vbe: Free the bootflow after use test: vbe: Avoid using fdt_util to compile a devicetree test: Mark the sleep tests as slow test: Correct implementation of Spawn() in ConsoleSandbox test: Move create_rsa_pair() out of test_vboot_base() test: Update test_fdt_add_pubkey() to create its own files test/py: Provide a run_and_log() function that uses log test/py: Update setup_bootmenu_image() to avoid ubman test/py: Update setup_extlinux_image() to avoid ubman test/py: Update setup_fedora_image() to avoid ubman test/py: Update setup_ubuntu_image() to avoid ubman test/py: Update setup_cros_image() to avoid ubman test/py: Update setup_android_image() to avoid ubman test/py: Update setup_efi_image() to avoid ubman test/py: Update setup_cedit_file() to avoid ubman test/py: Update setup_localboot_image() to avoid ubman test/py: Update setup_vbe_image() to avoid ubman test/py: Update test_ut_dm_init_bootstd() to avoid ubman test/boot/vbe_abrec_os.c | 1 + test/py/console_sandbox.py | 2 +- test/py/tests/img/vbe.py | 57 ++--- test/py/tests/test_android/test_abootimg.py | 37 ++-- test/py/tests/test_sleep.py | 2 + test/py/tests/test_ut.py | 234 +++++++++++--------- test/py/tests/test_vboot.py | 70 +++--- test/py/utils.py | 42 +++- test/run | 3 + 9 files changed, 268 insertions(+), 180 deletions(-) -- 2.43.0 base-commit: a633c1d1d2a75ff85620747454847aa87976b897 branch: makea