]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Merge patch series "binman: Check code-coverage requirements"
authorTom Rini <trini@konsulko.com>
Fri, 11 Apr 2025 20:32:02 +0000 (14:32 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 11 Apr 2025 22:47:29 +0000 (16:47 -0600)
Simon Glass <sjg@chromium.org> says:

This series adds a cover-coverage check to CI for Binman. The iMX8 tests
are still not completed, so a work-around is included for those.

A few fixes are included for some other problems.

Link: https://lore.kernel.org/r/20250410124333.843527-1-sjg@chromium.org
1  2 
.azure-pipelines.yml
.gitlab-ci.yml

index e5a7ce9383712fcb95e6a98158e68700c523e529,4496506289bca55c3497ab8f17f889701318c2d2..cb787d32f1422050ec545eb622a854dc86ea1d6c
@@@ -144,8 -144,10 +144,11 @@@ stages
            export PATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}
            ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w --board tools-only
            set -ex
-           ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools tool -f missing
-           ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test
+           export TOOLPATH="--toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools --toolpath /opt/coreboot"
++          ./tools/binman/binman ${TOOLPATH} tool -f missing
+           ./tools/binman/binman ${TOOLPATH} test
+           # Avoid "Permission denied: 'cov'" error by using a temporary file
+           COVERAGE_FILE=/tmp/.coverage ./tools/binman/binman ${TOOLPATH} test -T
            ./tools/buildman/buildman -t
            ./tools/dtoc/dtoc -t
            ./tools/patman/patman test
diff --cc .gitlab-ci.yml
index 2159eaf13ded7721859defc073a4f5c243ad8a9d,94ca2c0f4a204ef95c0ea27314384402fb836014..5f3418e482fe46c2f1a91bb48a88a1dab4b333fe
@@@ -196,8 -196,9 +196,10 @@@ Run binman, buildman, dtoc, Kconfig an
        ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w
          --board tools-only;
        set -e;
-       ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools tool -f missing;
-       ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test;
+       export TOOLPATH="--toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools --toolpath /opt/coreboot";
++      ./tools/binman/binman ${TOOLPATH} tool -f missing;
+       ./tools/binman/binman ${TOOLPATH} test;
+       ./tools/binman/binman ${TOOLPATH} test -T;
        ./tools/buildman/buildman -t;
        ./tools/dtoc/dtoc -t;
        ./tools/patman/patman test;