diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-15 14:16:00 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-11 12:22:35 -0500 |
commit | 9cea4797aebcf952c95b503fc7aa6f1d422552bc (patch) | |
tree | 34cb5bb729f23ef332a0b9436841b8df0038c131 /.gitlab-ci.yml | |
parent | 71d3e7949c652b87c33193ccbed36b9887c5b5c2 (diff) | |
download | u-boot-9cea4797aebcf952c95b503fc7aa6f1d422552bc.tar.gz u-boot-9cea4797aebcf952c95b503fc7aa6f1d422552bc.tar.bz2 u-boot-9cea4797aebcf952c95b503fc7aa6f1d422552bc.zip |
trace: Add a test
Add a test which runs sandbox, collects a trace and makes sure it can
be processed by trace-cmd. This should ensure that this feature continues
to work as U-Boot and trace-cmd evolve.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aaf9d25abf..382cb90045 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,6 +35,9 @@ stages: # If we've been asked to use clang only do one configuration. - export UBOOT_TRAVIS_BUILD_DIR=/tmp/${TEST_PY_BD} - echo BUILD_ENV ${BUILD_ENV} + - if [ -n "${BUILD_ENV}" ]; then + export ${BUILD_ENV}; + fi - tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e --board ${TEST_PY_BD} ${OVERRIDE} - cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/ @@ -268,6 +271,15 @@ sandbox_vpl test.py: TEST_PY_TEST_SPEC: "test_vpl_help or test_spl" <<: *buildman_and_testpy_dfn +# Enable tracing and disable LTO, to ensure functions are not elided +sandbox trace_test.py: + variables: + TEST_PY_BD: "sandbox" + BUILD_ENV: "FTRACE=1 NO_LTO=1" + TEST_PY_TEST_SPEC: "trace" + OVERRIDE: "-a CONFIG_TRACE=y -a CONFIG_TRACE_EARLY=y -a CONFIG_TRACE_EARLY_SIZE=0x01000000" + <<: *buildman_and_testpy_dfn + evb-ast2500 test.py: variables: TEST_PY_BD: "evb-ast2500" |