blob: 0aeda53bc2d2a1fd612e973a0bcfcd2c3e6b3f5e [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:
4 DEFAULT_TAG: ""
Peter Hoyes08ed84e2023-03-10 09:53:03 +00005 MIRROR_DOCKER: docker.io
Peter Hoyesb0722af2023-03-10 09:53:02 +00006
7default:
8 tags:
9 - ${DEFAULT_TAG}
10
Joel Stanleyb97c1d42022-08-23 16:18:26 +100011# Grab our configured image. The source for this is found
12# in the u-boot tree at tools/docker/Dockerfile
Tom Rinie0c84c82024-08-21 09:41:20 -060013image: ${MIRROR_DOCKER}/trini/u-boot-gitlab-ci-runner:jammy-20240808-21Aug2024
Tom Rinid2244b92019-06-19 09:25:17 -040014
15# We run some tests in different order, to catch some failures quicker.
16stages:
Tom Rinid2244b92019-06-19 09:25:17 -040017 - testsuites
Tom Rini1cdb1822019-07-24 13:09:31 -040018 - test.py
Tom Rinid2244b92019-06-19 09:25:17 -040019 - world build
20
21.buildman_and_testpy_template: &buildman_and_testpy_dfn
Tom Rinid2244b92019-06-19 09:25:17 -040022 stage: test.py
Tom Rini6acc0192023-07-11 22:33:03 -040023 retry: 2 # QEMU may be too slow, etc.
Andrejs Cainikovsb4453552023-09-13 16:15:36 +020024 rules:
25 - when: always
Tom Rinid2244b92019-06-19 09:25:17 -040026 before_script:
27 # Clone uboot-test-hooks
Tom Rinie0f979b2022-11-21 12:52:40 -050028 - git config --global --add safe.directory "${CI_PROJECT_DIR}"
Tom Rini2a1df582021-02-24 17:05:04 -050029 - 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 +020030 # qemu_arm64_lwip_defconfig is the same as qemu_arm64 but with NET_LWIP enabled.
31 # The test config and the boardenv file from qemu_arm64 can be re-used so create symlinks
32 - 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 -040033 - ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
34 - ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
Tom Rini6ad26042019-10-04 12:12:54 -040035 - grub-mkimage --prefix="" -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
36 - grub-mkimage --prefix="" -o ~/grub_x64.efi -O x86_64-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
Bin Mengb68d9d62020-03-28 07:25:29 -070037 - if [[ "${TEST_PY_BD}" == "qemu-riscv32_spl" ]]; then
Heinrich Schuchardt29999e42023-10-25 00:15:43 +020038 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;
39 export OPENSBI=/tmp/opensbi-1.3.1-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin;
Bin Mengb68d9d62020-03-28 07:25:29 -070040 fi
Bin Meng0ae41062021-08-26 23:33:35 +080041 - if [[ "${TEST_PY_BD}" == "qemu-riscv64_spl" ]] || [[ "${TEST_PY_BD}" == "sifive_unleashed" ]]; then
Heinrich Schuchardt29999e42023-10-25 00:15:43 +020042 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;
43 export OPENSBI=/tmp/opensbi-1.3.1-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin;
Bin Mengb68d9d62020-03-28 07:25:29 -070044 fi
Patrick Rudolphd67a7422024-10-23 15:20:20 +020045 - if [[ "${TEST_PY_BD}" == "qemu-arm-sbsa" ]]; then
46 wget -O /tmp/bl1.bin https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/latest/tf-a/bl1.bin;
47 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 -060048 export BINMAN_INDIRS=/tmp;
Patrick Rudolphd67a7422024-10-23 15:20:20 +020049 fi
Tom Rini1cdb1822019-07-24 13:09:31 -040050
Tom Rinid2244b92019-06-19 09:25:17 -040051 after_script:
Tom Rini792dbc32024-06-27 07:43:20 -060052 - cp -v /tmp/${TEST_PY_BD}/*.{html,css,xml} .
Heinrich Schuchardt159b0ab2019-12-19 13:30:32 +010053 - rm -rf /tmp/uboot-test-hooks /tmp/venv
Tom Rinid2244b92019-06-19 09:25:17 -040054 script:
Simon Glassda499352020-03-18 09:42:57 -060055 # If we've been asked to use clang only do one configuration.
Simon Glass28d83e72020-03-18 09:42:55 -060056 - export UBOOT_TRAVIS_BUILD_DIR=/tmp/${TEST_PY_BD}
Simon Glass2e32f5d2022-08-03 12:13:09 -060057 - echo BUILD_ENV ${BUILD_ENV}
Simon Glassc2f01902023-01-15 14:16:00 -070058 - if [ -n "${BUILD_ENV}" ]; then
59 export ${BUILD_ENV};
60 fi
Simon Glass87c80462020-03-18 09:43:00 -060061 - tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e
62 --board ${TEST_PY_BD} ${OVERRIDE}
Heinrich Schuchardtba0ae212020-07-14 00:23:58 +020063 - cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/
64 - cp ~/grub_x64.efi $UBOOT_TRAVIS_BUILD_DIR/
65 - cp /opt/grub/grubriscv64.efi $UBOOT_TRAVIS_BUILD_DIR/grub_riscv64.efi
Heinrich Schuchardtba0ae212020-07-14 00:23:58 +020066 - cp /opt/grub/grubaa64.efi $UBOOT_TRAVIS_BUILD_DIR/grub_arm64.efi
67 - cp /opt/grub/grubarm.efi $UBOOT_TRAVIS_BUILD_DIR/grub_arm.efi
Bin Meng0ae41062021-08-26 23:33:35 +080068 # create sdcard / spi-nor images for sifive unleashed using genimage
69 - if [[ "${TEST_PY_BD}" == "sifive_unleashed" ]]; then
70 mkdir -p root;
71 cp ${UBOOT_TRAVIS_BUILD_DIR}/spl/u-boot-spl.bin .;
72 cp ${UBOOT_TRAVIS_BUILD_DIR}/u-boot.itb .;
73 rm -rf tmp;
74 genimage --inputpath . --config board/sifive/unleashed/genimage_sdcard.cfg;
75 cp images/sdcard.img ${UBOOT_TRAVIS_BUILD_DIR}/;
76 rm -rf tmp;
77 genimage --inputpath . --config board/sifive/unleashed/genimage_spi-nor.cfg;
78 cp images/spi-nor.img ${UBOOT_TRAVIS_BUILD_DIR}/;
79 fi
Simon Glass13e1fa02022-01-21 10:23:01 -070080 - if [[ "${TEST_PY_BD}" == "coreboot" ]]; then
Tom Rinid0296f62024-02-13 09:39:27 -050081 cp /opt/coreboot/coreboot.rom ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom;
82 /opt/coreboot/cbfstool ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom remove -n fallback/payload;
83 /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 -070084 fi
Tom Riniebcd2142019-10-24 11:59:27 -040085 - virtualenv -p /usr/bin/python3 /tmp/venv
86 - . /tmp/venv/bin/activate
87 - pip install -r test/py/requirements.txt
Simon Glass2600f7e2020-03-18 09:42:56 -060088 # "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
Simon Glass28d83e72020-03-18 09:42:55 -060089 - export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
Tom Rinid2244b92019-06-19 09:25:17 -040090 export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
Heinrich Schuchardt2a3ec0a2020-07-10 22:04:40 +020091 ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID}
Simon Glass2600f7e2020-03-18 09:42:56 -060092 ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"}
Simon Glassfd0c59b2020-03-18 09:42:59 -060093 --build-dir "$UBOOT_TRAVIS_BUILD_DIR"
Tom Rini792dbc32024-06-27 07:43:20 -060094 --junitxml=/tmp/${TEST_PY_BD}/results.xml
Marek Vasutc1a44de2023-03-03 02:22:25 +010095 artifacts:
96 when: always
97 paths:
98 - "*.html"
99 - "*.css"
Tom Rini792dbc32024-06-27 07:43:20 -0600100 reports:
101 junit: results.xml
Marek Vasutc1a44de2023-03-03 02:22:25 +0100102 expire_in: 1 week
Tom Rinid2244b92019-06-19 09:25:17 -0400103
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200104.world_build:
Tom Rinid2244b92019-06-19 09:25:17 -0400105 stage: world build
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200106 rules:
107 - when: always
108
109build all 32bit ARM platforms:
110 extends: .world_build
Tom Rinid2244b92019-06-19 09:25:17 -0400111 script:
112 - ret=0;
Tom Rinie0f979b2022-11-21 12:52:40 -0500113 git config --global --add safe.directory "${CI_PROJECT_DIR}";
Tom Rini95f1c6cb2023-07-22 00:14:46 +0530114 pip install -r tools/buildman/requirements.txt;
Tom Rini93ebd462022-11-09 19:14:53 -0700115 ./tools/buildman/buildman -o /tmp -PEWM arm -x aarch64 || ret=$?;
Simon Glassda499352020-03-18 09:42:57 -0600116 if [[ $ret -ne 0 ]]; then
Simon Glassad8eaed2020-03-18 09:42:53 -0600117 ./tools/buildman/buildman -o /tmp -seP;
Tom Rini70c63a52019-10-24 11:59:16 -0400118 exit $ret;
119 fi;
Tom Rini372c6972019-07-17 17:51:28 -0400120
Heinrich Schuchardt8e8e1cc2019-10-06 12:26:16 +0200121build all 64bit ARM platforms:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200122 extends: .world_build
Tom Rini372c6972019-07-17 17:51:28 -0400123 script:
Tom Rini6c883102020-02-11 12:41:14 -0500124 - virtualenv -p /usr/bin/python3 /tmp/venv
Tom Rini7faea832019-07-18 07:28:36 -0400125 - . /tmp/venv/bin/activate
Tom Rini372c6972019-07-17 17:51:28 -0400126 - ret=0;
Tom Rinie0f979b2022-11-21 12:52:40 -0500127 git config --global --add safe.directory "${CI_PROJECT_DIR}";
Tom Rini95f1c6cb2023-07-22 00:14:46 +0530128 pip install -r tools/buildman/requirements.txt;
Tom Rini93ebd462022-11-09 19:14:53 -0700129 ./tools/buildman/buildman -o /tmp -PEWM aarch64 || ret=$?;
Simon Glassda499352020-03-18 09:42:57 -0600130 if [[ $ret -ne 0 ]]; then
Simon Glassad8eaed2020-03-18 09:42:53 -0600131 ./tools/buildman/buildman -o /tmp -seP;
Tom Rini70c63a52019-10-24 11:59:16 -0400132 exit $ret;
133 fi;
Tom Rini372c6972019-07-17 17:51:28 -0400134
Heinrich Schuchardt8e8e1cc2019-10-06 12:26:16 +0200135build all PowerPC platforms:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200136 extends: .world_build
Tom Rini372c6972019-07-17 17:51:28 -0400137 script:
138 - ret=0;
Tom Rinie0f979b2022-11-21 12:52:40 -0500139 git config --global --add safe.directory "${CI_PROJECT_DIR}";
Simon Glassda499352020-03-18 09:42:57 -0600140 ./tools/buildman/buildman -o /tmp -P -E -W powerpc || ret=$?;
141 if [[ $ret -ne 0 ]]; then
Simon Glassad8eaed2020-03-18 09:42:53 -0600142 ./tools/buildman/buildman -o /tmp -seP;
Tom Rini70c63a52019-10-24 11:59:16 -0400143 exit $ret;
144 fi;
Tom Rini372c6972019-07-17 17:51:28 -0400145
Heinrich Schuchardt8e8e1cc2019-10-06 12:26:16 +0200146build all other platforms:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200147 extends: .world_build
Tom Rini372c6972019-07-17 17:51:28 -0400148 script:
149 - ret=0;
Tom Rinie0f979b2022-11-21 12:52:40 -0500150 git config --global --add safe.directory "${CI_PROJECT_DIR}";
Tom Rini93ebd462022-11-09 19:14:53 -0700151 ./tools/buildman/buildman -o /tmp -PEWM -x arm,powerpc || ret=$?;
Simon Glassda499352020-03-18 09:42:57 -0600152 if [[ $ret -ne 0 ]]; then
Simon Glassad8eaed2020-03-18 09:42:53 -0600153 ./tools/buildman/buildman -o /tmp -seP;
Tom Rini70c63a52019-10-24 11:59:16 -0400154 exit $ret;
155 fi;
Tom Rinid2244b92019-06-19 09:25:17 -0400156
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200157.testsuites:
Tom Rinibdfa3762021-12-14 13:36:41 -0500158 stage: testsuites
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200159 rules:
160 - when: always
161
162check for new CONFIG symbols outside Kconfig:
163 extends: .testsuites
Tom Rinibdfa3762021-12-14 13:36:41 -0500164 script:
Tom Rini1cc7e4c2022-12-04 10:14:15 -0500165 - git config --global --add safe.directory "${CI_PROJECT_DIR}"
166 # If grep succeeds and finds a match the test fails as we should
167 # have no matches.
168 - git grep -E '^#[[:blank:]]*(define|undef)[[:blank:]]*CONFIG_'
Tom Rini8f7345c2023-01-10 11:19:46 -0500169 :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h
Raymond Maodc520542024-10-03 14:50:14 -0700170 :^include/linux/kconfig.h :^tools/ :^dts/upstream/
171 :^lib/mbedtls/external :^lib/mbedtls/mbedtls_def_config.h &&
Sumit Garg8d814682024-02-22 15:05:57 +0530172 exit 1 || exit 0
Tom Rinibdfa3762021-12-14 13:36:41 -0500173
Heinrich Schuchardt54de2412023-01-12 20:30:58 +0100174# build documentation
175docs:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200176 extends: .testsuites
Heinrich Schuchardtbccdb652020-02-21 18:24:01 +0100177 script:
Heinrich Schuchardt846abe42021-01-25 22:06:25 +0100178 - virtualenv -p /usr/bin/python3 /tmp/venvhtml
179 - . /tmp/venvhtml/bin/activate
180 - pip install -r doc/sphinx/requirements.txt
Heinrich Schuchardt2e0c8e62023-05-02 05:04:11 +0200181 - make htmldocs KDOC_WERROR=1
Heinrich Schuchardt54de2412023-01-12 20:30:58 +0100182 - make infodocs
Heinrich Schuchardtbccdb652020-02-21 18:24:01 +0100183
Tom Rinid2244b92019-06-19 09:25:17 -0400184# ensure all configs have MAINTAINERS entries
185Check for configs without MAINTAINERS entry:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200186 extends: .testsuites
Tom Rinid2244b92019-06-19 09:25:17 -0400187 script:
Tom Rinica00ac62023-10-23 11:37:47 -0400188 - ./tools/buildman/buildman --maintainer-check
Tom Rinid2244b92019-06-19 09:25:17 -0400189
190# Ensure host tools build
Tom Rini8244f002023-08-20 13:31:28 -0400191Build tools-only and envtools:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200192 extends: .testsuites
Tom Rinid2244b92019-06-19 09:25:17 -0400193 script:
Tom Rini8244f002023-08-20 13:31:28 -0400194 - make tools-only_config tools-only -j$(nproc);
195 make mrproper;
196 make tools-only_config envtools -j$(nproc)
Pierre-Jean Texier6812f5e2019-08-26 13:06:18 +0200197
Tom Rini0b3e0c42020-03-11 18:11:15 -0400198Run binman, buildman, dtoc, Kconfig and patman testsuites:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200199 extends: .testsuites
Tom Rinid2244b92019-06-19 09:25:17 -0400200 script:
Tom Rini0b6e1032019-08-12 10:09:08 -0400201 - git config --global user.name "GitLab CI Runner";
202 git config --global user.email trini@konsulko.com;
Tom Rinid1ed4462022-08-09 21:08:54 -0400203 git config --global --add safe.directory "${CI_PROJECT_DIR}";
Tom Rini0b6e1032019-08-12 10:09:08 -0400204 export USER=gitlab;
Tom Rini6c883102020-02-11 12:41:14 -0500205 virtualenv -p /usr/bin/python3 /tmp/venv;
Tom Rini0b6e1032019-08-12 10:09:08 -0400206 . /tmp/venv/bin/activate;
Tom Rini70c66dd2021-02-26 07:52:29 -0500207 pip install -r test/py/requirements.txt;
Tom Rini95f1c6cb2023-07-22 00:14:46 +0530208 pip install -r tools/buildman/requirements.txt;
Tom Rini08086922023-08-10 12:52:24 -0400209 export UBOOT_TRAVIS_BUILD_DIR=/tmp/tools-only;
Tom Rini0b6e1032019-08-12 10:09:08 -0400210 export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
211 export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
Tom Rinid1ed4462022-08-09 21:08:54 -0400212 set +e;
Simon Glass492f0b02021-03-15 17:25:34 +1300213 ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w
Tom Rini08086922023-08-10 12:52:24 -0400214 --board tools-only;
Tom Rinid1ed4462022-08-09 21:08:54 -0400215 set -e;
Tom Rini0b6e1032019-08-12 10:09:08 -0400216 ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test;
217 ./tools/buildman/buildman -t;
218 ./tools/dtoc/dtoc -t;
Simon Glass109e84e2020-07-05 21:41:55 -0600219 ./tools/patman/patman test;
Tom Rini0b3e0c42020-03-11 18:11:15 -0400220 make testconfig
Tom Rinid2244b92019-06-19 09:25:17 -0400221
Simon Glassf6903262022-02-11 13:23:26 -0700222# Check for any pylint regressions
223Run pylint:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200224 extends: .testsuites
Simon Glassf6903262022-02-11 13:23:26 -0700225 script:
Tom Rinid1ed4462022-08-09 21:08:54 -0400226 - git config --global --add safe.directory "${CI_PROJECT_DIR}"
Simon Glassf6903262022-02-11 13:23:26 -0700227 - pip install -r test/py/requirements.txt
Tom Rini95f1c6cb2023-07-22 00:14:46 +0530228 - pip install -r tools/buildman/requirements.txt
Tom Rini090ff812022-03-25 08:19:09 -0400229 - pip install asteval pylint==2.12.2 pyopenssl
Simon Glassf6903262022-02-11 13:23:26 -0700230 - export PATH=${PATH}:~/.local/bin
231 - echo "[MASTER]" >> .pylintrc
232 - echo "load-plugins=pylint.extensions.docparams" >> .pylintrc
Tom Rini08086922023-08-10 12:52:24 -0400233 - export UBOOT_TRAVIS_BUILD_DIR=/tmp/tools-only
Tom Rinid1ed4462022-08-09 21:08:54 -0400234 - set +e
Simon Glassf6903262022-02-11 13:23:26 -0700235 - ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w
Tom Rini08086922023-08-10 12:52:24 -0400236 --board tools-only
Tom Rinid1ed4462022-08-09 21:08:54 -0400237 - set -e
Simon Glassf6903262022-02-11 13:23:26 -0700238 - pylint --version
239 - export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"
240 - make pylint_err
241
Simon Glassf96763a2023-02-13 08:56:39 -0700242# Check for pre-schema driver model tags
243Check for pre-schema tags:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200244 extends: .testsuites
Simon Glassf96763a2023-02-13 08:56:39 -0700245 script:
246 - git config --global --add safe.directory "${CI_PROJECT_DIR}";
247 # If grep succeeds and finds a match the test fails as we should
248 # have no matches.
249 - git grep u-boot,dm- -- '*.dts*' && exit 1 || exit 0
250
Simon Glass5dd13b92023-02-23 18:18:24 -0700251# Check we can package the Python tools
252Check packing of Python tools:
Andrejs Cainikovsb4453552023-09-13 16:15:36 +0200253 extends: .testsuites
Simon Glass5dd13b92023-02-23 18:18:24 -0700254 script:
255 - make pip
256
Tom Rinid2244b92019-06-19 09:25:17 -0400257# Test sandbox with test.py
258sandbox test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400259 variables:
260 TEST_PY_BD: "sandbox"
Tom Rinid2244b92019-06-19 09:25:17 -0400261 <<: *buildman_and_testpy_dfn
262
Tom Rini99a1bb32019-11-06 19:30:47 -0500263sandbox with clang test.py:
Tom Rini99a1bb32019-11-06 19:30:47 -0500264 variables:
265 TEST_PY_BD: "sandbox"
Tom Rinie752a3a2024-03-10 15:59:28 -0400266 OVERRIDE: "-O clang-17"
Tom Rini99a1bb32019-11-06 19:30:47 -0500267 <<: *buildman_and_testpy_dfn
268
Marek Vasut36bdb592023-09-01 10:48:10 +0200269sandbox64 test.py:
270 variables:
271 TEST_PY_BD: "sandbox64"
272 <<: *buildman_and_testpy_dfn
273
274sandbox64 with clang test.py:
275 variables:
276 TEST_PY_BD: "sandbox64"
Tom Rinie752a3a2024-03-10 15:59:28 -0400277 OVERRIDE: "-O clang-17"
Marek Vasut36bdb592023-09-01 10:48:10 +0200278 <<: *buildman_and_testpy_dfn
279
Tom Rinid2244b92019-06-19 09:25:17 -0400280sandbox_spl test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400281 variables:
282 TEST_PY_BD: "sandbox_spl"
Simon Glass36a69e12020-10-25 20:38:36 -0600283 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
Tom Rinid2244b92019-06-19 09:25:17 -0400284 <<: *buildman_and_testpy_dfn
285
Simon Glass492f0b02021-03-15 17:25:34 +1300286sandbox_noinst_test.py:
Simon Glass492f0b02021-03-15 17:25:34 +1300287 variables:
288 TEST_PY_BD: "sandbox_noinst"
289 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
290 <<: *buildman_and_testpy_dfn
291
Sean Andersonf65dcc02023-10-14 16:47:59 -0400292sandbox_noinst with LOAD_FIT_FULL test.py:
293 variables:
294 TEST_PY_BD: "sandbox_noinst"
295 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
296 OVERRIDE: "-a CONFIG_SPL_LOAD_FIT_FULL=y"
297 <<: *buildman_and_testpy_dfn
298
Simon Glassa2a4eea2022-04-30 00:56:57 -0600299sandbox_vpl test.py:
300 variables:
301 TEST_PY_BD: "sandbox_vpl"
Simon Glass4e5e7f42023-04-02 14:01:26 +1200302 TEST_PY_TEST_SPEC: "vpl or test_spl"
Simon Glassa2a4eea2022-04-30 00:56:57 -0600303 <<: *buildman_and_testpy_dfn
304
Simon Glassc2f01902023-01-15 14:16:00 -0700305# Enable tracing and disable LTO, to ensure functions are not elided
306sandbox trace_test.py:
307 variables:
308 TEST_PY_BD: "sandbox"
309 BUILD_ENV: "FTRACE=1 NO_LTO=1"
310 TEST_PY_TEST_SPEC: "trace"
Sughosh Ganu0c3783e2023-08-22 23:10:02 +0530311 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 -0700312 <<: *buildman_and_testpy_dfn
313
Tom Rini0008b882019-07-17 16:06:57 -0400314evb-ast2500 test.py:
Tom Rini0008b882019-07-17 16:06:57 -0400315 variables:
316 TEST_PY_BD: "evb-ast2500"
Tom Rini5692b9c2024-10-15 12:28:26 -0600317 TEST_PY_TEST_SPEC: "not sleep"
Tom Rini0008b882019-07-17 16:06:57 -0400318 TEST_PY_ID: "--id qemu"
Tom Rini0008b882019-07-17 16:06:57 -0400319 <<: *buildman_and_testpy_dfn
320
Joel Stanley3f21e1b2022-06-29 16:35:25 +0930321evb-ast2600 test.py:
322 variables:
323 TEST_PY_BD: "evb-ast2600"
Tom Rini5692b9c2024-10-15 12:28:26 -0600324 TEST_PY_TEST_SPEC: "not sleep"
Joel Stanley3f21e1b2022-06-29 16:35:25 +0930325 TEST_PY_ID: "--id qemu"
326 <<: *buildman_and_testpy_dfn
327
Tom Rinid2244b92019-06-19 09:25:17 -0400328sandbox_flattree test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400329 variables:
330 TEST_PY_BD: "sandbox_flattree"
Tom Rinid2244b92019-06-19 09:25:17 -0400331 <<: *buildman_and_testpy_dfn
332
Kristian Amlie8f8a2992021-09-07 08:37:51 +0200333vexpress_ca9x4 test.py:
334 variables:
335 TEST_PY_BD: "vexpress_ca9x4"
Tom Rini5692b9c2024-10-15 12:28:26 -0600336 TEST_PY_TEST_SPEC: "not sleep"
Kristian Amlie8f8a2992021-09-07 08:37:51 +0200337 TEST_PY_ID: "--id qemu"
338 <<: *buildman_and_testpy_dfn
339
Tom Rinid2244b92019-06-19 09:25:17 -0400340integratorcp_cm926ejs test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400341 variables:
342 TEST_PY_BD: "integratorcp_cm926ejs"
343 TEST_PY_TEST_SPEC: "not sleep"
344 TEST_PY_ID: "--id qemu"
Tom Rinid2244b92019-06-19 09:25:17 -0400345 <<: *buildman_and_testpy_dfn
346
347qemu_arm test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400348 variables:
349 TEST_PY_BD: "qemu_arm"
350 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400351 <<: *buildman_and_testpy_dfn
352
353qemu_arm64 test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400354 variables:
355 TEST_PY_BD: "qemu_arm64"
356 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400357 <<: *buildman_and_testpy_dfn
358
Jerome Forissierde134d92024-10-16 12:04:14 +0200359qemu_arm64_lwip test.py:
360 variables:
361 TEST_PY_BD: "qemu_arm64_lwip"
362 TEST_PY_TEST_SPEC: "test_net_dhcp or test_net_ping or test_net_tftpboot"
363 <<: *buildman_and_testpy_dfn
364
Patrick Rudolphd67a7422024-10-23 15:20:20 +0200365qemu_arm_sbsa test.py:
366 variables:
367 TEST_PY_BD: "qemu-arm-sbsa"
368 TEST_PY_TEST_SPEC: "not sleep"
369 <<: *buildman_and_testpy_dfn
370
Marek Vasut07240eb2023-03-23 01:22:41 +0100371qemu_m68k test.py:
372 variables:
373 TEST_PY_BD: "M5208EVBE"
374 TEST_PY_ID: "--id qemu"
375 TEST_PY_TEST_SPEC: "not sleep and not efi"
376 OVERRIDE: "-a CONFIG_M68K_QEMU=y -a ~CONFIG_MCFTMR"
377 <<: *buildman_and_testpy_dfn
378
Daniel Schwierzeck744af392020-06-06 22:21:47 +0200379qemu_malta test.py:
Daniel Schwierzeck744af392020-06-06 22:21:47 +0200380 variables:
381 TEST_PY_BD: "malta"
382 TEST_PY_TEST_SPEC: "not sleep and not efi"
383 TEST_PY_ID: "--id qemu"
384 <<: *buildman_and_testpy_dfn
385
386qemu_maltael test.py:
Daniel Schwierzeck744af392020-06-06 22:21:47 +0200387 variables:
388 TEST_PY_BD: "maltael"
389 TEST_PY_TEST_SPEC: "not sleep and not efi"
390 TEST_PY_ID: "--id qemu"
391 <<: *buildman_and_testpy_dfn
392
393qemu_malta64 test.py:
Daniel Schwierzeck744af392020-06-06 22:21:47 +0200394 variables:
395 TEST_PY_BD: "malta64"
396 TEST_PY_TEST_SPEC: "not sleep and not efi"
397 TEST_PY_ID: "--id qemu"
398 <<: *buildman_and_testpy_dfn
399
400qemu_malta64el test.py:
Daniel Schwierzeck744af392020-06-06 22:21:47 +0200401 variables:
402 TEST_PY_BD: "malta64el"
403 TEST_PY_TEST_SPEC: "not sleep and not efi"
404 TEST_PY_ID: "--id qemu"
405 <<: *buildman_and_testpy_dfn
406
Tom Rinid2244b92019-06-19 09:25:17 -0400407qemu-ppce500 test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400408 variables:
409 TEST_PY_BD: "qemu-ppce500"
410 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400411 <<: *buildman_and_testpy_dfn
412
Bin Mengaeb3ea42020-03-28 07:25:27 -0700413qemu-riscv32 test.py:
Bin Mengaeb3ea42020-03-28 07:25:27 -0700414 variables:
415 TEST_PY_BD: "qemu-riscv32"
416 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengaeb3ea42020-03-28 07:25:27 -0700417 <<: *buildman_and_testpy_dfn
418
Tom Rinic8c320e2019-08-02 11:32:37 -0400419qemu-riscv64 test.py:
Tom Rinic8c320e2019-08-02 11:32:37 -0400420 variables:
421 TEST_PY_BD: "qemu-riscv64"
422 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinic8c320e2019-08-02 11:32:37 -0400423 <<: *buildman_and_testpy_dfn
424
Bin Mengb68d9d62020-03-28 07:25:29 -0700425qemu-riscv32_spl test.py:
Bin Mengb68d9d62020-03-28 07:25:29 -0700426 variables:
427 TEST_PY_BD: "qemu-riscv32_spl"
428 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengb68d9d62020-03-28 07:25:29 -0700429 <<: *buildman_and_testpy_dfn
430
431qemu-riscv64_spl test.py:
Bin Mengb68d9d62020-03-28 07:25:29 -0700432 variables:
433 TEST_PY_BD: "qemu-riscv64_spl"
434 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengb68d9d62020-03-28 07:25:29 -0700435 <<: *buildman_and_testpy_dfn
436
Tom Rinid2244b92019-06-19 09:25:17 -0400437qemu-x86 test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400438 variables:
439 TEST_PY_BD: "qemu-x86"
440 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400441 <<: *buildman_and_testpy_dfn
442
443qemu-x86_64 test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400444 variables:
445 TEST_PY_BD: "qemu-x86_64"
446 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400447 <<: *buildman_and_testpy_dfn
448
Jiaxun Yangacc795b2024-06-18 14:56:11 +0100449qemu-xtensa-dc233c test.py:
450 variables:
451 TEST_PY_BD: "qemu-xtensa-dc233c"
452 TEST_PY_TEST_SPEC: "not sleep and not efi"
453 <<: *buildman_and_testpy_dfn
454
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200455r2dplus_i82557c test.py:
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200456 variables:
457 TEST_PY_BD: "r2dplus"
Tom Rini5692b9c2024-10-15 12:28:26 -0600458 TEST_PY_TEST_SPEC: "not sleep"
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200459 TEST_PY_ID: "--id i82557c_qemu"
460 <<: *buildman_and_testpy_dfn
461
462r2dplus_pcnet test.py:
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200463 variables:
464 TEST_PY_BD: "r2dplus"
Tom Rini5692b9c2024-10-15 12:28:26 -0600465 TEST_PY_TEST_SPEC: "not sleep"
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200466 TEST_PY_ID: "--id pcnet_qemu"
467 <<: *buildman_and_testpy_dfn
468
469r2dplus_rtl8139 test.py:
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200470 variables:
471 TEST_PY_BD: "r2dplus"
Tom Rini5692b9c2024-10-15 12:28:26 -0600472 TEST_PY_TEST_SPEC: "not sleep"
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200473 TEST_PY_ID: "--id rtl8139_qemu"
474 <<: *buildman_and_testpy_dfn
475
476r2dplus_tulip test.py:
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200477 variables:
478 TEST_PY_BD: "r2dplus"
Tom Rini5692b9c2024-10-15 12:28:26 -0600479 TEST_PY_TEST_SPEC: "not sleep"
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200480 TEST_PY_ID: "--id tulip_qemu"
481 <<: *buildman_and_testpy_dfn
482
Bin Meng0ae41062021-08-26 23:33:35 +0800483sifive_unleashed_sdcard test.py:
484 variables:
485 TEST_PY_BD: "sifive_unleashed"
Tom Rini5692b9c2024-10-15 12:28:26 -0600486 TEST_PY_TEST_SPEC: "not sleep"
Bin Meng0ae41062021-08-26 23:33:35 +0800487 TEST_PY_ID: "--id sdcard_qemu"
488 <<: *buildman_and_testpy_dfn
489
490sifive_unleashed_spi-nor test.py:
491 variables:
492 TEST_PY_BD: "sifive_unleashed"
Tom Rini5692b9c2024-10-15 12:28:26 -0600493 TEST_PY_TEST_SPEC: "not sleep"
Bin Meng0ae41062021-08-26 23:33:35 +0800494 TEST_PY_ID: "--id spi-nor_qemu"
495 <<: *buildman_and_testpy_dfn
496
Michal Simekf8834fd2020-02-13 15:03:29 +0100497xilinx_zynq_virt test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400498 variables:
Michal Simekf8834fd2020-02-13 15:03:29 +0100499 TEST_PY_BD: "xilinx_zynq_virt"
Tom Rinid2244b92019-06-19 09:25:17 -0400500 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400501 TEST_PY_ID: "--id qemu"
Tom Rinid2244b92019-06-19 09:25:17 -0400502 <<: *buildman_and_testpy_dfn
503
504xilinx_versal_virt test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400505 variables:
506 TEST_PY_BD: "xilinx_versal_virt"
507 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400508 TEST_PY_ID: "--id qemu"
Tom Rinid2244b92019-06-19 09:25:17 -0400509 <<: *buildman_and_testpy_dfn
510
511xtfpga test.py:
Tom Rinid2244b92019-06-19 09:25:17 -0400512 variables:
513 TEST_PY_BD: "xtfpga"
514 TEST_PY_TEST_SPEC: "not sleep"
Tom Rinid2244b92019-06-19 09:25:17 -0400515 TEST_PY_ID: "--id qemu"
Tom Rinid2244b92019-06-19 09:25:17 -0400516 <<: *buildman_and_testpy_dfn
Simon Glass13e1fa02022-01-21 10:23:01 -0700517
518coreboot test.py:
519 variables:
520 TEST_PY_BD: "coreboot"
521 TEST_PY_TEST_SPEC: "not sleep"
522 TEST_PY_ID: "--id qemu"
Simon Glass13e1fa02022-01-21 10:23:01 -0700523 <<: *buildman_and_testpy_dfn