vpl: Correct some tests
cover vpl: Correct some tests
It was reported that one of the VPL tests does not work. The problem turned out to be a leftover symlink that I had which made things work locally. This was not noticed in CI since the tests did not run there either.
This little series fixes these problems.
Simon Glass (3):
vbe: Use the correct image filename in the test
CI: Ensure that vpl test is run
test: Run the VPL tests with 'make check'
.azure-pipelines.yml | 2 +- .gitlab-ci.yml | 2 +- test/py/tests/test_vbe_vpl.py | 6 ++++-- test/run | 5 +++++ 4 files changed, 11 insertions(+), 4 deletions(-)
Signature · 1 line
2.39.2.722.g9855ee24e9-goog
PATCH 1/3 vbe: Use the correct image filename in the test
At present this inadvertently relies on having a symlink to the correct file from the current directory. Use the correct path to fix this.
---
test/py/tests/test_vbe_vpl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
test/py/tests/test_vbe_vpl.py +4 -2
@@ -15,6 +15,7 @@ def test_vbe_vpl(u_boot_console): #cmd = [cons.config.build_dir + fname, '-v'] ram = os.path.join(cons.config.build_dir, 'ram.bin') fdt = os.path.join(cons.config.build_dir, 'arch/sandbox/dts/test.dtb') + image_fname = os.path.join(cons.config.build_dir, 'image.bin') # Enable firmware1 and the mmc that it uses. These are needed for the full # VBE flow.
@@ -24,12 +25,13 @@ def test_vbe_vpl(u_boot_console): cons, f'fdtput -t s {fdt} /bootstd/firmware1 status okay') u_boot_utils.run_and_log( cons, f'fdtput -t s {fdt} /mmc3 status okay') + u_boot_utils.run_and_log( + cons, f'fdtput -t s {fdt} /mmc3 filename {image_fname}') # Remove any existing RAM file, so we don't have old data present if os.path.exists(ram): os.remove(ram) - flags = ['-p', os.path.join(cons.config.build_dir, 'image.bin'), '-w', - '-s', 'state.dtb'] + flags = ['-p', image_fname, '-w', '-s', 'state.dtb'] cons.restart_uboot_with_flags(flags) # Make sure that VBE was used in both VPL (to load SPL) and SPL (to load
Signature · 1 line
2.39.2.722.g9855ee24e9-goog
PATCH 2/3 CI: Ensure that vpl test is run
In reply to Simon GlassThis is actually skipped at present due to the condition in the file. Fix this by running all vpl tests.
---
.azure-pipelines.yml | 2 +- .gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
.azure-pipelines.yml +1 -1
@@ -253,7 +253,7 @@ stages: TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl" sandbox_vpl: TEST_PY_BD: "sandbox_vpl" - TEST_PY_TEST_SPEC: "test_vpl_help or test_spl" + TEST_PY_TEST_SPEC: "vpl or test_spl" sandbox_noinst: TEST_PY_BD: "sandbox_noinst" TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
.gitlab-ci.yml +1 -1
@@ -284,7 +284,7 @@ sandbox_noinst_test.py: sandbox_vpl test.py: variables: TEST_PY_BD: "sandbox_vpl" - TEST_PY_TEST_SPEC: "test_vpl_help or test_spl" + TEST_PY_TEST_SPEC: "vpl or test_spl" <<: *buildman_and_testpy_dfn # Enable tracing and disable LTO, to ensure functions are not elided
Signature · 1 line
2.39.2.722.g9855ee24e9-goog
Re: [PATCH 2/3] CI: Ensure that vpl test is run
Quoted 9 lines · Simon Glass
This is actually skipped at present due to the condition in the file. Fix this by running all vpl tests.
Signed-off-by Simon Glass <[email protected]>---
.azure-pipelines.yml | 2 +- .gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
This fails:
https://source.denx.de/u-boot/u-boot/-/jobs/598435
Signature · 1 line
Tom
PATCH 3/3 test: Run the VPL tests with 'make check'
In reply to Simon GlassUpdate the script to run VPL tests as well as the others.
---
test/run | 5 +++++ 1 file changed, 5 insertions(+)
test/run +5 -0
@@ -56,6 +56,11 @@ echo "${prompt}" run_test "sandbox_noinst" ./test/py/test.py --bd sandbox_noinst --build ${para} \ -k 'test_ofplatdata or test_handoff or test_spl' +# Run tests which require sandbox_vpl +echo "${prompt}" +run_test "sandbox_vpl" ./test/py/test.py --bd sandbox_vpl --build ${para} \ + -k 'vpl or test_spl' + if [ -z "$tools_only" ]; then # Run tests for the flat-device-tree version of sandbox. This is a special # build which does not enable CONFIG_OF_LIVE for the live device tree, so we can
Signature · 1 line
2.39.2.722.g9855ee24e9-goog