mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 16:35:37 +00:00
ci: Add a test for a non-LTO build
Check that sandbox builds and runs tests OK with LTO disabled. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a55014d09b
commit
1aa168ca8f
2 changed files with 11 additions and 0 deletions
|
@ -243,6 +243,9 @@ stages:
|
||||||
sandbox_clang:
|
sandbox_clang:
|
||||||
TEST_PY_BD: "sandbox"
|
TEST_PY_BD: "sandbox"
|
||||||
OVERRIDE: "-O clang-13"
|
OVERRIDE: "-O clang-13"
|
||||||
|
sandbox_nolto:
|
||||||
|
TEST_PY_BD: "sandbox"
|
||||||
|
BUILD_ENV: "NO_LTO=1"
|
||||||
sandbox_spl:
|
sandbox_spl:
|
||||||
TEST_PY_BD: "sandbox_spl"
|
TEST_PY_BD: "sandbox_spl"
|
||||||
TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
|
TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
|
||||||
|
@ -354,6 +357,7 @@ stages:
|
||||||
export TEST_PY_ID="${TEST_PY_ID}"
|
export TEST_PY_ID="${TEST_PY_ID}"
|
||||||
export TEST_PY_TEST_SPEC="${TEST_PY_TEST_SPEC}"
|
export TEST_PY_TEST_SPEC="${TEST_PY_TEST_SPEC}"
|
||||||
export OVERRIDE="${OVERRIDE}"
|
export OVERRIDE="${OVERRIDE}"
|
||||||
|
export BUILD_ENV="${BUILD_ENV}"
|
||||||
EOF
|
EOF
|
||||||
cat << "EOF" >> test.sh
|
cat << "EOF" >> test.sh
|
||||||
# the below corresponds to .gitlab-ci.yml "before_script"
|
# the below corresponds to .gitlab-ci.yml "before_script"
|
||||||
|
|
|
@ -33,6 +33,7 @@ stages:
|
||||||
script:
|
script:
|
||||||
# If we've been asked to use clang only do one configuration.
|
# If we've been asked to use clang only do one configuration.
|
||||||
- export UBOOT_TRAVIS_BUILD_DIR=/tmp/${TEST_PY_BD}
|
- export UBOOT_TRAVIS_BUILD_DIR=/tmp/${TEST_PY_BD}
|
||||||
|
- echo BUILD_ENV ${BUILD_ENV}
|
||||||
- tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e
|
- tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e
|
||||||
--board ${TEST_PY_BD} ${OVERRIDE}
|
--board ${TEST_PY_BD} ${OVERRIDE}
|
||||||
- cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/
|
- cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/
|
||||||
|
@ -254,6 +255,12 @@ sandbox with clang test.py:
|
||||||
OVERRIDE: "-O clang-13"
|
OVERRIDE: "-O clang-13"
|
||||||
<<: *buildman_and_testpy_dfn
|
<<: *buildman_and_testpy_dfn
|
||||||
|
|
||||||
|
sandbox without LTO test.py:
|
||||||
|
variables:
|
||||||
|
TEST_PY_BD: "sandbox"
|
||||||
|
BUILD_ENV: "NO_LTO=1"
|
||||||
|
<<: *buildman_and_testpy_dfn
|
||||||
|
|
||||||
sandbox_spl test.py:
|
sandbox_spl test.py:
|
||||||
variables:
|
variables:
|
||||||
TEST_PY_BD: "sandbox_spl"
|
TEST_PY_BD: "sandbox_spl"
|
||||||
|
|
Loading…
Add table
Reference in a new issue