CI: ulib: Test building examples separately

Check that it is possible to build the ulib examples separately from
the U-Boot build.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-05 14:10:03 -06:00
parent f2c378f0f9
commit 2ef780151b

View File

@@ -337,6 +337,26 @@ Check packing of Python tools:
script:
- make pip
Examples:
extends: .test_suites
script:
- git config --global user.name "GitLab CI Runner";
git config --global user.email trini@konsulko.com;
git config --global --add safe.directory "${CI_PROJECT_DIR}";
export USER=gitlab;
export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox;
set +e;
./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w
--board sandbox;
set -e;
- echo "Building examples";
cd examples/ulib;
make UBOOT_BUILD=${UBOOT_TRAVIS_BUILD_DIR} srctree=../..
- echo "Running static";
./demo_static
- echo "Running dynamic";
LD_LIBRARY_PATH=${UBOOT_TRAVIS_BUILD_DIR} ./demo
# Template for running the 'make check' tools
.python_check_template:
stage: test.py