blob: d91e9e3ff43a1f5625788370bce80a94835ed125 [file] [log] [blame]
Tom Rinid2244b92019-06-19 09:25:17 -04001# SPDX-License-Identifier: GPL-2.0+
2
Peter Hoyesb0722af2023-03-10 09:53:02 +00003variables:
Tom Rinif9d00182024-12-08 11:07:26 -06004 DEFAULT_ALL_TAG: "all"
5 DEFAULT_ARM64_TAG: "arm64"
6 DEFAULT_AMD64_TAG: "amd64"
7 DEFAULT_FAST_AMD64_TAG: "fast amd64"
Peter Hoyes08ed84e2023-03-10 09:53:03 +00008 MIRROR_DOCKER: docker.io
Simon Glass42f0dd02024-11-12 07:13:26 -07009 SJG_LAB: ""
Simon Glass7c24c042024-11-27 11:17:30 -060010 PLATFORM: linux/amd64,linux/arm64
Peter Hoyesb0722af2023-03-10 09:53:02 +000011
12default:
13 tags:
Tom Rinif9d00182024-12-08 11:07:26 -060014 - ${DEFAULT_ALL_TAG}
Peter Hoyesb0722af2023-03-10 09:53:02 +000015
Tom Rini91aafa22024-12-08 11:07:27 -060016workflow:
17 rules:
18 - when: always
19
Joel Stanleyb97c1d42022-08-23 16:18:26 +100020# Grab our configured image. The source for this is found
21# in the u-boot tree at tools/docker/Dockerfile
Tom Rini344bdb12024-12-08 11:07:32 -060022image: ${MIRROR_DOCKER}/trini/u-boot-gitlab-ci-runner:jammy-20240911.1-08Dec2024
Tom Rinid2244b92019-06-19 09:25:17 -040023
24# We run some tests in different order, to catch some failures quicker.
25stages:
Tom Rinid2244b92019-06-19 09:25:17 -040026 - testsuites
Tom Rini1cdb1822019-07-24 13:09:31 -040027 - test.py
Simon Glass42f0dd02024-11-12 07:13:26 -070028 - sjg-lab
Tom Rinid2244b92019-06-19 09:25:17 -040029 - world build
30
31.buildman_and_testpy_template: &buildman_and_testpy_dfn
Tom Rinid2244b92019-06-19 09:25:17 -040032 stage: test.py
Tom Rini6acc0192023-07-11 22:33:03 -040033 retry: 2 # QEMU may be too slow, etc.
Tom Rinicca4d302024-12-12 14:14:59 -060034 needs: [ "Run binman, buildman, dtoc, Kconfig and patman testsuites" ]
Tom Rinid2244b92019-06-19 09:25:17 -040035 before_script:
36 # Clone uboot-test-hooks
Tom Rinie0f979b2022-11-21 12:52:40 -050037 - git config --global --add safe.directory "${CI_PROJECT_DIR}"
Tom Rini2a1df582021-02-24 17:05:04 -050038 - git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks
Jerome Forissierde134d92024-10-16 12:04:14 +020039 # qemu_arm64_lwip_defconfig is the same as qemu_arm64 but with NET_LWIP enabled.
40 # The test config and the boardenv file from qemu_arm64 can be re-used so create symlinks
41 - ln -s conf.qemu_arm64_na /tmp/uboot-test-hooks/bin/travis-ci/conf.qemu_arm64_lwip_na
Tom Rinid2244b92019-06-19 09:25:17 -040042 - ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
43 - ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
Bin Mengb68d9d62020-03-28 07:25:29 -070044 - if [[ "${TEST_PY_BD}" == "qemu-riscv32_spl" ]]; then
Heinrich Schuchardt29999e42023-10-25 00:15:43 +020045 wget -O - https://github.com/riscv-software-src/opensbi/releases/download/v1.3.1/opensbi-1.3.1-rv-bin.tar.xz | tar -C /tmp -xJ;
46 export OPENSBI=/tmp/opensbi-1.3.1-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin;
Bin Mengb68d9d62020-03-28 07:25:29 -070047 fi
Bin Meng0ae41062021-08-26 23:33:35 +080048 - if [[ "${TEST_PY_BD}" == "qemu-riscv64_spl" ]] || [[ "${TEST_PY_BD}" == "sifive_unleashed" ]]; then
Heinrich Schuchardt29999e42023-10-25 00:15:43 +020049 wget -O - https://github.com/riscv-software-src/opensbi/releases/download/v1.3.1/opensbi-1.3.1-rv-bin.tar.xz | tar -C /tmp -xJ;
50 export OPENSBI=/tmp/opensbi-1.3.1-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin;
Bin Mengb68d9d62020-03-28 07:25:29 -070051 fi
Patrick Rudolphd67a7422024-10-23 15:20:20 +020052 - if [[ "${TEST_PY_BD}" == "qemu-arm-sbsa" ]]; then
53 wget -O /tmp/bl1.bin https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/latest/tf-a/bl1.bin;
54 wget -O /tmp/fip.bin https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/latest/tf-a/fip.bin;
Tom Rini8fa34f02024-10-27 17:14:22 -060055 export BINMAN_INDIRS=/tmp;
Patrick Rudolphd67a7422024-10-23 15:20:20 +020056 fi
Tom Rini1cdb1822019-07-24 13:09:31 -040057
Tom Rinid2244b92019-06-19 09:25:17 -040058 after_script:
Tom Rini792dbc32024-06-27 07:43:20 -060059 - cp -v /tmp/${TEST_PY_BD}/*.{html,css,xml} .
Heinrich Schuchardt159b0ab2019-12-19 13:30:32 +010060 - rm -rf /tmp/uboot-test-hooks /tmp/venv
Tom Rinid2244b92019-06-19 09:25:17 -040061 script:
Simon Glassda499352020-03-18 09:42:57 -060062 # If we've been asked to use clang only do one configuration.
Simon Glass28d83e72020-03-18 09:42:55 -060063 - export UBOOT_TRAVIS_BUILD_DIR=/tmp/${TEST_PY_BD}
Simon Glass2e32f5d2022-08-03 12:13:09 -060064 - echo BUILD_ENV ${BUILD_ENV}
Simon Glassc2f01902023-01-15 14:16:00 -070065 - if [ -n "${BUILD_ENV}" ]; then
66 export ${BUILD_ENV};
67 fi
Simon Glass87c80462020-03-18 09:43:00 -060068 - tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e
69 --board ${TEST_PY_BD} ${OVERRIDE}
Tom Rinie8403a92024-11-27 11:17:24 -060070 - cp /opt/grub/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/
71 - cp /opt/grub/grub_x64.efi $UBOOT_TRAVIS_BUILD_DIR/
Heinrich Schuchardtba0ae212020-07-14 00:23:58 +020072 - cp /opt/grub/grubriscv64.efi $UBOOT_TRAVIS_BUILD_DIR/grub_riscv64.efi
Heinrich Schuchardtba0ae212020-07-14 00:23:58 +020073 - cp /opt/grub/grubaa64.efi $UBOOT_TRAVIS_BUILD_DIR/grub_arm64.efi
74 - cp /opt/grub/grubarm.efi $UBOOT_TRAVIS_BUILD_DIR/grub_arm.efi
Bin Meng0ae41062021-08-26 23:33:35 +080075 # create sdcard / spi-nor images for sifive unleashed using genimage
76 - if [[ "${TEST_PY_BD}" == "sifive_unleashed" ]]; then
77 mkdir -p root;
78 cp ${UBOOT_TRAVIS_BUILD_DIR}/spl/u-boot-spl.bin .;
79 cp ${UBOOT_TRAVIS_BUILD_DIR}/u-boot.itb .;
80 rm -rf tmp;
81 genimage --inputpath . --config board/sifive/unleashed/genimage_sdcard.cfg;
82 cp images/sdcard.img ${UBOOT_TRAVIS_BUILD_DIR}/;
83 rm -rf tmp;
84 genimage --inputpath . --config board/sifive/unleashed/genimage_spi-nor.cfg;
85 cp images/spi-nor.img ${UBOOT_TRAVIS_BUILD_DIR}/;
86 fi
Simon Glass13e1fa02022-01-21 10:23:01 -070087 - if [[ "${TEST_PY_BD}" == "coreboot" ]]; then
Tom Rinid0296f62024-02-13 09:39:27 -050088 cp /opt/coreboot/coreboot.rom ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom;
89 /opt/coreboot/cbfstool ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom remove -n fallback/payload;
90 /opt/coreboot/cbfstool ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom add-flat-binary -f ${UBOOT_TRAVIS_BUILD_DIR}/u-boot.bin -n fallback/payload -c LZMA -l 0x1110000 -e 0x1110000;
Simon Glass13e1fa02022-01-21 10:23:01 -070091 fi
Tom Riniebcd2142019-10-24 11:59:27 -040092 - virtualenv -p /usr/bin/python3 /tmp/venv
93 - . /tmp/venv/bin/activate
94 - pip install -r test/py/requirements.txt
Simon Glass2600f7e2020-03-18 09:42:56 -060095 # "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
Simon Glass28d83e72020-03-18 09:42:55 -060096 - export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
Tom Rinid2244b92019-06-19 09:25:17 -040097 export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
Heinrich Schuchardt2a3ec0a2020-07-10 22:04:40 +020098 ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID}
Simon Glass2600f7e2020-03-18 09:42:56 -060099 ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"}
Simon Glassfd0c59b2020-03-18 09:42:59 -0600100 --build-dir "$UBOOT_TRAVIS_BUILD_DIR"
Tom Rini792dbc32024-06-27 07:43:20 -0600101 --junitxml=/tmp/${TEST_PY_BD}/results.xml
Marek Vasutc1a44de2023-03-03 02:22:25 +0100102 artifacts:
103 when: always
104 paths:
105 - "*.html"
106 - "*.css"
Tom Rini792dbc32024-06-27 07:43:20 -0600107 reports:
108 junit: results.xml
Marek Vasutc1a44de2023-03-03 02:22:25 +0100109 expire_in: 1 week
Tom Rinid2244b92019-06-19 09:25:17 -0400110
Tom Rinif9d00182024-12-08 11:07:26 -0600111build all platforms in a single job:
Tom Rinid2244b92019-06-19 09:25:17 -0400112 stage: world build
Tom Rini93d12db2024-12-08 11:07:28 -0600113 dependencies: []
Tom Rinif9d00182024-12-08 11:07:26 -0600114 parallel:
115 matrix:
116 - HOST: "arm64"
117 - HOST: "fast amd64"
118 tags:
119 - ${HOST}
Tom Rini372c6972019-07-17 17:51:28 -0400120 script:
121 - ret=0;
Tom Rinie0f979b2022-11-21 12:52:40 -0500122 git config --global --add safe.directory "${CI_PROJECT_DIR}";
Tom Rini95f1c6cb2023-07-22 00:14:46 +0530123 pip install -r tools/buildman/requirements.txt;
Tom Rinif9d00182024-12-08 11:07:26 -0600124 ./tools/buildman/buildman -o /tmp -PEWM -x xtensa || ret=$?;
Simon Glassda499352020-03-18 09:42:57 -0600125 if [[ $ret -ne 0 ]]; then
Simon Glassad8eaed2020-03-18 09:42:53 -0600126 ./tools/buildman/buildman -o /tmp -seP;
Tom Rini70c63a52019-10-24 11:59:16 -0400127 exit $ret;
128 fi;
Tom Rini372c6972019-07-17 17:51:28 -0400129
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200130.testsuites:
Tom Rinibdfa3762021-12-14 13:36:41 -0500131 stage: testsuites
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200132
133check for new CONFIG symbols outside Kconfig:
134 extends: .testsuites
Tom Rinibdfa3762021-12-14 13:36:41 -0500135 script:
Tom Rini1cc7e4c2022-12-04 10:14:15 -0500136 - git config --global --add safe.directory "${CI_PROJECT_DIR}"
137 # If grep succeeds and finds a match the test fails as we should
138 # have no matches.
139 - git grep -E '^#[[:blank:]]*(define|undef)[[:blank:]]*CONFIG_'
Tom Rini8f7345c2023-01-10 11:19:46 -0500140 :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h
Raymond Maodc520542024-10-03 14:50:14 -0700141 :^include/linux/kconfig.h :^tools/ :^dts/upstream/
142 :^lib/mbedtls/external :^lib/mbedtls/mbedtls_def_config.h &&
Sumit Garg8d814682024-02-22 15:05:57 +0530143 exit 1 || exit 0
Tom Rinibdfa3762021-12-14 13:36:41 -0500144
Heinrich Schuchardt54de2412023-01-12 20:30:58 +0100145# build documentation
146docs:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200147 extends: .testsuites
Heinrich Schuchardtbccdb652020-02-21 18:24:01 +0100148 script:
Heinrich Schuchardt846abe42021-01-25 22:06:25 +0100149 - virtualenv -p /usr/bin/python3 /tmp/venvhtml
150 - . /tmp/venvhtml/bin/activate
151 - pip install -r doc/sphinx/requirements.txt
Heinrich Schuchardt2e0c8e62023-05-02 05:04:11 +0200152 - make htmldocs KDOC_WERROR=1
Heinrich Schuchardt54de2412023-01-12 20:30:58 +0100153 - make infodocs
Heinrich Schuchardtbccdb652020-02-21 18:24:01 +0100154
Tom Rinid2244b92019-06-19 09:25:17 -0400155# ensure all configs have MAINTAINERS entries
156Check for configs without MAINTAINERS entry:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200157 extends: .testsuites
Tom Rinid2244b92019-06-19 09:25:17 -0400158 script:
Tom Rinica00ac62023-10-23 11:37:47 -0400159 - ./tools/buildman/buildman --maintainer-check
Tom Rinid2244b92019-06-19 09:25:17 -0400160
161# Ensure host tools build
Tom Rini8244f002023-08-20 13:31:28 -0400162Build tools-only and envtools:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200163 extends: .testsuites
Tom Rinid2244b92019-06-19 09:25:17 -0400164 script:
Tom Rini8244f002023-08-20 13:31:28 -0400165 - make tools-only_config tools-only -j$(nproc);
166 make mrproper;
167 make tools-only_config envtools -j$(nproc)
Pierre-Jean Texier6812f5e2019-08-26 13:06:18 +0200168
Tom Rini0b3e0c42020-03-11 18:11:15 -0400169Run binman, buildman, dtoc, Kconfig and patman testsuites:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200170 extends: .testsuites
Tom Rinif9d00182024-12-08 11:07:26 -0600171 tags:
172 - ${DEFAULT_AMD64_TAG}
Tom Rinid2244b92019-06-19 09:25:17 -0400173 script:
Tom Rini0b6e1032019-08-12 10:09:08 -0400174 - git config --global user.name "GitLab CI Runner";
175 git config --global user.email trini@konsulko.com;
Tom Rinid1ed4462022-08-09 21:08:54 -0400176 git config --global --add safe.directory "${CI_PROJECT_DIR}";
Tom Rini0b6e1032019-08-12 10:09:08 -0400177 export USER=gitlab;
Tom Rini6c883102020-02-11 12:41:14 -0500178 virtualenv -p /usr/bin/python3 /tmp/venv;
Tom Rini0b6e1032019-08-12 10:09:08 -0400179 . /tmp/venv/bin/activate;
Tom Rini70c66dd2021-02-26 07:52:29 -0500180 pip install -r test/py/requirements.txt;
Tom Rini95f1c6cb2023-07-22 00:14:46 +0530181 pip install -r tools/buildman/requirements.txt;
Tom Rini08086922023-08-10 12:52:24 -0400182 export UBOOT_TRAVIS_BUILD_DIR=/tmp/tools-only;
Tom Rini0b6e1032019-08-12 10:09:08 -0400183 export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
184 export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
Tom Rinid1ed4462022-08-09 21:08:54 -0400185 set +e;
Simon Glass492f0b02021-03-15 17:25:34 +1300186 ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w
Tom Rini08086922023-08-10 12:52:24 -0400187 --board tools-only;
Tom Rinid1ed4462022-08-09 21:08:54 -0400188 set -e;
Tom Rini0b6e1032019-08-12 10:09:08 -0400189 ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test;
190 ./tools/buildman/buildman -t;
191 ./tools/dtoc/dtoc -t;
Simon Glass109e84e2020-07-05 21:41:55 -0600192 ./tools/patman/patman test;
Tom Rini0b3e0c42020-03-11 18:11:15 -0400193 make testconfig
Tom Rinid2244b92019-06-19 09:25:17 -0400194
Simon Glassf6903262022-02-11 13:23:26 -0700195# Check for any pylint regressions
196Run pylint:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200197 extends: .testsuites
Simon Glassf6903262022-02-11 13:23:26 -0700198 script:
Tom Rinid1ed4462022-08-09 21:08:54 -0400199 - git config --global --add safe.directory "${CI_PROJECT_DIR}"
Simon Glassf6903262022-02-11 13:23:26 -0700200 - pip install -r test/py/requirements.txt
Tom Rini95f1c6cb2023-07-22 00:14:46 +0530201 - pip install -r tools/buildman/requirements.txt
Tom Rini090ff812022-03-25 08:19:09 -0400202 - pip install asteval pylint==2.12.2 pyopenssl
Simon Glassf6903262022-02-11 13:23:26 -0700203 - export PATH=${PATH}:~/.local/bin
204 - echo "[MASTER]" >> .pylintrc
205 - echo "load-plugins=pylint.extensions.docparams" >> .pylintrc
Tom Rini08086922023-08-10 12:52:24 -0400206 - export UBOOT_TRAVIS_BUILD_DIR=/tmp/tools-only
Tom Rinid1ed4462022-08-09 21:08:54 -0400207 - set +e
Simon Glassf6903262022-02-11 13:23:26 -0700208 - ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w
Tom Rini08086922023-08-10 12:52:24 -0400209 --board tools-only
Tom Rinid1ed4462022-08-09 21:08:54 -0400210 - set -e
Simon Glassf6903262022-02-11 13:23:26 -0700211 - pylint --version
212 - export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"
213 - make pylint_err
214
Simon Glassf96763a2023-02-13 08:56:39 -0700215# Check for pre-schema driver model tags
216Check for pre-schema tags:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200217 extends: .testsuites
Simon Glassf96763a2023-02-13 08:56:39 -0700218 script:
219 - git config --global --add safe.directory "${CI_PROJECT_DIR}";
220 # If grep succeeds and finds a match the test fails as we should
221 # have no matches.
222 - git grep u-boot,dm- -- '*.dts*' && exit 1 || exit 0
223
Simon Glass5dd13b92023-02-23 18:18:24 -0700224# Check we can package the Python tools
225Check packing of Python tools:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200226 extends: .testsuites
Simon Glass5dd13b92023-02-23 18:18:24 -0700227 script:
228 - make pip
229
Tom Rinid2244b92019-06-19 09:25:17 -0400230# Test sandbox with test.py
231sandbox test.py:
Tom Rinif9d00182024-12-08 11:07:26 -0600232 tags:
233 - ${DEFAULT_AMD64_TAG}
Tom Rinid2244b92019-06-19 09:25:17 -0400234 variables:
235 TEST_PY_BD: "sandbox"
Tom Rinid2244b92019-06-19 09:25:17 -0400236 <<: *buildman_and_testpy_dfn
237
Tom Rini99a1bb32019-11-06 19:30:47 -0500238sandbox with clang test.py:
Tom Rinif9d00182024-12-08 11:07:26 -0600239 tags:
240 - ${DEFAULT_AMD64_TAG}
Tom Rini99a1bb32019-11-06 19:30:47 -0500241 variables:
242 TEST_PY_BD: "sandbox"
Tom Rinie752a3a2024-03-10 15:59:28 -0400243 OVERRIDE: "-O clang-17"
Tom Rini99a1bb32019-11-06 19:30:47 -0500244 <<: *buildman_and_testpy_dfn
245
Marek Vasut36bdb592023-09-01 10:48:10 +0200246sandbox64 test.py:
Tom Rinif9d00182024-12-08 11:07:26 -0600247 tags:
248 - ${DEFAULT_AMD64_TAG}
Marek Vasut36bdb592023-09-01 10:48:10 +0200249 variables:
250 TEST_PY_BD: "sandbox64"
251 <<: *buildman_and_testpy_dfn
252
253sandbox64 with clang test.py:
Tom Rinif9d00182024-12-08 11:07:26 -0600254 tags:
255 - ${DEFAULT_AMD64_TAG}
Marek Vasut36bdb592023-09-01 10:48:10 +0200256 variables:
257 TEST_PY_BD: "sandbox64"
Tom Rinie752a3a2024-03-10 15:59:28 -0400258 OVERRIDE: "-O clang-17"
Marek Vasut36bdb592023-09-01 10:48:10 +0200259 <<: *buildman_and_testpy_dfn
260
Tom Rinid2244b92019-06-19 09:25:17 -0400261sandbox_spl test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400262 variables:
263 TEST_PY_BD: "sandbox_spl"
Simon Glass36a69e12020-10-25 20:38:36 -0600264 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
Tom Rinid2244b92019-06-19 09:25:17 -0400265 <<: *buildman_and_testpy_dfn
266
Simon Glass492f0b02021-03-15 17:25:34 +1300267sandbox_noinst_test.py:
Simon Glass492f0b02021-03-15 17:25:34 +1300268 variables:
269 TEST_PY_BD: "sandbox_noinst"
270 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
271 <<: *buildman_and_testpy_dfn
272
Sean Andersonf65dcc02023-10-14 16:47:59 -0400273sandbox_noinst with LOAD_FIT_FULL test.py:
274 variables:
275 TEST_PY_BD: "sandbox_noinst"
276 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
277 OVERRIDE: "-a CONFIG_SPL_LOAD_FIT_FULL=y"
278 <<: *buildman_and_testpy_dfn
279
Simon Glassa2a4eea2022-04-30 00:56:57 -0600280sandbox_vpl test.py:
281 variables:
282 TEST_PY_BD: "sandbox_vpl"
Simon Glass4e5e7f42023-04-02 14:01:26 +1200283 TEST_PY_TEST_SPEC: "vpl or test_spl"
Simon Glassa2a4eea2022-04-30 00:56:57 -0600284 <<: *buildman_and_testpy_dfn
285
Simon Glassc2f01902023-01-15 14:16:00 -0700286# Enable tracing and disable LTO, to ensure functions are not elided
287sandbox trace_test.py:
288 variables:
289 TEST_PY_BD: "sandbox"
290 BUILD_ENV: "FTRACE=1 NO_LTO=1"
291 TEST_PY_TEST_SPEC: "trace"
Sughosh Ganu0c3783e2023-08-22 23:10:02 +0530292 OVERRIDE: "-a CONFIG_TRACE=y -a CONFIG_TRACE_EARLY=y -a CONFIG_TRACE_EARLY_SIZE=0x01000000 -a CONFIG_TRACE_BUFFER_SIZE=0x02000000"
Simon Glassc2f01902023-01-15 14:16:00 -0700293 <<: *buildman_and_testpy_dfn
294
Tom Rini0008b882019-07-17 16:06:57 -0400295evb-ast2500 test.py:
Tom Rini0008b882019-07-17 16:06:57 -0400296 variables:
297 TEST_PY_BD: "evb-ast2500"
Tom Rini5692b9c2024-10-15 12:28:26 -0600298 TEST_PY_TEST_SPEC: "not sleep"
Tom Rini0008b882019-07-17 16:06:57 -0400299 TEST_PY_ID: "--id qemu"
Tom Rini0008b882019-07-17 16:06:57 -0400300 <<: *buildman_and_testpy_dfn
301
Joel Stanley3f21e1b2022-06-29 16:35:25 +0930302evb-ast2600 test.py:
303 variables:
304 TEST_PY_BD: "evb-ast2600"
Tom Rini5692b9c2024-10-15 12:28:26 -0600305 TEST_PY_TEST_SPEC: "not sleep"
Joel Stanley3f21e1b2022-06-29 16:35:25 +0930306 TEST_PY_ID: "--id qemu"
307 <<: *buildman_and_testpy_dfn
308
Tom Rinid2244b92019-06-19 09:25:17 -0400309sandbox_flattree test.py:
Tom Rinif9d00182024-12-08 11:07:26 -0600310 tags:
311 - ${DEFAULT_AMD64_TAG}
Tom Rinid2244b92019-06-19 09:25:17 -0400312 variables:
313 TEST_PY_BD: "sandbox_flattree"
Tom Rinid2244b92019-06-19 09:25:17 -0400314 <<: *buildman_and_testpy_dfn
315
Kristian Amlie8f8a2992021-09-07 08:37:51 +0200316vexpress_ca9x4 test.py:
317 variables:
318 TEST_PY_BD: "vexpress_ca9x4"
Tom Rini5692b9c2024-10-15 12:28:26 -0600319 TEST_PY_TEST_SPEC: "not sleep"
Kristian Amlie8f8a2992021-09-07 08:37:51 +0200320 TEST_PY_ID: "--id qemu"
321 <<: *buildman_and_testpy_dfn
322
Tom Rinid2244b92019-06-19 09:25:17 -0400323integratorcp_cm926ejs test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400324 variables:
325 TEST_PY_BD: "integratorcp_cm926ejs"
326 TEST_PY_TEST_SPEC: "not sleep"
327 TEST_PY_ID: "--id qemu"
Tom Rinid2244b92019-06-19 09:25:17 -0400328 <<: *buildman_and_testpy_dfn
329
330qemu_arm test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400331 variables:
332 TEST_PY_BD: "qemu_arm"
333 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400334 <<: *buildman_and_testpy_dfn
335
336qemu_arm64 test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400337 variables:
338 TEST_PY_BD: "qemu_arm64"
339 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400340 <<: *buildman_and_testpy_dfn
341
Jerome Forissierde134d92024-10-16 12:04:14 +0200342qemu_arm64_lwip test.py:
343 variables:
344 TEST_PY_BD: "qemu_arm64_lwip"
345 TEST_PY_TEST_SPEC: "test_net_dhcp or test_net_ping or test_net_tftpboot"
346 <<: *buildman_and_testpy_dfn
347
Patrick Rudolphd67a7422024-10-23 15:20:20 +0200348qemu_arm_sbsa test.py:
349 variables:
350 TEST_PY_BD: "qemu-arm-sbsa"
351 TEST_PY_TEST_SPEC: "not sleep"
352 <<: *buildman_and_testpy_dfn
353
Marek Vasut07240eb2023-03-23 01:22:41 +0100354qemu_m68k test.py:
355 variables:
356 TEST_PY_BD: "M5208EVBE"
357 TEST_PY_ID: "--id qemu"
358 TEST_PY_TEST_SPEC: "not sleep and not efi"
359 OVERRIDE: "-a CONFIG_M68K_QEMU=y -a ~CONFIG_MCFTMR"
360 <<: *buildman_and_testpy_dfn
361
Daniel Schwierzeck744af392020-06-06 22:21:47 +0200362qemu_malta test.py:
Daniel Schwierzeck744af392020-06-06 22:21:47 +0200363 variables:
364 TEST_PY_BD: "malta"
365 TEST_PY_TEST_SPEC: "not sleep and not efi"
366 TEST_PY_ID: "--id qemu"
367 <<: *buildman_and_testpy_dfn
368
369qemu_maltael test.py:
Daniel Schwierzeck744af392020-06-06 22:21:47 +0200370 variables:
371 TEST_PY_BD: "maltael"
372 TEST_PY_TEST_SPEC: "not sleep and not efi"
373 TEST_PY_ID: "--id qemu"
374 <<: *buildman_and_testpy_dfn
375
376qemu_malta64 test.py:
Daniel Schwierzeck744af392020-06-06 22:21:47 +0200377 variables:
378 TEST_PY_BD: "malta64"
379 TEST_PY_TEST_SPEC: "not sleep and not efi"
380 TEST_PY_ID: "--id qemu"
381 <<: *buildman_and_testpy_dfn
382
383qemu_malta64el test.py:
Daniel Schwierzeck744af392020-06-06 22:21:47 +0200384 variables:
385 TEST_PY_BD: "malta64el"
386 TEST_PY_TEST_SPEC: "not sleep and not efi"
387 TEST_PY_ID: "--id qemu"
388 <<: *buildman_and_testpy_dfn
389
Tom Rinid2244b92019-06-19 09:25:17 -0400390qemu-ppce500 test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400391 variables:
392 TEST_PY_BD: "qemu-ppce500"
393 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400394 <<: *buildman_and_testpy_dfn
395
Bin Mengaeb3ea42020-03-28 07:25:27 -0700396qemu-riscv32 test.py:
Bin Mengaeb3ea42020-03-28 07:25:27 -0700397 variables:
398 TEST_PY_BD: "qemu-riscv32"
399 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengaeb3ea42020-03-28 07:25:27 -0700400 <<: *buildman_and_testpy_dfn
401
Tom Rinic8c320e2019-08-02 11:32:37 -0400402qemu-riscv64 test.py:
Tom Rinic8c320e2019-08-02 11:32:37 -0400403 variables:
404 TEST_PY_BD: "qemu-riscv64"
405 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinic8c320e2019-08-02 11:32:37 -0400406 <<: *buildman_and_testpy_dfn
407
Bin Mengb68d9d62020-03-28 07:25:29 -0700408qemu-riscv32_spl test.py:
Bin Mengb68d9d62020-03-28 07:25:29 -0700409 variables:
410 TEST_PY_BD: "qemu-riscv32_spl"
411 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengb68d9d62020-03-28 07:25:29 -0700412 <<: *buildman_and_testpy_dfn
413
414qemu-riscv64_spl test.py:
Bin Mengb68d9d62020-03-28 07:25:29 -0700415 variables:
416 TEST_PY_BD: "qemu-riscv64_spl"
417 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengb68d9d62020-03-28 07:25:29 -0700418 <<: *buildman_and_testpy_dfn
419
Tom Rinid2244b92019-06-19 09:25:17 -0400420qemu-x86 test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400421 variables:
422 TEST_PY_BD: "qemu-x86"
423 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400424 <<: *buildman_and_testpy_dfn
425
426qemu-x86_64 test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400427 variables:
428 TEST_PY_BD: "qemu-x86_64"
429 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400430 <<: *buildman_and_testpy_dfn
431
Jiaxun Yangacc795b2024-06-18 14:56:11 +0100432qemu-xtensa-dc233c test.py:
433 variables:
434 TEST_PY_BD: "qemu-xtensa-dc233c"
435 TEST_PY_TEST_SPEC: "not sleep and not efi"
Tom Rini5d18a672024-12-08 11:07:24 -0600436 tags:
Tom Rinif9d00182024-12-08 11:07:26 -0600437 - ${DEFAULT_AMD64_TAG}
Jiaxun Yangacc795b2024-06-18 14:56:11 +0100438 <<: *buildman_and_testpy_dfn
439
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200440r2dplus_i82557c test.py:
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200441 variables:
442 TEST_PY_BD: "r2dplus"
Tom Rini5692b9c2024-10-15 12:28:26 -0600443 TEST_PY_TEST_SPEC: "not sleep"
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200444 TEST_PY_ID: "--id i82557c_qemu"
445 <<: *buildman_and_testpy_dfn
446
447r2dplus_pcnet test.py:
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200448 variables:
449 TEST_PY_BD: "r2dplus"
Tom Rini5692b9c2024-10-15 12:28:26 -0600450 TEST_PY_TEST_SPEC: "not sleep"
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200451 TEST_PY_ID: "--id pcnet_qemu"
452 <<: *buildman_and_testpy_dfn
453
454r2dplus_rtl8139 test.py:
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200455 variables:
456 TEST_PY_BD: "r2dplus"
Tom Rini5692b9c2024-10-15 12:28:26 -0600457 TEST_PY_TEST_SPEC: "not sleep"
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200458 TEST_PY_ID: "--id rtl8139_qemu"
459 <<: *buildman_and_testpy_dfn
460
461r2dplus_tulip test.py:
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200462 variables:
463 TEST_PY_BD: "r2dplus"
Tom Rini5692b9c2024-10-15 12:28:26 -0600464 TEST_PY_TEST_SPEC: "not sleep"
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200465 TEST_PY_ID: "--id tulip_qemu"
466 <<: *buildman_and_testpy_dfn
467
Bin Meng0ae41062021-08-26 23:33:35 +0800468sifive_unleashed_sdcard test.py:
469 variables:
470 TEST_PY_BD: "sifive_unleashed"
Tom Rini5692b9c2024-10-15 12:28:26 -0600471 TEST_PY_TEST_SPEC: "not sleep"
Bin Meng0ae41062021-08-26 23:33:35 +0800472 TEST_PY_ID: "--id sdcard_qemu"
473 <<: *buildman_and_testpy_dfn
474
475sifive_unleashed_spi-nor test.py:
476 variables:
477 TEST_PY_BD: "sifive_unleashed"
Tom Rini5692b9c2024-10-15 12:28:26 -0600478 TEST_PY_TEST_SPEC: "not sleep"
Bin Meng0ae41062021-08-26 23:33:35 +0800479 TEST_PY_ID: "--id spi-nor_qemu"
480 <<: *buildman_and_testpy_dfn
481
Michal Simekf8834fd2020-02-13 15:03:29 +0100482xilinx_zynq_virt test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400483 variables:
Michal Simekf8834fd2020-02-13 15:03:29 +0100484 TEST_PY_BD: "xilinx_zynq_virt"
Tom Rinid2244b92019-06-19 09:25:17 -0400485 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400486 TEST_PY_ID: "--id qemu"
Tom Rinid2244b92019-06-19 09:25:17 -0400487 <<: *buildman_and_testpy_dfn
488
489xilinx_versal_virt test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400490 variables:
491 TEST_PY_BD: "xilinx_versal_virt"
492 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400493 TEST_PY_ID: "--id qemu"
Heinrich Schuchardt217a1e62024-11-27 08:06:28 +0100494 OVERRIDE: "-a ~CONFIG_USB_DWC3"
Tom Rinid2244b92019-06-19 09:25:17 -0400495 <<: *buildman_and_testpy_dfn
496
497xtfpga test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400498 variables:
499 TEST_PY_BD: "xtfpga"
500 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400501 TEST_PY_ID: "--id qemu"
Tom Rini5d18a672024-12-08 11:07:24 -0600502 tags:
Tom Rinif9d00182024-12-08 11:07:26 -0600503 - ${DEFAULT_AMD64_TAG}
Tom Rinid2244b92019-06-19 09:25:17 -0400504 <<: *buildman_and_testpy_dfn
Simon Glass13e1fa02022-01-21 10:23:01 -0700505
506coreboot test.py:
507 variables:
508 TEST_PY_BD: "coreboot"
509 TEST_PY_TEST_SPEC: "not sleep"
510 TEST_PY_ID: "--id qemu"
Simon Glass13e1fa02022-01-21 10:23:01 -0700511 <<: *buildman_and_testpy_dfn
Simon Glass42f0dd02024-11-12 07:13:26 -0700512
513.lab_template: &lab_dfn
514 stage: sjg-lab
515 rules:
516 - if: $SJG_LAB == "1"
517 when: always
Tom Rini06a22342024-11-13 12:05:00 -0600518 - if: $SJG_LAB != "1"
519 when: manual
520 allow_failure: true
Tom Rini93d12db2024-12-08 11:07:28 -0600521 dependencies: []
Simon Glass42f0dd02024-11-12 07:13:26 -0700522 tags: [ 'lab' ]
523 script:
524 - if [[ -z "${SJG_LAB}" ]]; then
525 exit 0;
526 fi
527 # Environment:
528 # SRC - source tree
529 # OUT - output directory for builds
530 - export SRC="$(pwd)"
531 - export OUT="${SRC}/build/${BOARD}"
532 - export PATH=$PATH:~/bin
533 - export PATH=$PATH:/vid/software/devel/ubtest/u-boot-test-hooks/bin
534
535 # Load it on the device
536 - ret=0
537 - echo "role ${ROLE}"
538 - export strategy="-s uboot -e off"
539 - export USE_LABGRID_SJG=1
540 # export verbose="-v"
541 - ${SRC}/test/py/test.py --role ${ROLE} --build-dir "${OUT}"
542 --capture=tee-sys -k "not bootstd" || ret=$?
543 - U_BOOT_BOARD_IDENTITY="${ROLE}" u-boot-test-release || true
544 - if [[ $ret -ne 0 ]]; then
545 exit $ret;
546 fi
547 artifacts:
548 when: always
549 paths:
550 - "build/${BOARD}/test-log.html"
551 - "build/${BOARD}/multiplexed_log.css"
552 expire_in: 1 week
553
554rpi3:
555 variables:
556 ROLE: rpi3
557 <<: *lab_dfn
558
559opi_pc:
560 variables:
561 ROLE: opi_pc
562 <<: *lab_dfn
563
564pcduino3_nano:
565 variables:
566 ROLE: pcduino3_nano
567 <<: *lab_dfn
568
569samus:
570 variables:
571 ROLE: samus
572 <<: *lab_dfn
573
574link:
575 variables:
576 ROLE: link
577 <<: *lab_dfn
578
579jerry:
580 variables:
581 ROLE: jerry
582 <<: *lab_dfn
583
584minnowmax:
585 variables:
586 ROLE: minnowmax
587 <<: *lab_dfn
588
589opi_pc2:
590 variables:
591 ROLE: opi_pc2
592 <<: *lab_dfn
593
594bpi:
595 variables:
596 ROLE: bpi
597 <<: *lab_dfn
598
599rpi2:
600 variables:
601 ROLE: rpi2
602 <<: *lab_dfn
603
604bob:
605 variables:
606 ROLE: bob
607 <<: *lab_dfn
608
609ff3399:
610 variables:
611 ROLE: ff3399
612 <<: *lab_dfn
613
614coral:
615 variables:
616 ROLE: coral
617 <<: *lab_dfn
618
619rpi3z:
620 variables:
621 ROLE: rpi3z
622 <<: *lab_dfn
623
624bbb:
625 variables:
626 ROLE: bbb
627 <<: *lab_dfn
628
629kevin:
630 variables:
631 ROLE: kevin
632 <<: *lab_dfn
633
634pine64:
635 variables:
636 ROLE: pine64
637 <<: *lab_dfn
638
639c4:
640 variables:
641 ROLE: c4
642 <<: *lab_dfn
643
644rpi4:
645 variables:
646 ROLE: rpi4
647 <<: *lab_dfn
648
649rpi0:
650 variables:
651 ROLE: rpi0
652 <<: *lab_dfn
653
654snow:
655 variables:
656 ROLE: snow
657 <<: *lab_dfn
658
659pcduino3:
660 variables:
661 ROLE: pcduino3
662 <<: *lab_dfn
663
664nyan-big:
665 variables:
666 ROLE: nyan-big
667 <<: *lab_dfn
Simon Glasse6cd49b2024-12-12 17:59:03 -0700668
669rpi:
670 variables:
671 ROLE: rpi
672 <<: *lab_dfn