mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
support/testing: generate runtime test jobs with runner tags
We have our own GitLab-CI runner, but with only one we can't run many
jobs in parallel so it takes a very long time before all the tests have
completed. In addition, if that runner goes down, we have nothing at
all.
GitLab offers the following machine types for hosted runners on Linux
x86-64 [1]. The default is the "small" runner. Using a larger runner
increases the "Cost factor" [2]:
Runner Tag vCPUs Memory Storage Cost factor
saas-linux-small-amd64 (default) 2 8 GB 30 GB 1
saas-linux-medium-amd64 4 16 GB 50 GB 2
saas-linux-large-amd64 (Premium and Ultimate only) 8 32 GB 100 GB 3
saas-linux-xlarge-amd64 (Premium and Ultimate only) 16 64 GB 200 GB 6
saas-linux-2xlarge-amd64 (Premium and Ultimate only) 32 128 GB 200 GB 12
Compute minutes consumed by a job is calculated by:
Job duration / 60 * Cost factor
(Job duration: The time, in seconds, that a job took to run, not
including time spent in the created or pending statuses.)
Thanks to the GitLab OSS program [3], Buildroot benefits from a free
Ultimate subscription and can use GitLab shared runners tagged with
saas-linux-{large, xlarge, 2xlarge}-amd64. In addition, we receive
50,000 free runner minutes per month.
For opensource projects, the Cost factor is reduced by 0,5 (1 minute per
2 minutes of job time).
In order to use one of those tags in Buildroot GitLab-CI jobs, we have
to classify all tests by resource requirement, to make sure the job
doesn't fail because it times out or has insufficient memory or disk
space. We also don't want to use the largest runner for everything
because that would spend the minutes very quickly while the resources
aren't used efficiently (mostly serialized).
First we introduce some new templates used to add the corresponding
runner tag to a runtime test job (reusing the GitLab terminology).
.runner-{small,medium,large,xlarge,2xlarge}
Most of our tests are fast (checkpackage, test_external_bootlin...), so
saas-linux-small-amd64 runner tag is enough. Default to this tag if
nothing else is specified.
Add a comment next to the test class to provide the runner tag.
This runner tag is retrieved when generating the
generated-gitlab-ci.yml file used to create the child pipeline where
the runtime test jobs are executed.
We use the list of runtime tests returned by node2:
"tests.boot.test_edk2.TestEdk2.test_run"
We convert each element of this list to get the path to the test source
file and the name of the test:
"support/testing/tests/boot/test_edk2.py"
TestEdk2
With that, we can grep into the test source file to retrieve the runner
tag placed one line above the test class:
# GitLab-runner: large
class TestEdk2(infra.basetest.BRTest):
Once the runner tag is retrieved, it's used to use the corresponding
runner template to the runtime test job:
tests.boot.test_edk2.TestEdk2.test_run: { extends: [ .runtime_test_base, .runner-large ]}
GitLab runners hosted by the Buildroot project should be able to run any
jobs, so a specific runner tag "buildroot-runner" is used to allow
running a job on such runners. The "buildroot-runner" tag is used in
addition to GitLab ones to run a job on the Buildroot runner or on a
shared GitLab-CI runner.
If a test can't be executed by any shared GitLab-CI runners, we have
to use a runner owned by the Buildroot project. In this case we have
to use a specific template ".runner-buildroot-runner-only". There is no
such runtime test at the moment.
The proposed classification is based on a previous pipeline analysis
[5]:
- Tests lasting more than 3 hours will use 2xlarge runners.
- Tests lasting more than 2 hours will use xlarge runners.
- Tests lasting more than 1 hours will use large runners.
- Tests building a kernel or a toolchain will use medium runners.
- All other tests will use small runners when possible.
CI minute cost estimate:
tests.package.test_clang.TestClangCompilerRT.test_run lasts 4h25 on the
Buildroot runner. If we this duration for 2xlarge runners, the CI
minute consumed would be:
(265 / 60) * 12 * 0.5 = 26,5
With 6 jobs using a 2xlarge runners we used ~160 CI minutes.
tests.package.test_kmscube.TestKmsCube.test_run list 2h04 on the
Buildroot runner. If we this duration for xlarge runners, the CI
minute consumed would be:
(124 / 60) * 6 * 0.5 = 6,2
With 4 jobs using a xlarge runners we used ~37 CI minutes.
tests.package.test_weston.TestWeston.test_run last 1h15 on th
Buildroot runner. If we this duration for large runners, the CI
minute consumed would be:
(75 / 60) * 3 * 0.5 = 1.87
With 28 jobs using a large runners we used ~53 CI minutes.
tests.package.test_gstreamer1.TestGstreamer1.test_run last 46min on the
Buildroot runner. If we this duration for large runners, the CI
minute consumed would be:
(46 / 60) * 2 * 0.5 = 0.76
With 31 jobs using a medium runners we used ~24 CI minutes.
tests.package.test_python.TestPython3Py.test_run last 13min on the
Buildroot runner. If we this duration for large runners, the CI
minute consumed would be:
(13 / 60) * 1 * 0.5 = 0.1
With 691 jobs using a medium runners we used ~69 CI minutes.
In total, one pipeline for the runtime tests cost ~350 CI minutes.
We run such pipeline once a week (on Monday), one for each Buildroot
releases every 3 month, one for each stable and LTS release per month,
and one for each release candidate (3).
Worst case (realse month):
(4 weeks + 1 release + 1 stable + 1 LTS + 3 release candidate) * 350 CI
minutes: 3500 CI minutes / 50000.
So we should be able to run our pipeline without exhausting our CI
minutes credit.
[1] https://docs.gitlab.com/ci/runners/hosted_runners/linux/#machine-types-available-for-linux---x86-64
[2] https://docs.gitlab.com/ci/pipelines/compute_minutes/#cost-factors
https://docs.gitlab.com/ci/pipelines/compute_minutes/#compute-usage-calculation
https://docs.gitlab.com/ci/pipelines/compute_minutes/#cost-factors-of-hosted-runners-for-gitlabcom
[3] https://gitlab.com/buildroot.org/gitlab-oss
[4] https://docs.gitlab.com/ci/runners/hosted_runners/#gitlabcom-hosted-runner-workflow
[5] https://gitlab.com/buildroot.org/buildroot/-/pipelines/2416603721
Signed-off-by: Romain Naour <romain.naour@smile.fr>
[Arnout:
- simplify parsing of test_file and test_name;
- match the entire test_name instead of substring;
- assume "small" by default;
- remove the "small" tags;
- use "gitlab-runner" instead of "Gitlab-runner".
]
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
e9785d96e5
commit
38039415f8
@@ -5,6 +5,35 @@ stages:
|
||||
before_script:
|
||||
- git config --global --add safe.directory ${CI_PROJECT_DIR}
|
||||
|
||||
.runner-small:
|
||||
tags:
|
||||
- buildroot-runner
|
||||
- saas-linux-small-amd64
|
||||
|
||||
.runner-medium:
|
||||
tags:
|
||||
- buildroot-runner
|
||||
- saas-linux-medium-amd64
|
||||
|
||||
.runner-large:
|
||||
tags:
|
||||
- buildroot-runner
|
||||
- saas-linux-large-amd64
|
||||
|
||||
.runner-xlarge:
|
||||
tags:
|
||||
- buildroot-runner
|
||||
- saas-linux-xlarge-amd64
|
||||
|
||||
.runner-2xlarge:
|
||||
tags:
|
||||
- buildroot-runner
|
||||
- saas-linux-2xlarge-amd64
|
||||
|
||||
.runner-buildroot-runner-only:
|
||||
tags:
|
||||
- buildroot-runner
|
||||
|
||||
.check-check-package_base:
|
||||
stage: test
|
||||
script:
|
||||
|
||||
@@ -24,7 +24,7 @@ _EOF_
|
||||
gen_tests() {
|
||||
local -a basics defconfigs runtimes
|
||||
local do_basics do_defconfigs do_runtime do_testpkg
|
||||
local defconfigs_ext cfg tst
|
||||
local defconfigs_ext cfg runner tst
|
||||
|
||||
basics=( check-package check-symbol DEVELOPERS package symbol )
|
||||
|
||||
@@ -133,7 +133,15 @@ gen_tests() {
|
||||
|
||||
if ${do_runtime:-false}; then
|
||||
printf 'runtime_test_download: { extends: .runtime_test_download }\n'
|
||||
printf '%s: { extends: .runtime_test_base }\n' "${runtimes[@]}"
|
||||
for test in "${runtimes[@]}"; do
|
||||
test_file=$(echo "${test}" | tr '.' '/' | sed 's%\(.*/test_[^/]*\)/.*test_run$%support/testing/\1.py%g')
|
||||
test_name=$(echo "${test}" | sed 's/.test_run$//g' | sed 's/.*\.//')
|
||||
runner=$(grep -w -B 1 "${test_name}" "${test_file}" | head -1 | sed -n 's/^.*# gitlab-runner: \(.*\)/\1/p' ) || true
|
||||
if [ -z "${runner}" ]; then
|
||||
runner="small"
|
||||
fi
|
||||
printf '%s: { extends: [ .runtime_test_base, .runner-%s ]}\n' "${test}" "${runner}"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -n "${do_testpkg}" ]; then
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestEdk2(infra.basetest.BRTest):
|
||||
config = \
|
||||
"""
|
||||
|
||||
@@ -32,6 +32,7 @@ class TestGrubi386BIOS(infra.basetest.BRTest):
|
||||
self.emulator.login()
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestGrubX8664EFI(infra.basetest.BRTest):
|
||||
config = \
|
||||
"""
|
||||
@@ -84,6 +85,7 @@ class TestGrubX8664EFI(infra.basetest.BRTest):
|
||||
self.assertRunOk(cmd)
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestGrubAArch64EFI(infra.basetest.BRTest):
|
||||
config = \
|
||||
"""
|
||||
@@ -125,6 +127,7 @@ class TestGrubAArch64EFI(infra.basetest.BRTest):
|
||||
self.assertRunOk(cmd)
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestGrubRiscV64EFI(infra.basetest.BRTest):
|
||||
scripts = [
|
||||
"board/qemu/post-image.sh",
|
||||
|
||||
@@ -65,6 +65,7 @@ class InitSystemSystemdBase(InitSystemBase):
|
||||
self.check_network("eth0")
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoNetworkd(InitSystemSystemdBase):
|
||||
config = InitSystemSystemdBase.config + \
|
||||
"""
|
||||
@@ -77,6 +78,7 @@ class TestInitSystemSystemdRoNetworkd(InitSystemSystemdBase):
|
||||
self.check_systemd("squashfs")
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRwNetworkd(InitSystemSystemdBase):
|
||||
config = InitSystemSystemdBase.config + \
|
||||
"""
|
||||
@@ -88,6 +90,7 @@ class TestInitSystemSystemdRwNetworkd(InitSystemSystemdBase):
|
||||
self.check_systemd("ext2")
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoIfupdown(InitSystemSystemdBase):
|
||||
config = InitSystemSystemdBase.config + \
|
||||
"""
|
||||
@@ -101,6 +104,7 @@ class TestInitSystemSystemdRoIfupdown(InitSystemSystemdBase):
|
||||
self.check_systemd("squashfs")
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoIfupdownDbusbroker(TestInitSystemSystemdRoIfupdown):
|
||||
config = TestInitSystemSystemdRoIfupdown.config + \
|
||||
"""
|
||||
@@ -117,6 +121,7 @@ class TestInitSystemSystemdRoIfupdownDbusbroker(TestInitSystemSystemdRoIfupdown)
|
||||
self.assertEqual(len(out), 1)
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoIfupdownDbusbrokerDbus(TestInitSystemSystemdRoIfupdownDbusbroker):
|
||||
config = TestInitSystemSystemdRoIfupdownDbusbroker.config + \
|
||||
"""
|
||||
@@ -124,6 +129,7 @@ class TestInitSystemSystemdRoIfupdownDbusbrokerDbus(TestInitSystemSystemdRoIfupd
|
||||
"""
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRwIfupdown(InitSystemSystemdBase):
|
||||
config = InitSystemSystemdBase.config + \
|
||||
"""
|
||||
@@ -136,6 +142,7 @@ class TestInitSystemSystemdRwIfupdown(InitSystemSystemdBase):
|
||||
self.check_systemd("ext2")
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRwIfupdownDbusbroker(TestInitSystemSystemdRwIfupdown):
|
||||
config = TestInitSystemSystemdRwIfupdown.config + \
|
||||
"""
|
||||
@@ -152,6 +159,7 @@ class TestInitSystemSystemdRwIfupdownDbusbroker(TestInitSystemSystemdRwIfupdown)
|
||||
self.assertEqual(len(out), 1)
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRwIfupdownDbusbrokerDbus(TestInitSystemSystemdRwIfupdownDbusbroker):
|
||||
config = TestInitSystemSystemdRwIfupdownDbusbroker.config + \
|
||||
"""
|
||||
@@ -159,6 +167,7 @@ class TestInitSystemSystemdRwIfupdownDbusbrokerDbus(TestInitSystemSystemdRwIfupd
|
||||
"""
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoFull(InitSystemSystemdBase):
|
||||
config = InitSystemSystemdBase.config + \
|
||||
"""
|
||||
@@ -188,6 +197,7 @@ class TestInitSystemSystemdRoFull(InitSystemSystemdBase):
|
||||
self.check_systemd("squashfs")
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRwFull(InitSystemSystemdBase):
|
||||
config = InitSystemSystemdBase.config + \
|
||||
"""
|
||||
@@ -257,6 +267,7 @@ class InitSystemSystemdBaseFactory():
|
||||
self.assertEqual(out[0], "foobar")
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoNetworkdFactory(
|
||||
InitSystemSystemdBaseFactory,
|
||||
TestInitSystemSystemdRoNetworkd,
|
||||
@@ -265,6 +276,7 @@ class TestInitSystemSystemdRoNetworkdFactory(
|
||||
TestInitSystemSystemdRoNetworkd.config
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoIfupdownFactory(
|
||||
InitSystemSystemdBaseFactory,
|
||||
TestInitSystemSystemdRoIfupdown,
|
||||
@@ -273,6 +285,7 @@ class TestInitSystemSystemdRoIfupdownFactory(
|
||||
TestInitSystemSystemdRoIfupdown.config
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoIfupdownDbusbrokerFactory(
|
||||
InitSystemSystemdBaseFactory,
|
||||
TestInitSystemSystemdRoIfupdownDbusbroker,
|
||||
@@ -281,6 +294,7 @@ class TestInitSystemSystemdRoIfupdownDbusbrokerFactory(
|
||||
TestInitSystemSystemdRoIfupdownDbusbroker.config
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoIfupdownDbusbrokerDbusFactory(
|
||||
InitSystemSystemdBaseFactory,
|
||||
TestInitSystemSystemdRoIfupdownDbusbrokerDbus,
|
||||
@@ -289,6 +303,7 @@ class TestInitSystemSystemdRoIfupdownDbusbrokerDbusFactory(
|
||||
TestInitSystemSystemdRoIfupdownDbusbrokerDbus.config
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoFullFactory(
|
||||
InitSystemSystemdBaseFactory,
|
||||
TestInitSystemSystemdRoFull,
|
||||
@@ -348,6 +363,7 @@ class InitSystemSystemdBaseOverlayfs():
|
||||
self.assertEqual(out[0], "foobar")
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoNetworkdOverlayfs(
|
||||
InitSystemSystemdBaseOverlayfs,
|
||||
TestInitSystemSystemdRoNetworkd,
|
||||
@@ -356,6 +372,7 @@ class TestInitSystemSystemdRoNetworkdOverlayfs(
|
||||
TestInitSystemSystemdRoNetworkd.config
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoIfupdownOverlayfs(
|
||||
InitSystemSystemdBaseOverlayfs,
|
||||
TestInitSystemSystemdRoIfupdown,
|
||||
@@ -364,6 +381,7 @@ class TestInitSystemSystemdRoIfupdownOverlayfs(
|
||||
TestInitSystemSystemdRoIfupdown.config
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoIfupdownDbusbrokerOverlayfs(
|
||||
InitSystemSystemdBaseOverlayfs,
|
||||
TestInitSystemSystemdRoIfupdownDbusbroker,
|
||||
@@ -372,6 +390,7 @@ class TestInitSystemSystemdRoIfupdownDbusbrokerOverlayfs(
|
||||
TestInitSystemSystemdRoIfupdownDbusbroker.config
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoIfupdownDbusbrokerDbusOverlayfs(
|
||||
InitSystemSystemdBaseOverlayfs,
|
||||
TestInitSystemSystemdRoIfupdownDbusbrokerDbus,
|
||||
@@ -380,6 +399,7 @@ class TestInitSystemSystemdRoIfupdownDbusbrokerDbusOverlayfs(
|
||||
TestInitSystemSystemdRoIfupdownDbusbrokerDbus.config
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoFullOverlayfs(
|
||||
InitSystemSystemdBaseOverlayfs,
|
||||
TestInitSystemSystemdRoFull,
|
||||
@@ -388,6 +408,7 @@ class TestInitSystemSystemdRoFullOverlayfs(
|
||||
TestInitSystemSystemdRoFull.config
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class InitSystemSystemdBaseOverlayfsVarBacking(InitSystemBase):
|
||||
@classmethod
|
||||
def gen_config(cls, overlaydir: str) -> str:
|
||||
@@ -402,6 +423,7 @@ class InitSystemSystemdBaseOverlayfsVarBacking(InitSystemBase):
|
||||
self.assertRunOk("grep '^other-var-backing-store /run/buildroot/mounts/var tmpfs' /proc/mounts")
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoFullOverlayfsVarBackingMountUnit(
|
||||
TestInitSystemSystemdRoFullOverlayfs,
|
||||
InitSystemSystemdBaseOverlayfsVarBacking,
|
||||
@@ -415,6 +437,7 @@ class TestInitSystemSystemdRoFullOverlayfsVarBackingMountUnit(
|
||||
self.check_var_mounted()
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestInitSystemSystemdRoFullOverlayfsVarBackingFstab(
|
||||
TestInitSystemSystemdRoFullOverlayfs,
|
||||
InitSystemSystemdBaseOverlayfsVarBacking,
|
||||
|
||||
@@ -5,6 +5,7 @@ import time
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestAiChat(infra.basetest.BRTest):
|
||||
rootfs_overlay = \
|
||||
infra.filepath("tests/package/test_aichat/rootfs-overlay")
|
||||
|
||||
@@ -4,6 +4,7 @@ import time
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: 2xlarge
|
||||
class TestBcc(infra.basetest.BRTest):
|
||||
# This test is using a Kernel >= 5.2, so it will use
|
||||
# CONFIG_IKHEADERS. Those Kernel headers are unpacked from
|
||||
|
||||
@@ -5,6 +5,7 @@ import time
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestBitcoin(infra.basetest.BRTest):
|
||||
# infra.basetest.BASIC_TOOLCHAIN_CONFIG cannot be used as it does
|
||||
# not include BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
|
||||
|
||||
@@ -5,6 +5,7 @@ import infra.basetest
|
||||
FUZZ_TIMEOUT = 120
|
||||
|
||||
|
||||
# gitlab-runner: 2xlarge
|
||||
class TestClangCompilerRT(infra.basetest.BRTest):
|
||||
br2_external = [infra.filepath("tests/package/br2-external/clang-compiler-rt")]
|
||||
# Without this option the test fails due to insufficient address space for 64-bit allocator
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import time
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestDistributionRegistry(infra.basetest.BRTest):
|
||||
config = \
|
||||
"""
|
||||
|
||||
@@ -76,11 +76,13 @@ class BaseTestDockerCompose(infra.basetest.BRTest):
|
||||
self.python_docker_test()
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestDockerComposeRunc(BaseTestDockerCompose):
|
||||
def test_run(self):
|
||||
self.do_test()
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestDockerComposeCrun(BaseTestDockerCompose):
|
||||
config = BaseTestDockerCompose.config + """
|
||||
BR2_PACKAGE_CRUN=y
|
||||
|
||||
@@ -4,6 +4,7 @@ import subprocess
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestDosFsTools(infra.basetest.BRTest):
|
||||
# This test needs a Kernel with vfat and NLS support. The vfat
|
||||
# filesystem also needs character set conversion libraries, since
|
||||
|
||||
@@ -4,6 +4,7 @@ import time
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestFirewalldSystemd(infra.basetest.BRTest):
|
||||
"""Build the kernel as firewalld requires several the nftable options."""
|
||||
|
||||
@@ -62,6 +63,7 @@ class TestFirewalldSystemd(infra.basetest.BRTest):
|
||||
self.assertEqual(exit_code, 0)
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestFirewalldSysVInit(infra.basetest.BRTest):
|
||||
"""Build the kernel as firewalld requires several nftable options."""
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestFluidsynth(infra.basetest.BRTest):
|
||||
# infra.basetest.BASIC_TOOLCHAIN_CONFIG cannot be used as it is
|
||||
# armv5 and based on qemu versatilepb which is limited to 256MB of
|
||||
|
||||
@@ -5,6 +5,7 @@ import infra.basetest
|
||||
from ..graphics_base import GraphicsBase
|
||||
|
||||
|
||||
# gitlab-runner: xlarge
|
||||
class TestFlutter(infra.basetest.BRTest, GraphicsBase):
|
||||
config = f"""
|
||||
BR2_aarch64=y
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestFwts(infra.basetest.BRTest):
|
||||
kernel_fragment = \
|
||||
infra.filepath("tests/package/test_fwts/linux-efi-test.fragment")
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: xlarge
|
||||
class TestGlslsandboxPlayer(infra.basetest.BRTest):
|
||||
config = \
|
||||
"""
|
||||
|
||||
@@ -5,6 +5,7 @@ import infra.basetest
|
||||
GLXINFO_TIMEOUT = 120
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestGlxinfo(infra.basetest.BRTest):
|
||||
config = \
|
||||
"""
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestGnuradio(infra.basetest.BRTest):
|
||||
# infra.basetest.BASIC_TOOLCHAIN_CONFIG cannot be used as it does
|
||||
# not include: BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestGstreamer1(infra.basetest.BRTest):
|
||||
# This test creates a full, yet simple, Gstreamer pipeline which
|
||||
# encodes/decodes a video, using only plugins from Base and Good
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: xlarge
|
||||
class TestKmsCube(infra.basetest.BRTest):
|
||||
config = \
|
||||
"""
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestLibCamera(infra.basetest.BRTest):
|
||||
# A specific configuration is needed for testing libcamera:
|
||||
# a kernel config fragment enables v4l2 vimc driver.
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestLlamaCpp(infra.basetest.BRTest):
|
||||
config = """
|
||||
BR2_aarch64=y
|
||||
|
||||
@@ -57,6 +57,7 @@ class TestMenderRO(TestMenderInfra):
|
||||
self.run_mender_test()
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestMenderSystemd(TestMenderInfra):
|
||||
config = \
|
||||
"""
|
||||
|
||||
@@ -4,6 +4,7 @@ import infra.basetest
|
||||
RUSTICL_TIMEOUT = 180
|
||||
|
||||
|
||||
# gitlab-runner: 2xlarge
|
||||
class TestMesa3DRusticl(infra.basetest.BRTest):
|
||||
config = """
|
||||
BR2_aarch64=y
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: 2xlarge
|
||||
class TestNodeJSBasic(infra.basetest.BRTest):
|
||||
config = \
|
||||
"""
|
||||
@@ -28,6 +29,7 @@ class TestNodeJSBasic(infra.basetest.BRTest):
|
||||
self.assertRunOk("node sample_nodejs_basic.js")
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestNodeJSModuleHostBin(infra.basetest.BRTest):
|
||||
config = \
|
||||
"""
|
||||
@@ -55,6 +57,7 @@ class TestNodeJSModuleHostBin(infra.basetest.BRTest):
|
||||
self.assertRunOk("node sample_nodejs_module.js")
|
||||
|
||||
|
||||
# gitlab-runner: 2xlarge
|
||||
class TestNodeJSModuleHostSrc(infra.basetest.BRTest):
|
||||
config = \
|
||||
"""
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestOpenBLAS(infra.basetest.BRTest):
|
||||
config = \
|
||||
"""
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestOpenJdk(infra.basetest.BRTest):
|
||||
br2_external = [infra.filepath("tests/package/br2-external/openjdk")]
|
||||
config = \
|
||||
|
||||
@@ -2,6 +2,7 @@ from tests.package.test_perl import TestPerlBase
|
||||
import os
|
||||
|
||||
|
||||
# gitlab-runner: xlarge
|
||||
class TestPerlDBDmysql(TestPerlBase):
|
||||
"""
|
||||
package:
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestPythonPyQt5(infra.basetest.BRTest):
|
||||
# We use a specific configuration for:
|
||||
# - using Aarch64, to have more than 256MB memory,
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestPythonPy3SciPy(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
# Need to use a different toolchain than the default due to
|
||||
|
||||
@@ -35,6 +35,7 @@ class TestRustBin(TestRustBase):
|
||||
self.assertRunOk("rg Buildroot /etc/issue")
|
||||
|
||||
|
||||
# gitlab-runner: 2xlarge
|
||||
class TestRust(TestRustBase):
|
||||
config = \
|
||||
"""
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestUbootOpensslPkgConfig(infra.basetest.BRTest):
|
||||
config = infra.basetest.MINIMAL_CONFIG + \
|
||||
"""
|
||||
|
||||
@@ -5,6 +5,7 @@ import infra.basetest
|
||||
from ..graphics_base import GraphicsBase
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestWeston(infra.basetest.BRTest, GraphicsBase):
|
||||
config = \
|
||||
"""
|
||||
|
||||
@@ -3,6 +3,7 @@ import os
|
||||
import infra.basetest
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestWine(infra.basetest.BRTest):
|
||||
# Wine depends on i386 architecture. The pre-build runtime test
|
||||
# Kernel (for armv5) cannot be used. The config also uses a ext4
|
||||
|
||||
@@ -149,6 +149,7 @@ class TestXenBase(infra.basetest.BRTest):
|
||||
self.assertRunOk("brctl show")
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestXenAarch64(TestXenBase):
|
||||
# Test Xen on 64b Arm.
|
||||
# Boot flow: Qemu Devicetree -> U-Boot -> Xen UEFI -> Linux
|
||||
@@ -189,6 +190,7 @@ class TestXenAarch64(TestXenBase):
|
||||
self.run_xen_test(arch="aarch64", options=qemu_opts)
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestXenArmv7(TestXenBase):
|
||||
# Test Xen on 32b Arm v7.
|
||||
# Boot flow: Qemu Devicetree -> U-Boot -> Xen -> Linux
|
||||
|
||||
@@ -63,6 +63,7 @@ class TestZfsBase(infra.basetest.BRTest):
|
||||
self.assertRunOk(cmd, timeout=self.timeout)
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestZfsGlibc(TestZfsBase):
|
||||
config = TestZfsBase.config + \
|
||||
"""
|
||||
@@ -73,6 +74,7 @@ class TestZfsGlibc(TestZfsBase):
|
||||
TestZfsBase.base_test_run(self)
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestZfsUclibc(TestZfsBase):
|
||||
# The Bootling aarch64 uclibc stable 2025.08-1 needs to be
|
||||
# rebuild with uClibc-ng 1.0.55.
|
||||
@@ -92,6 +94,7 @@ class TestZfsUclibc(TestZfsBase):
|
||||
TestZfsBase.base_test_run(self)
|
||||
|
||||
|
||||
# gitlab-runner: medium
|
||||
class TestZfsMusl(TestZfsBase):
|
||||
config = TestZfsBase.config + \
|
||||
"""
|
||||
|
||||
@@ -42,6 +42,7 @@ class TestAarch64Pages64kBase(infra.basetest.BRTest):
|
||||
self.assertEqual(2 ** order * 64 * 1024, size)
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestAarch64Pages64kGlibc(TestAarch64Pages64kBase):
|
||||
__test__ = True
|
||||
config = TestAarch64Pages64kBase.config + \
|
||||
@@ -50,6 +51,7 @@ class TestAarch64Pages64kGlibc(TestAarch64Pages64kBase):
|
||||
"""
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestAarch64Pages64kuClibc(TestAarch64Pages64kBase):
|
||||
__test__ = True
|
||||
config = TestAarch64Pages64kBase.config + \
|
||||
@@ -58,6 +60,7 @@ class TestAarch64Pages64kuClibc(TestAarch64Pages64kBase):
|
||||
"""
|
||||
|
||||
|
||||
# gitlab-runner: large
|
||||
class TestAarch64Pages64kMusl(TestAarch64Pages64kBase):
|
||||
__test__ = True
|
||||
config = TestAarch64Pages64kBase.config + \
|
||||
|
||||
Reference in New Issue
Block a user